Checkvist > 認証

認証 (for non-public checklists)


  • ベーシックHTTP認証を扱えるなら、それが使える。パスワードは実際のもの。ユーザープロファイルページから取得した Remote APIキーもつかえる。

Tokenを使った認証

  • tokenを取得する
  • そのtokenを使って、通信。
  • tokenには有効期限がある。
    • 通信の有効期限:1日(デフォルトで?変えられる?)
    • tokenを更新する:90日 refresh_token

tokenの取得

To obtain the token, you should use the following API call:
URL Method HTTP parameters Response
/auth/login.json get/post username - ログイン名(email)
remote_key - User's remote API Key (プロファイルページで取得 or パスワード)
callback - Optional javascript callback function (will get token as a parameter)
Returns quoted token string in the body, unless callback parameter is passed. If authentication failed, will return HTTP status 403 Forbidden.

Ahd here is the refresh_token call, which allows to get the new token without providing username/remote_key.
URL Method HTTP parameters Response
/auth/refresh_token.json get/post old_token - Previously obtained token
callback - Optional javascript callback function (will get token as a parameter)
最終更新:2015年09月19日 10:15