Actions18
- Message Actions
- Friend Actions
- Group Actions
- Get Actions
Friend → Get All Friends
AI-generatedSummary
Retrieve a list of friends from the Zalo User API limited to a specified number.
Inputs
- Limit — Maximum number of friends to return, defaulting to 10 if not specified.
Output shape
a single JSON object containing an array under the key 'friends', each representing a friend.
The result list is limited by the 'Limit' parameter. The friends data structure is derived from the ZaloUser API's getAllFriends() method. Pagination is handled by the 'Limit' parameter; no additional paging is indicated. If the API call fails and 'Continue On Fail' is enabled, the output will contain an error message instead of friend data.
Examples
Example 1: Retrieve the first 10 friends
Set 'Limit' to 10 (default). The node outputs a JSON object with 'friends' array of up to 10 friend records.