Add keywords programmatically?

25 views
Skip to first unread message

Joseph Turian

unread,
Jul 8, 2011, 4:13:24 PM7/8/11
to yourTwapperKeeper
How can I add keywords programmatically?

John OBrien

unread,
Jul 8, 2011, 10:05:17 PM7/8/11
to yourTwapperKeeper
You can simply call the createArchive function over an over for each
keyword (you can do something more fancy with arrays, load input
files, etc if you want). Go ahead and change your $screen_name also.

But this is the starting point...

----------------------

<?php

require_once('config.php');
require_once('function.php');
require_once('twitteroauth.php');

$screen_name = 'yourscreenname';

$tk->createArchive("keyword1","","","$screen_name","");
$tk->createArchive("keyword2","","","$screen_name","");
$tk->createArchive("keyword3","","","$screen_name","");
$tk->createArchive("keyword4","","","$screen_name","");

?>
Reply all
Reply to author
Forward
0 new messages