[英]JSON - RingCentral API - Trying to Fax Multiple Documents
我正在嘗試自動化我們的傳真過程,並讓它工作。 但是,我似乎無法弄清楚如何包含多個附件。 這是我的請求 URL 和正文:
網址: https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/fax
://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/fax
身體:
{
"control_type": "text",
"label": "To",
"name": "to",
"type": "string",
"optional": false
},
{
"control_type": "text",
"label": "Cover index",
"name": "coverIndex",
"type": "string",
"optional": false
},
{
"control_type": "text",
"label": "Cover page text",
"name": "coverPageText",
"type": "string",
"optional": false
},
{
"name": "attachments",
"type": "array",
"optional": false,
"binary_content": "false",
"properties": []
}
]
有任何想法嗎? 謝謝!
您可以發送帶有多個附件的傳真,只需根據需要多次調用以下函數
JavaScript 示例代碼:
form = new FormData();
form.append('fax-document-1', require('fs').createReadStream('test-1.jpg'));
form.append('fax-document-2', require('fs').createReadStream('test-2.jpg'));
參考:
npm i @ringcentral/sdk
安裝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.