Class AccessToken
This token is embedded in every API request so that the Dropbox server knows the request is authorized. Each access token is associated with a specific application, so the Dropbox server knows which application is making requests.
Do not share any of your access tokens with anybody, or they will be able to make API requests pretending to be your application.
You get an access token from Dropbox\WebAuth::finish()
.
Storing Access Tokens
Once you have an access token, they are valid for many years and so you'll typically store it somewhere long-lived, like a database or a file.
You can convert this object into a single string using Dropbox\AccessToken::serialize()
, and use AccessToken::parse() to convert that
string back into an object.
- Dropbox\Token
- Dropbox\AccessToken
public
string
|
|
public static
|
#
deserialize( string $data )
Convert a string generated by |
__toString(),
matchesKey()
|