packages/api-client/BasicModuleAccessoryCallbackInterfaceApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| notifyCallback | POST /asset/upload/callback | Resource upload completion notification callback |
| widgetCallback | POST /asset/widget/uploadCallback | widget upload callback |
ResponseDataListAssetUploadResult notifyCallback(assetUploadNotifyRO)
After S3 completes the client upload, it actively reaches the notification server
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .BasicModuleAccessoryCallbackInterfaceApi(configuration);
let body:.BasicModuleAccessoryCallbackInterfaceApiNotifyCallbackRequest = {
// AssetUploadNotifyRO
assetUploadNotifyRO: {
type: 0,
resourceKeys: ["spc10/2019/12/10/159","spc10/2019/12/10/168"],
},
};
apiInstance.notifyCallback(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| assetUploadNotifyRO | AssetUploadNotifyRO |
ResponseDataListAssetUploadResult
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid widgetCallback(widgetUploadNotifyRO)
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .BasicModuleAccessoryCallbackInterfaceApi(configuration);
let body:.BasicModuleAccessoryCallbackInterfaceApiWidgetCallbackRequest = {
// WidgetUploadNotifyRO
widgetUploadNotifyRO: {
resourceKeys: ["widget/asset/adflkajadfj"],
},
};
apiInstance.widgetCallback(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| widgetUploadNotifyRO | WidgetUploadNotifyRO |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]