I have an app using the twitter rest API. Everything is working fine but we\'re bumping into rate limits so we need to authenticate using oAuth. I have the oauth token and secre
Twitter documentation links to a few PHP OAuth libraries that you can use to accomplish OAuth authentication.
Using the TwitterOAuth PHP library it is as simple as this:
<?php
require_once('twitteroauth/twitteroauth.php');
require_once('config.php');
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$content = $connection->get('account/verify_credentials');
There are several more example requests in the demo index.php.