Get Refresh Token
Debugging tools
Interface should be called on the server side, seeHattori API。
Interface Dxplaination
Interface name
getAuthorizerRefreshToken
Functional description
- After the user has completed the authorization process in the third party platform authorization page, the third party platform developer can call back URI Adopted in URL Parameters to obtain authorization code(authorization_code)The interface can then be used in exchange for Official Account message template/The refresh token of the Mini Program_refresh_token)。
- It is recommended to save the refresh token in the authorization information authorizer_refresh_If you encounter problems during the use of the token, you canOpen Platform Service Provider ZonePosting exchanges
Note
- Official Account message template/Mini Programs can be customized to select some permissions granted to third-party platforms, so third-party platform developers need to use this interface to obtain Official Account message template/The Mini Program specifically authorizes what permissions, rather than simply thinking that the permissions it declares are Official Account message template/The permissions granted by the Mini Program.
Calling mode
HTTPS call
Request parameters
Return parameters
| attribute | type | Introductions |
| authorization_info | object | Authorization Information |
| | attribute | type | Introductions | | authorizer_appid | string | Authorized Official Account message template Or Mini programs. appid | | authorizer_access_Token | string | Interface to invoke the token (in the authorized Official Account message template/Small programs have API This return value is only possible if you have permission to do so. | | expires_in | number | authorizer_access_Token The validity period of the Official Account message template/Mini Program with API permissions, only this return value), unit: seconds | | authorizer_refresh_Token | string | Refresh Token (this return value is only available if the authorized Official Account message template has API permissions), which is primarily used by a third-party platform to obtain and refresh an authorized user's authorizer_access_token。 Once lost, the user can only be re-authorized to get a new refresh token again. When the user reauthorizes, the previous refresh token will expire | | func_info | array | A list of permission set IDs that are authorized to a third-party platform, and the meaning of the permission set IDs can be viewedIntroduction to Permission Sets | | | attribute | type | Introductions | | funcscope_category | object | Details of the permission set granted to the developer | | | attribute | type | Introductions | | id | number | Permission set id | | type | number | Permission Set Type | | name | string | Permission Set Name | | desc | string | Permission Set Description |
|
|
|
Call Example
Example Dxplaination: HTTPS requests
Sample Request Data
Return Data Example
Error code
Error code | Error code | Solutions |
-1 | system error | The system is busy, please wait for the developer to try again |
40001 | invalid credential access_Token isinvalid or not latest | Obtain access_Token time AppSecret Error, or access_Token Invalid. Please take the developer more seriously. AppSecret Of the correctness, or to see if you are working for the appropriate Official Account message template Call interface |
40013 | invalid appid | Illegal AppID , ask the developer to check AppID The correctness of the, avoid unusual characters, pay attention to the case |
0 | ok | ok |