Block / Unblock

Please refer to the following limitations:

Whether I can add someone whom I’ve blocked to a channel that I own

X

Whether someone whom I’ve blocked can join a channel that I own

X

Whether someone whom I’ve blocked can be added as a member to a channel that I am a member of

O

Whether someone whom I’ve blocked can join a channel that I am a member of

O

Whether I can be added as a member to a channel that is owned by someone I’ve blocked

X

Whether I can join a channel that is owned by someone I’ve blocked

X

Whether I can be added as a member to a channel where someone I’ve blocked is a member of

O

Whether I can join a channel where someone I’ve blocked is a member of

O

Get Blocked Users

GET https://api.talkplus.io/v1.4/api/users/:userId/blocked

Get list of users blocked by given user

Path Parameters

NameTypeDescription

userId*

string

current user

Query Parameters

NameTypeDescription

lastUserId

string

Last user ID to query from (use for pagination)

Headers

NameTypeDescription

app-id*

string

App ID

api-key*

string

App API key

{
  "users": [
    {
      "id": "badUser",
      "username": "badUser",
      "profileImageUrl": "http://cnd.test.com/bad_user.jpg",
      "disablePushNotification": false,
      "data": {},
      "updatedAt": 1603184094285,
      "createdAt": 1603184094285
    }
  ],
  "hasNext": false
}

Block User

POST https://api.talkplus.io/v1.4/api/users/:userId/block

Block user

Path Parameters

NameTypeDescription

userId*

string

current user

Headers

NameTypeDescription

content-type

string

application/json

app-id*

string

App ID

api-key*

string

App API key

Request Body

NameTypeDescription

userId*

string

user to block

{}

Unblock User

POST https://api.talkplus.io/v1.4/api/users/:userId/unblock

Unblock user

Path Parameters

NameTypeDescription

userId*

string

current user

Headers

NameTypeDescription

content-type

string

application/json

app-id*

string

App ID

api-key*

string

App API key

Request Body

NameTypeDescription

userId*

string

user to unblock

{}

Last updated