cnvs_token: Return the local user's Canvas token and domain

Description Usage Details Value

View source: R/request.R

Description

You will need a Canvas access token, which you can get by following the instructions here: https://canvas.instructure.com/doc/api/file.oauth.html#manual-token-generation

Usage

1
2
3

Details

Canvas access tokens are specific to your user account on a specific canvas domain, e.g. you cannot use the token for your University's site on the instructure site (https://canvas.instructure.com).

Currently, it consults the CANVAS_API_TOKEN and CANVAS_DOMAIN environment variables. Read more about setting these in cnvs_whoami.

Value

A string, with the token, or a zero length string scalar, if no token or domain is available.


cwickham/cnvs documentation built on Oct. 20, 2020, 5:34 a.m.