My main question that I posted is on Stackoverflow, but I haven’t gotten any answers!
I am working on a website that allows the user to search for the top ten twitter trends in a city or country. At first I was only relying on Twitter’s Rest API, but I was having a lot of rate limit issues (at school my rate limit disappears faster than I have a chance to use it). I know that authenticating my API calls will help me to better deal with this issue (Authenticated API calls are charged to the authenticating user’s limit while unauthenticated API calls are deducted from the calling IP address’ allotment).
I implemented @abraham’s PHP library (https://github.com/abraham/twitteroauth), unfortunately my API calls aren’t being authenticated. I know I have implemented @abraham’s PHP library, because it prints out my user information at the end like it should. I have my twitter trend search underneath it isn’t being authenticated.
In Abraham’s php example there are the following calls:
/* Some example calls */
//$connection->post(‘statuses/update’, array(‘status’ => date(DATE_RFC822)));
//$connection->post(‘statuses/destroy’, array(‘id’ => 5437877770));
//$connection->post(‘friendships/create’, array(‘id’ => 9436992));
//$connection->post(‘friendships/destroy’, array(‘id’ => 9436992));
I recently added this one (below) to my code, but it still isn’t working:
$connection->get(‘trends/place’, array(‘id’ => $woeid));
I am not sure how to fix this, and any help would really be appreciated!