APIMethods/beta_2/auth.accesstoken

TracNav

auth.accesstoken

Retrieves an access token. The oauth_token parameter should contain an authorized request token. The access token will be valid for the methods the request token was requested for.

params

  • strict_oauth_spec_response --- If true, the response will be in an urlencoded body, regardless of the ha_format and ha_callback parameters. Present for compatibility with the oAuth specification.
    • Optional
    • Default: false
    • Possible values:
      • true --- true
      • false --- false
  • oauth_callback_confirmed ---
    • Optional
  • oauth_verifier ---
    • Optional

extra

examples

example 1

url

http://data.hyves-api.nl/?oauth_token=cnRfNl8IAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF8xMjgyMTE3NTM2Xzc1MDI5MzMzN18ptspXADT7yGatCV9XaEOE&ha_method=auth.accesstoken&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&oauth_timestamp=1282117536&oauth_nonce=830924_245&ha_version=beta_2&oauth_signature_method=HMAC-SHA1&ha_format=xml&ha_fancylayout=false&oauth_signature=Fv8TGuIwVdLOcvuS4lbYMFDo3%2Fo%3D

result

<?xml version="1.0" encoding="UTF-8"?>
<auth_accesstoken_result>
        <oauth_token>YXRfMTY4MzcwMzcyX9dkbcT4aQZOF0ADq2fnA9w=</oauth_token>
        <oauth_token_secret>4H_jkWFAcQhXQ81v7LncsA==</oauth_token_secret>
        <userid>00b00d50220b48bedbeed3e6701d0d11ce</userid>
        <methods>users.getByUsername,friends.get</methods>
        <expiredate>1282139136</expiredate>
        <info>
                <timestamp_difference>0</timestamp_difference>
                <running_milliseconds>125</running_milliseconds>
                <secure_connection>false</secure_connection>
        </info>
</auth_accesstoken_result>
example 2

url

http://data.hyves-api.nl/?strict_oauth_spec_response=true&oauth_token=cnRfNl8IAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF8xMjgyMTE3NTM2XzE2NTIwNDk4OTFfHg1byvEKjYCqr-ozICxzoA%3D%3D&ha_method=auth.accesstoken&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&oauth_timestamp=1282117536&oauth_nonce=641086_246&ha_version=beta_2&oauth_signature_method=HMAC-SHA1&ha_format=xml&ha_fancylayout=false&oauth_signature=Fgtkjp4ucJMnTo8N5zrifzMAgAE%3D

result

expiredate=1282139136&methods=users.getByUsername%2Cfriends.get&oauth_token=YXRfMTY4MzcwMzcyX9dkbcT4aQZOF0ADq2fnA9w%3D&oauth_token_secret=4H_jkWFAcQhXQ81v7LncsA%3D%3D&userid=00b00d50220b48bedbeed3e6701d0d11ce

returnvalues

<a href='http://hyves-developers.nl/returnvalues#expiredate'>expiredate</a>, <a href='http://hyves-developers.nl/returnvalues#info'>info</a>, <a href='http://hyves-developers.nl/returnvalues#methods'>methods</a>, <a href='http://hyves-developers.nl/returnvalues#oauth_token'>oauth_token</a>, <a href='http://hyves-developers.nl/returnvalues#oauth_token_secret'>oauth_token_secret</a>, <a href='http://hyves-developers.nl/returnvalues#running_milliseconds'>running_milliseconds</a>, <a href='http://hyves-developers.nl/returnvalues#secure_connection'>secure_connection</a>, <a href='http://hyves-developers.nl/returnvalues#timestamp_difference'>timestamp_difference</a>, <a href='http://hyves-developers.nl/returnvalues#userid'>userid</a>