Methods
-
request(url, options) -
execute an XMLHttpRequest in the context of the host application
Parameters:
Name Type Description 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: '/rest/api/2/dashboard', success: function(responseText){ alert(responseText); } }); });