oauth.accessToken

Description: 

Allows the user to exchange a Request Token, previously authorized by oauth.authorize API. It is the third step of an OAuth process (see Playme OAuth).
 


Authentication : NOT REQUIRED
Parameters: 
apikey : application developer identifier [R]
country : catalogue country
format : output format
oauth_consumer_key: The Consumer Key, i.e. your apikey. [R]
oauth_token : The authorized Request Token [R]
oauth_signature_method: The signature method the Consumer used to sign the request (set this to HMAC-SHA1). [R]
oauth_signature: The signature as defined in OAuth specs. [R]
oauth_timestamp: A timestamp s defined in OAuth specs. [R]
oauth_nonce: A nonce as defined in OAuth specs.
oauth_version: OAuth version. If present, value MUST be 1.0 [O].
oauth_verifier: The verification code retrieved by the from the Service Provider in the oauth.authorize API. [R]

Return values: 

The Access Token


Sample call
oauth.accessToken?format=xml&apikey=w577525t5942234954&oauth_consumer_key=w577525t5943614954&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_callback=http://www.mysite.com/callback.php&oauth_timestamp=1260359012&oauth_nonce=0a8227u4ay&oauth_signature=OGFlNTQ5M2JkYjkxMDc2NjAzNjYyZjU1NDk3MjM0NmI5YjdiZDgxOQ==&oauth_verifier=7456489

Sample Result: XML
<?xml version="1.0" encoding="UTF-8"?>
<response>
   <oauth_token>ufhf089fjSdfmrp9kka</oauth_token>
   <oauth_token_secret>oinhv785nKKOj</oauth_token_secret>
</response>

Sample Result: JSON
{ "response" : {
    "oauth_token" : "ufhf089fjSdfmrp9kka",
    "oauth_token_secret" : "oinhv785nKKOj"
  }
}