Skip to main content
linn_kk
Participant
October 20, 2015
Question

Unable to embed 'javascript' response from REST api /widgets/{widgetId}/personalize.

  • October 20, 2015
  • 0 replies
  • 384 views

I made a post request to REST api /widgets and received the response

{ "javascript": "<script type='text/javascript' language='JavaScript' src='https://secure.echosign.com/public/embeddedWidget?wid={{here is wid}}'></script>",

"url": "https://secure.echosign.com/public/esignWidget?wid={{here is wid}}",

"widgetId": "{{here is widgetId}}”

}

I am able to embed the above javascript code and the widget is shown properly.

Using the above widgetId from the above response, i made the put request to REST api /widgets/{widgetId}/personalize and received the response

{ "javascript": "<script type='text/javascript' language='JavaScript' src='https://secure.echosign.com/public/esignWidget?wid={{here is wid}}&token={{here is token}}'></script>",

"url": "https://secure.echosign.com/public/esignWidget?wid={{here is wid}}&token={{here is token}}",

"widgetId": "{{here is widgetId}}”

}


When i embed the javascript from the second response, the widget is not shown at all.

Please suggest.

Thanks.

This topic has been closed for replies.