Get the browser-rendered version of the web pages at the specified URLs.
var Phantomjscloud = require('machinepack-phantomjscloud');
// Get the browser-rendered version of the web pages at the specified URLs.
Phantomjscloud.renderPages({
apiKey: '138501da08e0130810f0a0b00c01331851',
urls: [ 'http://sailsjs.org/#/documentation/reference/sails.config/sails.config.models.html' ],
}).exec({
// An unexpected error occurred.
error: function (err) {
},
rateLimitExceeded: function () {
},
// OK.
success: function (result) {
},
});
Valid PhantomJS Cloud API key.
'138501da08e0130810f0a0b00c01331851'
URLs to render.
[ 'http://sailsjs.org/#/documentation/reference/sails.config/sails.config.models.html' ]
An unexpected error occurred.
OK.
[ { url: 'http://sailsjs.org/#/documentation/reference/sails.config/sails.config.models.html',
html: '<!DOCTYPE html><html><head></head><body></body></html>' } ]