Actions41
- Bạn Bè Actions
- Tài Khoản Actions
- Riêng Tư Actions
- Biệt Danh Actions
- ẢNh ĐạI Diện Actions
- Tin Nhắn Actions
- Hệ Thống Actions
Hệ Thống → Lấy Trạng Thái Hoạt Động
AI-generatedSummary
Checks a Zalo user’s last activity status using their user ID. The node logs in with the configured Zalo credentials, calls lastOnline, and returns the result for each input item.
Inputs
- userId (required) — ID of the Zalo user to check.
- Zalo credentials (required) — A Zalo credential is required to log in and call the API.
Output shape
One item per input item, each containing a JSON object with status, userId, and lastOnline.
statusis set toThành công;lastOnlinecontains the value returned by the Zalo API. Errors are thrown for the item unless Continue On Fail is enabled, in which case an item with anerrorfield is returned.
Examples
Example 1: Check a user's last active status
Supply the required userId and valid Zalo credentials; the node calls api.lastOnline(userId).