News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell:
Twitter Search API Using PHP and Guzzle
July 11, 2013 @ 12:49:45

Lorna Mitchell has a new post to her site today showing how she connected to Twitter with Guzzle, the popular PHP-based HTTP client (also used in the Amazon Web Services PHP client).

In case you missed it, Twitter updated their APIs recently, so that you have to authenticate to use even their search APIs to return publicly-available results. This is an increasing trend for API providers, to provide either very limited or nonexistent access for unauthenticated users, I think so they can rate limit consumers that swamp them. To cut a long story short, that meant I needed to update my dashboards that keep an eye on twitter searches to do more than just call file_get_contents in the general direction of the right URL.

She walks you through the creation of the client complete with the OAuth plugin (included with Guzzle) to make an OAuth request to api.twitter.com. With the client created, she shows a simple search call to the "tweets" endpoint.

0 comments voice your opinion now!
twitter search guzzle tutorial http client oauth api

Link: http://www.lornajane.net/posts/2013/twitter-search-api-using-php-and-guzzle

blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: Simple API Testing Using Behat

NetTuts.com: Laravel 4: A Start at a RESTful API

Gonzalo Ayuso: How to configure Symfony’s Service Container to use Twitter API

DeveloperTutorials.com: Developing State-enabled Applications With PHP

SitePoint PHP Blog: Translation and Text-to-Speech with Microsoft Translator


Community Events

Don't see your event here?
Let us know!


extension interview release framework library unittest opinion podcast voicesoftheelephpant threedevsandamaybe development language wordpress api community introduction feature series laravel laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework