在此页面https://secure.na1.echosign.com/public/docs/restapi/v5#WidgetFileInfo我正在尝试创建小部件(POST /widgets)。这是WidgetCreationRequest
来自服务器的示例和响应。
{"widgetCreationInfo":{"name":"SomeRandom","signatureFlow":"SENDER_SIGNATURE_NOT_REQUIRED","fileInfos":[{"documentURL":{"name":"83011.pdf","url":"http:\/\/www.state.gov\/documents\/organization\/83011.pdf","mimeType":"application\/pdf"}}]}}
服务器正在思考(1-2 分钟)并给出“BAD_REQUEST”响应。
{"widgetCreationInfo":{"formFieldLayerTemplates":[{"documentURL":{"name":"83011.pdf","url":"http:\/\/www.state.gov\/documents\/organization\/83011.pdf","mimeType":"application\/pdf"}}],"name":"SomeRandom","signatureFlow":"SENDER_SIGNATURE_NOT_REQUIRED","fileInfos":[{"documentURL":{"name":"83011.pdf","url":"http:\/\/www.state.gov\/documents\/organization\/83011.pdf","mimeType":"application\/pdf"}}]}}
我不知道为什么我决定使用 formFieldLayerTemplates,但这次服务器说You cannot work on behalf of this user
.
文件是从谷歌随机获取的。请帮我创建一个小部件,我绝望了!