canvas::API method token (public)

 <instance of canvas::API[i]> token [ -grant_type grant_type ] \
    [ -scope scope ] [ -assertion assertion ] \
    [ -client_assertion_type client_assertion_type ] \
    [ -requested_token_use requested_token_use ]

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

Get bearer token (access token) from the /oauth2/v2.0/token endpoint. https://canvas.instructure.com/doc/api/file.oauth_endpoints.html#post-login-oauth2-token

Switches:
-grant_type (optional, defaults to "client_credentials")
-scope (optional)
-assertion (optional)
-client_assertion_type (optional, defaults to "urn:ietf:params:oauth:client-assertion-type:jwt-bearer")
-requested_token_use (optional)

Testcases:
No testcase defined.
[ show source ]
Show another procedure: