docusignapi

DocuSign REST API INVALID_CONTENT_TYPE sending envelope from template with application/json

两盒软妹~` 提交于 2020-12-13 03:49:05
问题 I am using Google Apps Script to make a URL request to https://demo.docusign.net/restapi/v2.1/accounts/ACCOUNT-ID/envelopes (where ACCOUNT-ID is my proper numerical account ID.) It's being sent with the code UrlFetchApp.fetch(url, params) . params is { muteHttpExceptions: true, method: "POST", headers: { Authorization: "Bearer "+jwt, ContentType: "application/json" }, payload: payload } jwt is a token retrieved from the JWT auth flow at execution time, and payload is { "accountId": accountID,