get_access_token

Returns an OAuth access token after getting a request token and getting a user’s permission for access

POST https://secure.splitwise.com/api/v3.0/get_access_token

Parameters:

  • none

HTTP_AUTHORIZATION header (sample):

  • oauth_consumer_key=“API_KEY_HERE”
  • oauth_nonce=“oVnT0q6VBYeYD2wAXuZww1N8Hk7qSJi8uU1szIrOAvA”
  • oauth_signature=“V9w9%2Bwu0xTQlfRJvsBOskzATlNg%3D”
  • oauth_signature_method=“HMAC-SHA1”
  • oauth_timestamp=“1324583427”
  • oauth_token=“REQUEST_TOKEN_HERE”
  • oauth_verifier=“SDIWHQ05FYpDtz0og13C” (returned after user authorization)
  • oauth_version=“1.0”

Return value:

  • Success: {:oauth_token ⇒ “blah”, :oauth_secret ⇒ “blah”}
  • Failure: {:errors ⇒ {?}}