Urlを更新する

それは助けます アクセストークンの更新 それが期限切れになったら。 これにより、ユーザーは付与トークンを生成し、アクセストークンを生成する長い巻線プロセスを繰り返すことができます。

可能な場所

  • 熱 意/ヘルプ/ zest -仕様ファイル/認証スキーマ/oauth2/">OAuth2

子要素

  • 熱 意/ヘルプ/ zest -仕様ファイル/説明/">説明 - 熱意 /ヘルプ/ -仕 zest 様ファイル/url/操作/導入/">操作 必須

属性


お名前 タイプ 説明
パス

必須

文字列 Urlパス

例

旅行リソースでは、 oauth2 認証のためのフロー。 したがって、ここに示すように、認証スキーマに更新Urlを追加する必要があります。

copy

<refresh-url path="https://accounts.travel_bureau.com/oauth/v2/token">
 <operation method="post" name="Refresh Access Token" category="action">
 <description>Access tokens expire after an hour of generation. To generate a new access token, use the refresh token you generated earlier.</description>
 <argument name="refresh_token" location="param">
 <content>
 <encode type="text/plain" />
 <structure>
 <property type="string" values="authorization_code"/>
 </structure>
 </content>
 </argument>
 <argument name="client_id" location="param">
 <description>Specify client-id obtained from the connected app.</description>
 <content>
 <encode type="text/plain" />
 <structure>
 <property type="string"/>
 </structure>
 </content>
 </argument>
 <argument name="client_secret" location="param">
 <description>Specify client-secret obtained from the connected app.</description>
 <content>
 <encode type="text/plain" />
 <structure>
 <property type="string"/>
 </structure>
 </content>
 </argument>
 <argument name="grant_type" location="param">
 <content>
 <encode type="text/plain" />
 <structure>
 <property type="string" values="refresh_token"/>
 </structure>
 </content>
 </argument>
 <response status="200">
 <content>
 <encode type="application/json" />
 <structure>
 <property name="access_token" type="string">
 <description>Access token to access ZohoCRM APIs</description>
 </property>
 <property name="expires_in" type="string" values="3600">
 <description>Time in seconds after which the access token expires</description>
 </property>
 <property name="api_domain" type="string">
 <description>Domain name of the API. Use this domain in your requests to make API calls to Zoho CRM.</description>
 </property>
 <property name="token_type" type="string" values="Bearer">
 <description>Type of token obtained. "Bearer" indicates this is an access token.</description>
 </property>
 </structure>
 </content>
 </response>
 </operation>
 </refresh-url>

Last Updated 2026-02-06 15:55:45 +0530 IST