AI Integration Quick Reference
AI Integration Quick Reference
.byMe | .me | .both (default)Block Users
Block users to prevent all communication with them. UseblockUsers() with an array of UIDs.
- Swift
- Objective C
"success" or "fail" as values based on if the block operation for each UID was successful.
Unblock Users
Unblock previously blocked users usingunblockUsers() with an array of UIDs.
- Swift
- Objective C
"success" or "fail" as values based on if the unblock operation for each UID was successful.
Get List of Blocked Users
UseBlockedUsersRequestBuilder to fetch blocked users with filtering and pagination.
Set Limit
Sets the number of blocked users to fetch per request.- Swift
Set Search Keyword
Filters blocked users by a search string.- Swift
Set Direction
Filters by block direction:.byMe— Users blocked by the logged-in user.me— Users who have blocked the logged-in user.both— Both directions (default)
- Swift
build() to get the BlockedUsersRequest object, then call fetchNext() to retrieve blocked users.
- Swift
- Objective C
fetchNext() method returns an array of User objects representing blocked users.
Relevant fields to access on returned users:
| Field | Type | Description |
|---|---|---|
| blockedByMe | Bool | Whether the logged-in user has blocked this user |
| hasBlockedMe | Bool | Whether this user has blocked the logged-in user |
Next Steps
Retrieve Users
Fetch and filter user lists
User Presence
Track online/offline status of users
User Management
Create, update, and delete users
Flag Message
Report inappropriate messages from users