Dashboard > SmugMug API > Home > API 1.2.2 > smugmug.auth.getAccessToken 1.2.2

View Attachments (0) Info

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

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"

Sample Responses

REST


JSON


PHP


XML-RPC



Browse Space
- Pages
- Labels
- Attachments
- Mail
- Bookmarks
- News
- Activity
- Advanced

Explore Confluence
- Popular Labels
- Notation Guide

Your Account
Log In

 

Other Features

View a printable version of the current page.

Add Content


Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki.
Bug/feature request - Contact administrators