note 115267 added to oauth.examples.fireeagle

From: Date: Wed, 25 Jun 2014 07:09:17 +0000
Subject: note 115267 added to oauth.examples.fireeagle
Groups: php.notes 
Request: Send a blank email to php-notes+get-199749@lists.php.net to get a copy of this message
In the case you're asking an API which gives you a reusable application key, you'll have to use the "verifier" in the getAccessToken() method, but also the "callback" parameter in the getRequestToken(). <?php $request_token_info = $oauth->getRequestToken($req_url, "<YOU_CALLBACK_URI>"); ?> In my case, once I accepted the form in the Authorize URI, I was redirected to this callback URI with a "oauth_verifier" GET parameter. I injected it into the access token request : <?php $access_token_info = $oauth->getAccessToken($acc_url, '', $_GET['oauth_verifier']); ?> I finally obtained an access token that I hardcoded ; it doesn't need any refresh. ---- Server IP: 72.52.91.14 Probable Submitter: 81.220.43.179 ---- Manual Page -- http://php.net/manual/en/oauth.examples.fireeagle.php Edit -- https://master.php.net/note/edit/115267 Del: integrated -- https://master.php.net/note/delete/115267/integrated Del: useless -- https://master.php.net/note/delete/115267/useless Del: bad code -- https://master.php.net/note/delete/115267/bad+code Del: spam -- https://master.php.net/note/delete/115267/spam Del: non-english -- https://master.php.net/note/delete/115267/non-english Del: in docs -- https://master.php.net/note/delete/115267/in+docs Del: other reasons-- https://master.php.net/note/delete/115267 Reject -- https://master.php.net/note/reject/115267 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199749) next »