Zalo User icon

Zalo User

Quản lý người dùng Zalo

User → Lấy danh sách lời mời kết bạn đã gửi

AI-generated

Overview

This node interacts with the Zalo User API to manage user-related actions on the Zalo platform. Specifically, for the operation 'Lấy danh sách lời mời kết bạn đã gửi' (Get the list of sent friend requests), it retrieves the list of friend requests that the authenticated user has sent to others. This is useful for monitoring outgoing friend requests and managing social connections on Zalo.

Use Case Examples

  1. A user wants to see all the friend requests they have sent but are still pending acceptance.
  2. An application needs to display the status of sent friend requests to help users manage their social network.

Output

JSON

  • status - Indicates the success status of the operation, typically 'Thành công' (Success).
  • sentRequests - An array containing the list of friend requests that have been sent by the user.

Dependencies

  • Requires Zalo API credentials including cookie, IMEI, and user agent for authentication.

Troubleshooting

  • Ensure valid Zalo API credentials are provided; otherwise, the node will throw an error indicating no API instance found.
  • If the API call fails, the node returns an error message in the output JSON under the 'error' key.
  • Use the 'continueOnFail' option to handle errors gracefully and continue processing other items.

Discussion