• Publicity: Public Only All

rest-procs.tcl

Support for some REST APIs

This file defines the following Objects and Classes: ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i], ::xo::REST[i]

Location:
packages/xooauth/tcl/rest-procs.tcl
Author:
Gustaf Neumann

Procedures in this file

Detailed information

Class ::xo::REST (public)

 ::nx::Class ::xo::REST[i]

The client_id/client_secret identifies the registered "app" for which later app-tokens are used to issue action via the REST interface.

Testcases:
No testcase defined.

xo::REST method pp (public)

 <instance of xo::REST[i]> pp [ -list ] [ -prefix prefix ] dict

Simple pretty-print function which is based on the conventions of the dict structures as returned from Microsoft Graph API. Multi-valued results are returned in a dict member named "value", which are printed indented and space separated.

Switches:
-list (optional)
-prefix (optional)
Parameters:
dict (required)

Testcases:
No testcase defined.
[ show source ]