Registry / http-client / guzzlehttp-oauth-subscriber

guzzlehttp-oauth-subscriber

JSON →
library0.9.2phppackagistunverified

Guzzle OAuth 1.0 subscriber for signing requests.

composer require guzzlehttp/oauth-subscriber
INSTALL
IMPORT
SIG · GUZZLEHTTP-OAUTH-S
G
guzzlehttp-oauth-subscriber
http-clientphpv0.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Oauth1
use GuzzleHttp\Subscriber\Oauth\Oauth1;

Attach OAuth 1.0 signing to a Guzzle client.

use GuzzleHttp\Client; use GuzzleHttp\Subscriber\Oauth\Oauth1; $client = new Client(); $oauth = new Oauth1([ 'consumer_key' => 'your-key', 'consumer_secret' => 'your-secret', 'token' => 'your-token', 'token_secret' => 'your-token-secret' ]); $client->getEmitter()->attach($oauth); $response = $client->get('https://api.example.com/endpoint');
Debug
Known issues
breakingThis package is deprecated in favor of Guzzle 7's built-in OAuth support.
fix
Use GuzzleHttp\HandlerStack and guzzlehttp/oauth-subscriber for Guzzle 6, or upgrade to Guzzle 7+.
affects: >=0.9.0
Upgrade
Version history
0.9.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
guzzlehttp-oauth-subscriber — pip install guzzlehttp-oauth-subscriber · libregistry