Skip to main content

Paginated Retrieval of All Application Users

Retrieve a list of all application users hosted on RC servers, with results displayed in paginated format.

Enable the Service

Before calling this API, enable the profile hosting service by submitting a ticket.

Request Method

POST: https://data center domain/user/profile/query.json

Rate Limit: 100 requests per second

Signature Rule: All server API requests require signature verification. See API Request Signature for details.

Request Parameters

The HTTP request body uses application/x-www-form-urlencoded format and supports the following form parameters:

ParameterTypeRequiredDescription
pageNumberNoDefault: 1
sizeNumberNoDefault: 20, Max: 100
orderNumberNoSorting by registration time. Default ascending (0=ascending, 1=descending)

Request Example

POST /user/profile/query.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/x-www-form-urlencoded

page=1&count=30&order=1

Response

The HTTP response body contains a JSON object with the following structure:

FieldTypeDescription
codeNumberStatus code (200 indicates success)
userListJSONArrayUser list information
userList structure

The userList structure contains:

FieldTypeDescription
userList[i].userIdStringUser ID
userList[i].userProfileStringBasic user information (JSON data)
userList[i].userExtProfileStringExtended user information (JSON data)

The userProfile contains the following keys:

KeyTypeLength/RangeDescription
uniqueIdStringMax 32 charsApplication user ID
nameStringMax 32 charsNickname
portraitUriStringMax 128 charsAvatar URL
emailStringMax 128 charsEmail address
birthdayStringMax 32 charsBirthday
genderIntValues:
  • 0: Unknown
  • 1: Male
  • 2: Female
Gender
locationStringMax 32 charsLocation
roleInt0-100Role
levelInt0-100Level

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
"code": 200,
"userList": [
{
"userId": "u01",
"userProfile": {"appName":"testAppName","level":2},
"userExtProfile": {"ext_Profile":"testExt"}
}
]
}