Skip to content

unblockUser(sourceUserId_targetUserId_)

daneden edited this page Jan 15, 2022 · 1 revision

unblockUser(sourceUserId:targetUserId:)

Causes the source user to block the target user. The source user ID must match the currently authenticated user ID.

public func unblockUser(sourceUserId: User.ID, targetUserId: User.ID)

Equivalent to DELETE /2/users/:source_user_id/blocking/:target_user_id

Parameters

  • sourceUserId: The user ID who you would like to initiate the block on behalf of. It must match the user ID of the currently authenticated user.
  • targetUserId: The user ID of the user you would like the source user to block.

Returns

A BlockResponse indicating the blocked status.

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally