<?php use GuzzleHttp\Client; use GuzzleHttp\Subscriber\Oauth\Oauth1; $client = new Client(); // Using "guzzlehttp/oauth-subscriber" Composer package. $oauth = new Oauth1([ 'consumer_key' => '', 'consumer_secret' => '', 'token' => '', 'token_secret' => '' ]); $client->getEmitter()->attach($oauth); $url = "https://example.com/services/oath2/token"; $response = $client->request( 'POST', $url, [ 'auth' => ['username', 'password'] ] ); echo $response->getBody();
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`