mardi 15 mars 2016

I am trying to call API from PHP code using Guzzle

I am having Consumer key, Consumer Secret with that I want to pass nonce,time stamp,version and signature method... I am done some code which is not correct....Please correct it.. If possible please provide exact code

    $client = new Client(['base_url' => 'http://ift.tt/1WnbpWg', 'defaults' => ['auth' => 'oauth']]);
    $oauth = new Oauth1([
    'consumer_key'    => '520da86260506e05d3',
    'consumer_secret' => '673c2e140923b6716dff64c3bba',
            ]);
    $client->getEmitter()->attach($oauth);

    $res = $client->get('url')->json();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire