REST.get

From RPTools Wiki
Revision as of 03:52, 16 March 2019 by Phergus (talk | contribs)
Jump to navigation Jump to search

REST.get() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.5
Perform an HTTP get request to the specified URL to retrieve a resource or information.

Usage

REST.get(url, getFullResponse)

Parameters

  • url -
  • getFullResponse - Boolean (0:1) to get full response.

Returns HTTP response as JSON (if full response) or server response, usually JSON but can be XML, HTML, or other formats.

Example

TEXT HERE
TEXT HERE

Returns:

TEXT HERE

See Also

Version Changes

  • 1.5 - Added to main MapTool build.