Skip to content

Instantly share code, notes, and snippets.

@Taluu
Last active August 29, 2015 14:02
Show Gist options
  • Save Taluu/2df7cdbdb2e792a2eb04 to your computer and use it in GitHub Desktop.
Save Taluu/2df7cdbdb2e792a2eb04 to your computer and use it in GitHub Desktop.
"twitter sdk"
<?php
use Guzzle\Http\Client,
Guzzle\Plugin\Oauth\OauthPlugin;
$oauth = [/* ... */];
$plugin = new OauthPlugin($oauth);
$client = new Client('https://api.twitter.com/1.1');
$client->addSubscriber($plugin);
// brand and functionnal twitter sdk, in 4 lines. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment