Authorize a Ram user.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

Request syntax

POST /pop/v5/account/authorize_app HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
TargetUserId String Yes test@133434434****

The USER ID of the Ram USER to be authorized. (format: Ram USER name @ primary account UID.)

AppIds String No 5 fdf50e8-****696-****

The ID of the application. Separate multiple application IDs with ";". If this parameter is null, the application is revoked.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String E3DA95D3-************

Examples

Sample requests

POST /pop/v5/account/authorize_app HTTP/1.1
Common request header
{
  "TargetUserId": ""
}

Sample success responses

XML format

<RequestId>E3DA95D3-***********</RequestId>
<Code>200</Code>
<Message>success</Message>

JSON format

{
    "RequestId": "E3DA95D3-***********",
    "Code": "200",
    "Message": "success"
}

Error codes

For a list of error codes, visit the API Error Center.