get_request_token

Given a consumer key, returns an OAuth request token, which can be used to generate an authorization URL

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

Parameters:

  • none

HTTP_AUTHORIZATION header (sample):

  • oauth_callback=“oob” (or an http callback URL)
  • oauth_consumer_key=“API_KEY_HERE”
  • oauth_nonce=“mN9HrBRniRcEF1EnY4X9JSZJ26MclAqjr9tMIlMQmg”
  • oauth_signature=“NiFRzuOnBluHzjvepGGdpCyOnhc%3D”
  • oauth_signature_method=“HMAC-SHA1”
  • oauth_timestamp=“1324583039”
  • oauth_version=“1.0”

Return value:

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