saveImageTransferRecord(data: SaveImageTransferRecordParams)
Requires:
@tuya-miniapp/cloud-api≥1.6.0
Description
Save image transfer upload/print record
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request parameters |
Return Value
Type: Promise<boolean>
SaveImageTransferRecordResult: whether the save succeeded
Valid Values
SaveImageTransferRecordParams.printStatus
| Value | Description | Since |
|---|---|---|
0 | - | - |
1 | - | - |
SaveImageTransferRecordParams.sourceType
| Value | Description | Since |
|---|---|---|
1 | - | - |
2 | - | - |
3 | - | - |
4 | - | - |
5 | - | - |
Examples
Request example
Response example
FAQ
Why does the call to cloud capabilities fail?
Before using this API, please ensure that the product to which the device belongs has enabled the Image Transfer advanced capability on the Tuya IoT Development Platform. Devices without this capability enabled cannot perform image upload or printing, and the API will return empty data or an error. If you need to use it, please create a product that supports image transfer/printing functions and enable the corresponding advanced capabilities in the product details. At the same time, the API depends on cloud capabilities, and authorization configuration is required in Development Settings - Cloud Capabilities on the Mini Program Developer Platform.