- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::REST
::xo::REST create ... \The client_id/client_secret identifies the registered "app" for which later app-tokens are used to issue action via the REST interface.
[ -client_id client_id ] \
[ -client_secret client_secret ]
Defined in packages/xooauth/tcl/rest-procs.tcl
Class Relations
::nx::Class create ::xo::REST \ -superclass ::nx::ObjectMethods (to be applied on instances)
pp (scripted, public)
<instance of xo::REST> pp [ -list ] [ -prefix prefix ] dictSimple 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.
set r "" if {$list} { foreach e $dict { append r [:pp -list=0 -prefix $prefix $e] \n } return $r } foreach {k v} $dict { if {$k eq "value"} { append r $prefix $k ": " \n foreach e $v { append r [:pp -prefix " $prefix" $e] \n } } else { append r $prefix $k ": " $v \n } } return $r
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables