Class RequestToken
A request token is used during the three-step OAuth web flow to identify the authorization session. Once authorization is complete and you have an access token, you don't need the request token anymore.
Storing Request Tokens
If you are doing the three-step OAuth web flow in a web application, it'll
probably span two separate HTTP requests to your app. In the first request
you'll call Dropbox\WebAuth::start()
and get a request token. You need to store
that request token somewhere (browser cookie, server-side session, database,
etc.) so that you can pass it to Dropbox\WebAuth::finish()
later.
You can convert this object into a single string using Dropbox\RequestToken::serialize()
, and use RequestToken::parse() to convert
that string back into an object.
- Dropbox\Token
- Dropbox\RequestToken
public
string
|
|
public static
|
#
deserialize( string $data )
Convert a string generated by |
__toString(),
matchesKey()
|