在此页面上https://secure.na1.echosign.com/public/docs/restapi/v5#WidgetFileInfo我正在尝试创建小部件(POST/widgets)。以下是来自服务器的WidgetCreationRequest
exmaples和响应。
{"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
。
文件是从谷歌上随机抽取的。请帮我创建一个小部件,我绝望了!
您的第一个请求是绝对正确的。似乎有一些特定于URL的问题。我只是使用以下公共URL进行了尝试:https://www.researchgate.net/profile/Donald_Specht/publication/220360902_Probabilistic_Neural_Networks._Neural_Networks_3109-118/links/0c96051b63d9acfb5e000000.pdf而且效果很好。你能试一下吗?