REST.get: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 8: Line 8:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
REST.get(uri, payload, mediaType, getFullResponse)
REST.get(url, getFullResponse)
REST.get(uri, payload, mediaType, headers, getFullResponse)
</source>
</source>


'''Parameters'''
'''Parameters'''
{{param|uri|}}
{{param|url|}}
{{param|payload|}}
{{param|mediaType|}}
{{param|headers|}}
{{param|getFullResponse|Boolean (0:1) to get full response.}}
{{param|getFullResponse|Boolean (0:1) to get full response.}}
'''Returns'''
'''Returns'''

Revision as of 03:37, 16 March 2019

REST.get() Function

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

Introduced in version 1.5
Get...

Usage

REST.get(url, getFullResponse)

Parameters

  • url -
  • 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.