Refresh Document Preview and Editing Token
Operation description
Please ensure that you fully understand the billing method and pricing of the Intelligent Media Management product before using this interface.
- For detailed billing information, refer to the WebOffice Billing Instructions.
- The access token expires after 30 minutes. You must open the preview before the access token expires; otherwise, you will not be able to preview.
- The refresh token expires after 1 day. You need to call the refresh interface before the refresh token expires; otherwise, the token will become invalid.
- The expiration time returned is in UTC, which has an 8-hour difference from Beijing Time.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| imm:RefreshWebofficeToken | none | *Project acs:imm:{#regionId}:{#accountId}:project/{#ProjectName} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ProjectName | string | Yes | Project name. For more information on how to obtain it, see Create Project. | test-project |
| AccessToken | string | Yes | Weboffice access token. Obtain it through the GenerateWebofficeToken or RefreshWebofficeToken interfaces. | 99d1b8b478b641c1b3372f5bd6******** |
| RefreshToken | string | Yes | Weboffice refresh token. Obtain it through the GenerateWebofficeToken or RefreshWebofficeToken interfaces. | a730ae0d7c6a487d87c661d199******** |
| CredentialConfig | CredentialConfig | No | If there are no special requirements, leave it blank. Chained authorization configuration, optional. For more information, see Access Other Entity Resources Using Chained Authorization. |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "501339F9-4B70-0CE2-AB8C-866C********",
"RefreshToken": "72a52ab3702a4123ab5594671a********",
"AccessToken": "4996466c690a4902846ce00f96********",
"RefreshTokenExpiredTime": "2021-09-01T12:37:28.950065359Z",
"AccessTokenExpiredTime": "2021-08-31T13:07:28.950065359Z"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-04-19 | The API operation is not deprecated.. The Error code has changed | View Change Details |
| 2023-08-30 | The Error code has changed | View Change Details |
