我的cURL有點生疏,但我試圖做一個簡單的測試並重新創建'基本場景' - '從文檔創建一個信封'從V2 REST api文檔中,用簡單的一個頁面.docx文件。DocuSign,cURL,json - 來自bash - 錯誤:ENVELOPE_IS_INCOMPLETE
這裏是我的curl命令:
curl -X POST https://demo.docusign.net/restapi/v2/accounts/xxx/envelopes \
-H "X-DocuSign-Authentication: \
<DocuSignCredentials><Username>me/Username><Password>pp</Password><IntegratorKey>...</IntegratorKey></DocuSignCredentials>" \
-H "Accept: application/json" \
-H "Content-Type: multipart/form-data; boundary=AAA" \
-d '--AAA \
Content-Type: application/json \
Content-Disposition: form-data \
\
{ \
"status":"sent", \
"emailBlurb":"Test Email Body", \
"emailSubject": "Test Email Subject EnvelopeDefFull", \
"documents": [{ \
"name": "test1.docx", \
"documentId":"1", \
"order":"1" \
}], \
"recipients": { \
"signers" : [{ \
"email": "[email protected]", \
"name": "my name", \
"recipientId":"1" \
}] \
} \
--AAA \
Content-Type: application/docx \
Content-Disposition: file; filename="test1.docx"; documentid=1 \
\
@test1.docx \
\
--AAA--'
和我得到的錯誤是:
{
"errorCode": "ENVELOPE_IS_INCOMPLETE",
"message": "The Envelope is not Complete. A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line. Envelope definition missing."
}
這是犯罪嫌疑人是不是真正的問題。
我想我有捲曲問題
可能出現的問題:-d單引號 內 (1)反斜槓(2)通過事先@
感謝DOCX型和包容!