On this page https://secure.na1.echosign.com/public/docs/restapi/v5#WidgetFileInfo i'm trying to create widget (POST /widgets).
Here is WidgetCreationRequest
exmaples and responses from server.
{"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"}}]}}
Server is thinking (1-2 minutes) and gives "BAD_REQUEST" response.
{"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"}}]}}
I don't know why i decided to use formFieldLayerTemplates, but this time server says You cannot work on behalf of this user
.
Document was randomly taken from google. Please help me to create a widget, I despaired!