REST.get

From RPTools Wiki
Revision as of 03:29, 16 March 2019 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=REST.get |trusted=true |version=1.5 |description= Get... |usage= <source lang="mtmacro" line> REST.get(uri, payload, mediaType, getFullResponse) REST.ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
Get...

Usage

REST.get(uri, payload, mediaType, getFullResponse)
REST.get(uri, payload, mediaType, headers, getFullResponse)

Parameters

  • uri -
  • payload -
  • mediaType -
  • headers -
  • getFullResponse - Boolean (0:1) to get full response.

Returns Response as a JSON object.

Example

TEXT HERE

Returns:

TEXT HERE

See Also

Version Changes

  • 1.5 - Added to main MapTool build.