APIMethods/1.2.1/auth.requesttoken

TracNav

auth.requesttoken

Retrieves a request token. The oauth_token parameter should be absent.

params

  • expirationtype --- Type of expiration.
    • Optional
    • Default: default
    • Possible values:
      • default --- Default token, valid for 6 hour.
      • infinite --- Infinite token, no expiration time
      • user --- The User chooses the expiredate for the token.
  • 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 ---
    • Optional

extra

examples

example 1

url

http://data.hyves-api.nl/?methods=users.get%2Cfriends.get&ha_method=auth.requesttoken&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&oauth_timestamp=1282117687&oauth_nonce=90826_505&ha_version=1.2.1&oauth_signature_method=HMAC-SHA1&ha_format=xml&ha_fancylayout=false&oauth_signature=0NZRMxH%2FAvRxOgjR9qejJDSXn%2Fc%3D

result

<?xml version="1.0" encoding="UTF-8"?>
<auth_requesttoken_result>
        <oauth_token>cnRfNl8EAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF8xMjgyMTE3Njg3XzEyODY2OTA1MTVfnD-PlQuxlfePO81rXzObAA==</oauth_token>
        <oauth_token_secret>XEOhKiXR2F2FCpiotXTKhQ==</oauth_token_secret>
        <info>
                <timestamp_difference>0</timestamp_difference>
                <running_milliseconds>68</running_milliseconds>
                <secure_connection>false</secure_connection>
        </info>
</auth_requesttoken_result>
example 2

url

http://data.hyves-api.nl/?methods=users.get%2Cfriends.get&expirationtype=infinite&ha_method=auth.requesttoken&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&oauth_timestamp=1282117687&oauth_nonce=847146_506&ha_version=1.2.1&oauth_signature_method=HMAC-SHA1&ha_format=xml&ha_fancylayout=false&oauth_signature=Pj72IXdQK4yAaz%2Bzy%2FeraHG7reo%3D

result

<?xml version="1.0" encoding="UTF-8"?>
<auth_requesttoken_result>
        <oauth_token>cnRfNl8EAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF8xMjgyMTE3Njg4XzEzNjEyMjQwNV-xX4DeObqZhcLC1i6gIOty</oauth_token>
        <oauth_token_secret>B_wnPb37MIj1YWrBKLIvKw==</oauth_token_secret>
        <info>
                <timestamp_difference>1</timestamp_difference>
                <running_milliseconds>71</running_milliseconds>
                <secure_connection>false</secure_connection>
        </info>
</auth_requesttoken_result>

returnvalues

<a href='http://hyves-developers.nl/returnvalues#info'>info</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>