Block User by User ID
POST
/2/users/{id}/blockingCauses the user (in the path) to block the target user. The user (in the path) must match the user context authorizing the request
请求参数
The ID of the user that is requesting to block the target user
{
"target_user_id": "string"
}
示例代码
返回响应
A generic problem with no additional information beyond that provided by the HTTP status code.
A problem that indicates this request is invalid.
A problem that indicates your client is forbidden from making this request.
A problem that indicates that a given Tweet, User, etc. does not exist.
A problem that indicates a particular Tweet, User, etc. is not available to you.
A problem that indicates you are not allowed to see a particular Tweet, User, etc.
A problem that indicates that you are not allowed to see a particular field on a Tweet, User, etc.
A problem that indicates that the resource requested violates the precepts of this API.
A problem that indicates that the authentication used is not supported.
A problem that indicates that a usage cap has been exceeded.
A problem that indicates something is wrong with the connection
Your client has gone away.
You have been disconnected for operational reasons.
You have exceeded the maximum number of rules.
The rule you have submitted is invalid.
The rule you have submitted is a duplicate.