Retrieve JSON response when creating video on Brightcove -


I followed this example. The answer is shown in an iframe. However, I want to be able to get the JSON response to store data in my database (i.e. BrightcoVideo ID). I tried to use the AJAX post but BrightCove does not accept the request for a post from a different origin. Is there a way to get feedback data without appearing in afform or in a separate window?

You can not retrieve response data in javascript because the API response is not included in the API response. You need to do this in server-side code, which also has the advantage of not exposing your API token in the browser.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -