Fetch story from VersionOne in Chrome's Developer Console with jQuery.ajax
by JoshGough
JavaScript
// Will work from Chrome's Developer console, after you login in the instance already
// F12 / Console / paste this in and hit enter. Change URL as needed.
(function () {
var url = "https://www7.v1host.com/v1production/rest-1.v1/Data/Story/1432?Accept=application/json";
var settings = {
url: url,
dataType: "json"
};
console.log(settings);
$.ajax(settings).done(function (data) {
beautifulJson = JSON.stringify(data, null, 4);
console.log(beautifulJson);
}).fail(function (jqXHR) {
console.log(jqXHR.responseText);
});
})();