0

在此页面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.

文件是从谷歌随机获取的。请帮我创建一个小部件,我绝望了!

4

1 回答 1

3

你的第一个要求是绝对正确的。似乎有一些特定于 URL 的问题。我刚刚使用以下公共 URL 进行了尝试:https ://www.researchgate.net/profile/Donald_Specht/publication/220360902_Probabilistic_Neural_Networks._Neural_Networks_3109-118/links/0c96051b63d9acfb5e000000.pdf ,它运行良好。你能在最后尝试一下吗?

于 2016-04-07T11:33:53.907 回答