Actions16
- ZNS Message Actions
- ZNS Template Actions
- ZNS Info Actions
ZNS Template → Upload Image
AI-generatedOverview
This node integrates with the Zalo Notification Service (ZNS) API, specifically supporting the 'Upload Image' operation under the 'ZNS Template' resource. It allows users to upload images either by providing binary data from a previous node or by specifying a file path on the server. This is useful for scenarios where users need to send images as part of Zalo notifications or templates, such as marketing campaigns or customer notifications.
Use Case Examples
- Uploading an image from binary data received from a previous node to be used in a Zalo notification template.
- Uploading an image from a file path on the server to include in a Zalo ZNS template.
Properties
| Name | Meaning |
|---|---|
| Input Mode | Determines how the image file is provided for upload, either as binary data from a previous node or as a file path on the server. |
| Input Binary Field | The name of the binary data field containing the image file when 'Binary Data' input mode is selected. |
| File Path | The file path to the image on the server when 'File Path' input mode is selected. |
Output
JSON
json- The JSON response from the Zalo ZNS API after uploading the image, containing details about the uploaded image or error information.
Dependencies
- Requires Zalo OA API credentials for authentication to access the Zalo Notification Service API.
Troubleshooting
- Common issues include providing an invalid file path or missing binary data when required, which will cause the upload to fail.
- Errors related to authentication failures if the Zalo OA API credentials are incorrect or expired.
- If the operation or resource is unknown or unsupported, the node throws an error indicating the unknown operation for the specified resource.