Zalo Sticker icon

Zalo Sticker

Quản lý sticker trên Zalo

Overview

This node operation "Lấy Chi Tiết Sticker" (Get Sticker Detail) for the resource "Zalo Sticker" retrieves detailed information about a specific sticker by its ID from the Zalo platform. It is useful when you want to fetch metadata or details about a particular sticker, such as its properties or usage data.

Typical use cases include:

  • Displaying detailed sticker information in chatbots or messaging apps integrated with Zalo.
  • Managing or cataloging stickers by fetching their details dynamically.
  • Enriching user interfaces with sticker metadata fetched on demand.

Example: Given a sticker ID, the node will call the Zalo API and return the full detail of that sticker, which can then be used downstream in workflows.

Properties

Name Meaning
Sticker ID The unique identifier of the sticker whose detailed information you want to retrieve. This is a required string input.

Output

The node outputs JSON data containing the detailed information of the requested sticker. The structure includes at least:

  • success: A boolean indicating if the request was successful.
  • message: A descriptive message about the result.
  • data: The detailed sticker information returned from the Zalo API.
  • count (optional): If the data is an array, this indicates the number of items.
  • query (optional): The original query parameter (sticker ID) used.

The output is paired with the input item index for traceability.

No binary data output is indicated in the code.

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • Uses an internal helper class to handle API requests, which requires cookies, IMEI, and user agent strings extracted from credentials or environment.
  • The node expects proper configuration of authentication credentials to access the Zalo API.

Troubleshooting

  • Common issues:

    • Missing or invalid Sticker ID input will cause the node to fail.
    • Authentication failures due to missing or incorrect API credentials.
    • Network or API errors from Zalo service.
  • Error messages:

    • If the API client instance cannot be created (missing cookies or tokens), the node throws an error indicating missing authentication.
    • If the API call fails, the error is caught and returned in the output JSON under the error field.
    • If the node is set to continue on failure, it will output the error per item; otherwise, it throws the error to stop execution.
  • Resolution:

    • Ensure the Sticker ID is provided and valid.
    • Verify that the API key credential and other required authentication details are correctly configured.
    • Check network connectivity and Zalo API status.

Links and References

Discussion