Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Oct 20, 2015 Oct 20, 2015

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.

378
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation