Hyves - Always in touch with your friends

Data-API

Methods

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

params

  • methods --- Comma-separated list of method-names. The request token will be valid for only these methods.
    • Required
  • 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

examples

example 1

url
https://data.hyves-api.nl/?methods=users.get%2Cfriends.get&ha_method=auth.requesttoken&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&ha_version=2.0&oauth_signature_method=PLAINTEXT

result
  •  <?xml version="1.0" encoding="UTF-8"?>
  •  <auth_requesttoken_result>
  •   <oauth_token>cnRfNl8EAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfMTMxMzA2MzE3NF8xMTE1NDM5OTM1X2xneb6_aJ_mckTCdv8Oz_c=</oauth_token>
  •   <oauth_token_secret>QkWGI0ZnOyfJIKbMWZB-qw==</oauth_token_secret>
  •   <info>
  •   <secure_connection>true</secure_connection>
  •   <running_milliseconds>9</running_milliseconds>
  •   <serverinfo>web1044_stable_93882_HPHP</serverinfo>
  •   </info>
  •  </auth_requesttoken_result>

example 2

url
https://data.hyves-api.nl/?methods=users.get%2Cfriends.get&expirationtype=infinite&ha_method=auth.requesttoken&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&ha_version=2.0&oauth_signature_method=PLAINTEXT

result
  •  <?xml version="1.0" encoding="UTF-8"?>
  •  <auth_requesttoken_result>
  •   <oauth_token>cnRfNl8EAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfMTMxMzA2MzE3NF8xOTMwNTM2ODI0X-oF3u4z6N2ONFLi8K5hHW0=</oauth_token>
  •   <oauth_token_secret>O8m00PlA3vb6qlRSli7-DA==</oauth_token_secret>
  •   <info>
  •   <secure_connection>true</secure_connection>
  •   <running_milliseconds>8</running_milliseconds>
  •   <serverinfo>web1123_stable_93882_HPHP</serverinfo>
  •   </info>
  •  </auth_requesttoken_result>

Categories

  • auth

© 2004-2012 Hyves   Algemene Gebruiksvoorwaarden   Je Privacy

Aanmelden