Get User Tags
Get user tags.
Request Method
POST: https://data center domain/user/tags/get.json
Rate Limit: 100 requests per second
Signature Rule: All server API requests must follow the signature rule. For details, see API Request Signature.
Body Parameters
The HTTP request body is in application/x-www-form-urlencoded
format and supports the following HTTP form parameters:
Parameter | Type | Required | Description |
---|---|---|---|
userIds | String[] | Yes | User IDs, up to 50 users per request. |
Request Example
POST /user/tags/get.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408706337
Signature: 890b422b75c1c5cb706e4f7921df1d94e69c17f4
Content-Type: application/x-www-form-urlencoded
userIds=111&userIds=222
Response
The HTTP response body contains a JSON object with the following structure:
Return Value | Type | Description |
---|---|---|
code | Number | Return code, 200 indicates success. |
result | Object | A JSON object in Map structure, containing the mapping between user IDs and their corresponding tag arrays. The user ID is the key, and the tag array is the value, which includes string-type tags. |
Response Example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"code": 200,
"result": {
"u01": [
"tag4",
"tag3"
],
"u02": [
"tag4",
"tag3"
]
}
}