List blocked by and blocking users
This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Parameters
Required | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of the user. |
Optional | Type | Description |
---|---|---|
list | string | Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are |
token | string | Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set as |
limit | int | Specifies the number of results to return per page. Acceptable values are |
user_ids | string | Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. |
metadatakey | string | Specifies a keyword to search for. The keyword acts as a filter to search for blocked or blocking users with metadata containing the keyword as a key. This parameter should be specified in conjunction with the |
metadatavalues_in | string | Specifies a keyword to search for. The keyword acts as a filter to search for blocked or blocking users with metadata containing the keyword in its values. This parameter works in conjunction with the key specified by the |
Responses
If successful, this action returns a list of user resources in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
users[] | array of objects | An array of users who are either blocked by the specified user or are blocking the specified user. |
next | string | The value that can be used in the |
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.