ステップ4: Access Tokenの更新
リクエストの実行
access_tokenが失効した場合、refresh_tokenを使用してアプリケーション用の新しいaccess_tokenを生成する必要があります。
これを行うには、以下のURLに指定のパラメーターを付けてPOSTリクエストを送信してください:
https://accounts.zoho.com/oauth/v2/token?
注意: 他のデータセンターについては、それぞれのドメインにアクセスする必要があります:
- EU: https://accounts.zoho.eu/
- AU: https://accounts.zoho.au/
- IN: https://accounts.zoho.in/
- CA: https://accounts.zohocloud.ca/
- JP: https://accounts.zohocloud.jp/
- SA: https://accounts.zohocloud.sa/
| パラメーター | 説明 |
|---|---|
| refresh_token* | 前のステップで取得したrefresh_token |
| client_id* | クライアント登録時に生成されたClient ID |
| client_secret* | クライアント登録時に生成されたClient Secret |
| grant_type* | refresh_token(この文字列リテラルを値として指定してください) |
| redirect_uri* | 前のステップでクライアントを登録する際に指定した認可済みリダイレクトURIの1つ。未登録のredirect URIは指定できません。 |
注意: *が付いたフィールドは必須です。
レスポンス例
copy
{
"access_token": "{new_access_token}",
"expires_in": 3600,
"api_domain": "https://www.zohoapis.com",
"token_type": "Bearer"
}
Yes
No
Send your feedback to us
Skip
Submit