codedao12 - Zalo User icon

codedao12 - Zalo User

Tổng hợp chức năng gửi tin nhắn, quản lý user, group, cài đặt

Actions104

User Action → Bạn bè: Xóa

AI-generated

Summary

Remove a friend from the authenticated Zalo user's friend list by specifying the friend's User ID.

Inputs

  • useSession — Optional boolean toggle to use a custom credential session for authentication instead of the default credential.
  • connectToId (required) — The user ID or phone number of the logged-in Zalo account used to authenticate the operation. Required if 'useSession' is enabled.
  • userId (required) — The User ID of the friend to be removed from the friend list.

Output shape

a single JSON object indicating success or failure of the remove friend action, including any error messages if applicable.

The output does not seem paginated or list multiple items. The operation requires correct authentication (credential or custom session) to function. Any error from the Zalo API will be reflected in the output.

Examples

Example 1: Remove a friend by their User ID using default credential authentication.

Set 'useSession' to false (default), provide the friend's 'userId' in input.

Example 2: Remove a friend by their User ID using a custom credential session.

Set 'useSession' to true, select the 'connectToId' for the logged-in account, and provide the friend's 'userId'.

Links

Discussion