User's Block List Sync

Use this API to sync user's block list

Request Parameter Description:

Parameter

Required

Default

Description

lastSyncTime

Yes

The last sync time sent to the server

Response Parameter Description:

Parameter

Value

Description

blockedByUserList

The list of users who has blocked the user calling the API

blockedBy

mink2

The API calling user is blocked by user mink2

blockedToUserList

The list of users who are blocked by the user calling the API

blockedTo

jack

The user has blocked the user jack

userBlocked

true

User is blocked

userBlocked

false

User is unblocked

For the next sync call, pass "lastSyncTime" parameter to get latest modification between user block/unblock state if any. Applozic API response contains "generatedAt" parameter which contains the timestamp at the time of server response. Use this timestamp as "lastSyncTime" for your next block sync API call.

📘

Note:

In case of Application Bot calling the API, Of-User-Id header also required.
Of-User-Id is the userId of user for which bot user wants to get the blockedTo and blockedBy users list.

Language
Authentication
Click Try It! to start a request and see the response here!