Skip to main content

Overview

Query the users that a specified user is not allowed to message privately. Pagination is supported.

Request

Authentication: Add authentication headers to the request. See Authentication.

Method: GET

Rate limit: 100 requests/second

Endpoint: https://API domain/apigateway/users/blockusers/query

Content-Type: application/json

Request Parameters

ParameterData TypeRequiredDescription
user_idstringYesID of the user whose private-message restrictions are queried. Maximum length: 32 characters.
limitintNoNumber of records per page.
offsetstringNoPagination offset.

Request Example

GET /apigateway/users/blockusers/query?user_id=user1&limit=20&offset="" HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

Response Parameters

ParameterData TypeDescription
user_idstringID of the user whose private-message restrictions were queried.
itemsarrayList of users that the specified user is not allowed to message.
items[].block_user_idstringID of a restricted recipient.
items[].created_timenumberTime when the restriction was added.
offsetstringOffset for the next page.

Response Example

{
"code":0,
"msg":"sucess",
"data":{
"user_id":"user1",
"items":[
{
"block_user_id":"user2",
"created_time":1672233498000
},
{
"block_user_id":"user3",
"created_time":1672233498000
}
],
"offset":"aaddcxx"
}
}