Klat
  • TalkPlus SDK
  • Android
    • Getting Started
    • Callback
    • User
      • Create User / Login
      • Update User Information
      • Block / Unblock
      • Logout
      • Delete User
    • Channel
      • Create / Delete Channel
      • View Channel
      • Updating Channel
      • Viewing Channel LIst
      • Manage Channel Members
      • Join / Leave Channel
      • Messaging
      • Hide / Show Channel
      • Freeze / Unfreeze Channel
      • Transfer Channel Ownership
      • Channel Push Notification Settings
      • Channel Member Data
    • Push Notification
    • Sample Application
    • What's New
  • iOS
    • Getting Started
    • Callback
    • User
      • Create / Login
      • Update User Information
      • Block / Unblock
      • Logout
      • Delete User
    • Channel
      • Create / Delete Channel
      • View Channel
      • Updating Channel
      • View Channel List
      • Manage Channel Members
      • Join / Leave Channel
      • Messaging
      • Hide / Show Channel
      • Freeze / Unfreeze Channel
      • Transfer Channel Ownership
      • Channel Push Notification Settings
      • Channel Member Data
    • Push Notification
    • Sample Application
    • What's New
  • Unity
    • Getting Started
    • Callback
    • User
      • Create User / Login
      • Update User Information
      • Block / Unblock
      • Logout
      • Delete User
    • Channel
      • Create / Delete Channel
      • View Channel
      • Updating Channel
      • View Channel List
      • Manage Channel Members
      • Join / Leave Channel
      • Messaging
      • Hide / Show Channel
      • Freeze / Unfreeze Channel
      • Transfer Channel Ownership
      • Channel Push Notification Settings
      • Channel Member Data
    • Push Notification
    • Sample Application
  • JavaScript
    • Getting Started
    • Realtime Event
    • Pagination
    • User
      • Create User / Login
      • Update User Information
      • Block / Unblock
      • Logout
      • Delete
    • Channel
      • Create / Delete Channel
      • View Channel
      • Updating Channel
      • View Channel List
      • Manage Channel Members
      • Join / Leave Channel
      • Messaging
      • Hide / Show Channel
      • Freeze / Unfreeze Channel
      • Transfer Channel Ownership
      • Channel Push Notification Settings
      • Channel Member Data
    • Push Notification (FCM)
    • Sample Application
    • What's New
  • Flutter
    • Getting Started
    • Callback
    • User
      • Create User / Login
      • Update User Information
      • Block / Unblock
      • Logout
      • Delete User
    • Channel
      • Create Channel
      • View Channel
      • Updating Channel
      • View Channel List
      • Manage Channel Members
      • Join / Leave Channel
      • Messaging
      • Hide / Show Channel
      • Freeze / Unfreeze Channel
      • Transfer Channel Ownership
      • Channel Push Notification Settings
      • Channel Member Data
    • Push Notification (FCM)
  • REST API
    • Getting Started
    • API
      • Users
        • Create User
        • Login (using login token)
        • View User
        • Update User
        • Activate / Deactivate
        • Enable / Disable Push Notification
        • Delete User
        • View Users
        • View Channels
        • Block / Unblock
      • Channel
        • Create Channel
        • View Channel
        • Update Channel
        • Delete Channel
        • View Channel List
        • Manage Channel Members
        • Messaging
        • Hide / Show Channel
        • Channel Freeze / Unfreeze
        • Transfer Channel Ownership
        • Channel Push Notification Settings
      • Bot
        • Create Bot
        • View Bot List
        • View Bot
        • Update Bot
        • Delete Bot
        • View Joined Channel List
        • Messaging
        • Join / Leave Channel
    • Push Notification
    • Rate Limit
  • MISC
    • Webhooks
    • SDK Rate Limit
    • Error Code
    • FAQ
      • Function
      • Spec
Powered by GitBook
On this page
  • Get Blocked Users
  • Block User
  • Unblock User
  1. REST API
  2. API
  3. Users

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

Name
Type
Description

userId*

string

current user

Query Parameters

Name
Type
Description

lastUserId

string

Last user ID to query from (use for pagination)

Headers

Name
Type
Description

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
}
{
  "error": true,
  "code": "1006",
  "message": "Unauthorized"
}

Block User

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

Block user

Path Parameters

Name
Type
Description

userId*

string

current user

Headers

Name
Type
Description

content-type

string

application/json

app-id*

string

App ID

api-key*

string

App API key

Request Body

Name
Type
Description

userId*

string

user to block

{}
{
  "error": true,
  "code": "1006",
  "message": "Unauthorized"
}

Unblock User

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

Unblock user

Path Parameters

Name
Type
Description

userId*

string

current user

Headers

Name
Type
Description

content-type

string

application/json

app-id*

string

App ID

api-key*

string

App API key

Request Body

Name
Type
Description

userId*

string

user to unblock

{}
{
  "error": true,
  "code": "1006",
  "message": "Unauthorized"
}

PreviousView ChannelsNextChannel

Last updated 11 months ago