����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 18.223.121.54 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/www/vendor/guzzle/guzzle/docs/plugins/ |
Upload File : |
============ OAuth plugin ============ Guzzle ships with an OAuth 1.0 plugin that can sign requests using a consumer key, consumer secret, OAuth token, and OAuth secret. Here's an example showing how to send an authenticated request to the Twitter REST API: .. code-block:: php use Guzzle\Http\Client; use Guzzle\Plugin\Oauth\OauthPlugin; $client = new Client('http://api.twitter.com/1'); $oauth = new OauthPlugin(array( 'consumer_key' => 'my_key', 'consumer_secret' => 'my_secret', 'token' => 'my_token', 'token_secret' => 'my_token_secret' )); $client->addSubscriber($oauth); $response = $client->get('statuses/public_timeline.json')->send(); If you need to use a custom signing method, you can pass a ``signature_method`` configuration option in the constructor of the OAuth plugin. The ``signature_method`` option must be a callable variable that accepts a string to sign and signing key and returns a signed string. .. note:: You can omit the ``token`` and ``token_secret`` options to use two-legged OAuth.