Refreshes a Weboffice access token. A Weboffice access token is valid for 30 minutes. After it expires, you can no longer access Weboffice. To continue accessing Weboffice, call this operation to refresh the Weboffice access token and obtain a new token that is also valid for 30 minutes.
Operation description
Make sure that you are familiar with the billing method and pricing of Intelligent Media Management (IMM) before you invoke this operation.
For billing details, refer to WebOffice billing.
The access token expires in 30 minutes. Open the preview before the access token expires. After the token expires, previewing is no longer available.
The refresh token expires in 1 day. Invoke the refresh operation before the refresh token expires. After the token expires, it becomes invalid.
The returned expiration time is in UTC, which is 8 hours behind UTC+8.
The access token is used for actual preview session access. The refresh token simplifies the parameter settings required for refreshing tokens. You can use the refresh token to directly obtain a new token with the previously configured settings.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:RefreshWebofficeToken |
none |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. For information about how to obtain the project name, see Create a project. |
test-project |
| AccessToken |
string |
Yes |
The Weboffice access token. You can obtain the token by calling the GenerateWebofficeToken or RefreshWebofficeToken operation. |
99d1b8b478b641c1b3372f5bd6******** |
| RefreshToken |
string |
Yes |
The Weboffice refresh token. You can obtain the token by calling the GenerateWebofficeToken or RefreshWebofficeToken operation. |
a730ae0d7c6a487d87c661d199******** |
| CredentialConfig | CredentialConfig |
No |
Leave this parameter empty unless you have special requirements. The China authorization configuration. This parameter is optional. For more information, see Use chained authorization to access resources of other entities. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The Weboffice access token. |
||
| RequestId |
string |
The request ID. |
501339F9-4B70-0CE2-AB8C-866C******** |
| RefreshToken |
string |
The Weboffice refresh token. |
72a52ab3702a4123ab5594671a******** |
| AccessToken |
string |
The Weboffice access token. |
4996466c690a4902846ce00f96******** |
| RefreshTokenExpiredTime |
string |
The expiration time of the refresh token. The refresh token expires in 1 day. Format: ISO 8601 UTC timestamp with millisecond precision. |
2021-09-01T12:37:28.950065359Z |
| AccessTokenExpiredTime |
string |
The expiration time of the access token. The access token expires in 30 minutes. Format: ISO 8601 UTC timestamp with millisecond precision. |
2021-08-31T13:07:28.950065359Z |
Examples
Success response
JSON format
{
"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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.