How to save a JavaScript Screenshot?

It is possible to save a JavaScript screenshot, but you will need to use one of our server side API's such as the PHP GetResult method to implement a small web service to save the image on the server side. An example PHP web service to save the screenshot, is shown below.

To integrate the PHP web service with the JavaScript API you will need to use the OnFinish Event. This can then be used to make an AJAX call to the server side web service, which will contain the ID of the completed screenshot. The web service can then use this information to save the image on the web server. Note that the below example uses jQuery.

Export a capture to a storage solution

Captures can be exported straight to Amazon S3, DropBox, FTP and WebDav once it has been generated by setting the export parameter. To do this you need to create an export URL and pass it to the JavaScript API.

Where export URL's specify a username and password it is recommended that you create a user just for this task, so it will be easy to revoke access if required. Also as this is in JavaScript it can’t be hidden, however there are ways of obfuscating your JavaScript code.