Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Overview

The "Zalo OA" node integrates with the Zalo Official Account (OA) API, enabling automation of various interactions and management tasks related to a Zalo OA. The specific operation "Chuẩn Bị Upload Video" (Prepare Upload Video) is designed to initiate the process of uploading a video by preparing necessary parameters such as the video name and size.

This node is beneficial in scenarios where users want to automate content publishing workflows on Zalo OA, such as scheduling video uploads or managing media assets programmatically. For example, a marketing team could use this node to prepare videos for upload before sending them out as part of a campaign.

Properties

Name Meaning
Tên Video The name/title of the video to be uploaded.
Kích Thước Video (byte) The size of the video file in bytes, used to inform the API about the upload size.

Output

The output of the "Chuẩn Bị Upload Video" operation is a JSON object containing the response from the Zalo OA API after preparing the video upload. This typically includes information such as an upload URL or token that can be used in subsequent steps to actually upload the video content.

No binary data output is indicated for this operation; the output is purely JSON metadata related to the video upload preparation.

Dependencies

  • Requires an active connection to the Zalo Official Account API via an API access token credential.
  • The node uses the axios library for HTTP requests and form-data for multipart form submissions (though not directly in this operation).
  • Proper permissions must be granted to the API token to allow video upload operations.

Troubleshooting

  • Common issues:

    • Incorrect or missing video size or name parameters may cause the API to reject the request.
    • Invalid or expired API access tokens will result in authentication errors.
    • Network connectivity problems can cause request failures.
  • Error messages:

    • Errors returned from the API will be included in the output JSON under an error field with descriptive messages.
    • If the node encounters an error during execution, it logs the error message and includes suggestions such as verifying access token validity and parameter correctness.
  • Resolution tips:

    • Ensure the video size matches the actual file size in bytes.
    • Confirm the video name is provided and valid.
    • Verify the API token has the required scopes/permissions.
    • Check network connectivity and retry if transient errors occur.

Links and References


Note: The summary focuses solely on the "Chuẩn Bị Upload Video" operation within the "Zalo OA" resource, based on static analysis of the provided source code and input property definitions.

Discussion