Documentation

request

Methods

request(url, options)

Execute an XMLHttpRequest in the context of the host application. The format of the response (dataType) will always be set to "text" - even if specified.

Parameters:
NameTypeDescription
urlString

either the URI to request or an options object (as below) containing at least a 'url' property;
this value should be relative to the context path of the host application.

optionsRequestProperties

an RequestProperties object.

Example
// Display an alert box with a list of JIRA dashboards using the JIRA REST API. AP.require('request', function(request){ request({ url: '../assets/js/rest-example.json', success: function(responseText){ alert(responseText); } }); });