Last active
August 29, 2015 14:02
-
-
Save Taluu/2df7cdbdb2e792a2eb04 to your computer and use it in GitHub Desktop.
"twitter sdk"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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