ms::Graph method request (protected)

 <instance of ms::Graph[i]> request -method method  \
    [ -content_type content_type ] [ -token token ] [ -vars vars ] \
    -url url 

Defined in packages/xooauth/tcl/ms-procs.tcl

Switches:
-method (required)
-content_type (optional, defaults to "application/json; charset=utf-8")
-token (optional)
-vars (optional)
-url (required)

Testcases:
No testcase defined.
Source code:
if {[string match http* $url]} {
    #
    # If we have a full URL, just pass everything up
    #
    next
} else {
    #
    # We have a relative URL (has to start with a
    # slash). Prepend "https://graph.microsoft.com" as
    # prefix.
    #
    set tokenArg [expr {[info exists token] ? [list -token $token] : {}}]
    next [list  -method $method  -content_type $content_type  {*}$tokenArg  -vars $vars  -url https://graph.microsoft.com/${:version}$url]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: