I'm using the following to try and get the new Twitter API running but no tweeting luck at the moment.
With the twitter/OAuth.php and twitter/TwitterOAuth.php that are recommended and obviously with the correct keys.
http://github.com/abraham/twitteroauth/zipball/0.2.0-beta3
However I'm having absolutely no luck with getting any updates, what am I doing wrong?
Code:
<?
require_once 'twitter/TwitterOAuth.php';
define('CONSUMER_KEY', '123');
define('CONSUMER_SECRET', '123');
define('OAUTH_TOKEN', '123');
define('OAUTH_SECRET', '123');
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET);
$content = $connection->get('account/verify_credentials');
$connection->post('statuses/update', array('status' => 'This is a test status using the new API'));
?>
With the twitter/OAuth.php and twitter/TwitterOAuth.php that are recommended and obviously with the correct keys.
http://github.com/abraham/twitteroauth/zipball/0.2.0-beta3
However I'm having absolutely no luck with getting any updates, what am I doing wrong?