smugmug.auth.getAccessToken 1.2.2
smugmug.auth.getAccessToken
Exchanges an authorized OAuth request token for an OAuth access token.
| An OAuth compliant endpoint is available http://api.smugmug.com/services/oauth/getAccessToken.mg |
Arguments
- oauth_consumer_key string
- oauth_nonce string
- oauth_signature string
- oauth_signature_method string
- oauth_timestamp string
- oauth_token string
- oauth_version string (optional)
- Pretty boolean (optional)
Response
- Auth struct
- Token struct
- id string
- Secret string
- Access string
- Permissions string
- User struct
- id integer
- AccountType string
- DisplayName string
- FileSizeLimit integer
- NickName string
- Token struct
Fault Codes
- 17 - "invalid method (invalid non-OAuth method)"
- 22 - "missing required parameter"
- 30 - "expired timestamp"
- 31 - "invalid consumer key"
- 33 - "invalid/used nonce"
- 35 - "invalid signature"
- 36 - "invalid/expired token"
- 37 - "unsupported signature method"
- 38 - "unsupported version"
- 99 - "read-only mode"