Class ::xo::REST

::xo::REST[i] create ... \
           [ -client_id client_id ] \
           [ -client_secret client_secret ]

The client_id/client_secret identifies the registered "app" for which later app-tokens are used to issue action via the REST interface.
Defined in packages/xooauth/tcl/rest-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]
  • subclass: ::xo::Authorize[i], ::ms::Graph[i]
::nx::Class create ::xo::REST \
     -superclass ::nx::Object

Methods (to be applied on instances)

  • pp (scripted, 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

    Partial Call Graph (max 5 caller/called nodes):
    %3

    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