GetAuthCode
Description: Retrieves the information required by the Wuying WebSDK to remotely access a robot.
Path: rpa/openapi/raas/resource/GetAuthCode
Method: GET
Usage notes:
Call this operation to get the connection information that the Wuying WebSDK requires to remotely access a service-type robot's cloud desktop.
For more information about the Wuying WebSDK, see https://wuying.aliyun.com/wuyingWebSdk/index.html.
Request parameters:
Parameter | Type | Required | Example | Description |
RobotId | String | Yes | 657963 ****** D178CAC2FCBD5BD0B4EC | The ID of the robot. You can specify only one robot ID per request. |
Response parameters:
For information about common response parameters, see the general response structure. The following table describes the parameters within the data object.
Parameter | Type | Example | Description |
DesktopId | String | ecd-9jhz6*******0unio | The ID of the cloud desktop. |
RegionId | String | cn-hangzhou | The region where the cloud desktop is located. |
SessionStatus | String | connected | Indicates whether a terminal is connected to the cloud desktop. Valid enum values: notConnected and connected. |
CurrentEndUserId | String | test | If SessionStatus is connected, this parameter returns the user ID of the currently logged-in user. If SessionStatus is notConnected, this parameter is empty. |
TargetEndUserId | String | test | The recommended Wuying account for signing in to the Wuying WebSDK. This account corresponds to the Windows user that you specified when you added the service-type robot. |
AuthCode | String | acv2xAlQNjedKC************************r0S+QjUcRGGGyp6m7KwlwnXKmLODnIwk6WXKo | The authorization code required for Wuying WebSDK login. This authorization code is valid for 3 minutes and can only be used once, regardless of whether the verification succeeds or fails. If multiple authorization codes are generated for a user, only the most recent code is valid. |