Methods
getAccessToken(config, code, callback) → {Promise}
Get access token. To be deprecated soon. Use
Picasa#getTokens
instead
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object
|
Get config here: https://console.developers.google.com/home/dashboard (API Manager > Credentials)
|
||||||||||||
code |
string
|
Get code from URL param, when user is redirected from authURL. See Picasa#getAuthURL
|
||||||||||||
callback |
function
|
(error, response{accessToken, refreshToken}). If not provided, a promise will be returned |
Returns:
- Type:
-
Promise
- String accessToken