PHP Classes

how to get dropbox access_token_secret after ahthorize

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  how to get dropbox...  >  (Un) Subscribe thread alerts  
Subject:how to get dropbox...
Summary:dropbox tokens for Offline Access ,access_token and access_token
Messages:2
Author:kevin
Date:2014-11-26 22:56:54
 

  1. how to get dropbox...   Reply   Report abuse  
Picture of kevin kevin - 2014-11-26 22:56:54
this is my code, call $client->RetrieveToken(), but $client->access_token_secret is empty.

if(($success = $client->Initialize()))
{
if(($success = $client->Process()))
{
if(strlen($client->access_token))
{
$client->RetrieveToken();
$success = $client->CallAPI(
'https://api.dropbox.com/1/account/info',
'GET', array(), array('FailOnAccessError'=>true), $user);
}
}
$success = $client->Finalize($success);
}

  2. Re: how to get dropbox...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-11-27 01:42:24 - In reply to message 1 from kevin
The RetrieveToken function is private. It is not even documented. You should not be using it.

After the authorization process is completed, the access token secret is in that variable if you are accessing Dropbox API with OAuth 1. For OAuth 2, there is no access token secret.