Changes

Jump to: navigation, search

Access Tokens

1,136 bytes added, 14:34, 21 July 2011
Obtaining an Access Token
==Description==Canvas allows for programmatic access to some pieces of information via the [http://instructure.github.com/canvas-lms/doc/api/ Canvas API]. API calls require authorization, and are made on behalf of an authorized user. The information returned will be different depending on the user you are representing, their roles and permissions. We are using OAuth2 for remote services to allow access to resources (note: we haven't yet completely the typical Oauth-user delegation flow, but have a pre-generation utility that can be used in the mean time), which means that all API calls will need to be over https, and will require an access token as a means of representing the user.
The Academic Technology Center developed as a resource You can see the most up-to provide faculty development, consultation, and collaborative partnerships -date [http://instructure.github.com/canvas-lms/doc/api/API documentation on github] (note: this link is to support the use of technology in teaching and research initiatives at MCLA.<br><br>In alignment with the College's commitment most up-to prepare students to become active-date API interface, contributing members which may or may not be accurate for locally installed instances of their communities and leaders in their chosen professionsCanvas. If you are not using Canvas Cloud, the Academic Technology Center strives talk to develop you site administrator about getting an understanding of the individual needs of faculty and their students. The ATC supports faculty as they explore and apply technology as a fundamental accurate set of tools in the academic environmentAPI documentation.<br><br>The ATC works to build active partnerships with faculty Admins, staff, students, and others interested in the integration of technology and academic work. Recognizing that academic applications are not separable from you can generate this documentation by running rake doc:api on the larger technological infrastructure, ATC is an inherent dimension of college-wide technology initiatives - seeking to highlight the beneficial relationships that can exist between technology and educationconsole).
==Request a Canvas Course==
Faculty can request access to Canvas by completing the online course request form located at:== Obtaining an Access Token ==
[https[Image://nextgenssoapproved_integrations.com/sp/startSSO.ping?PartnerIdpId=httppng|300px|thumb|right|Approved Integrations on the user profile page]][[Image://stsgenerate_an_access_token.mcla.edu/adfs/services/trust&TargetResource=httpspng|300px|thumb|right|Generating an access token]][[Image://dynamicforms.ngwebsolutionsaccess_token_details.com/Submit/Form/Start/459f88ba-30c3-4c69-829d-2ad70b9f172f Canvas Course Request - Spring 2021png|300px|thumb|right|Reviewing access token details]]
==Contacting Academic Technology==In a user's profile, there is a section titled, "Approved Integrations". This is a way for a user to create an access token that can be shared with a third party, giving the remote service permission to access Canvas resources on behalf of the user. The user can give a name to the external tool for easier identification, set an expiration, and even revoke access to the API by deleting the token.
*LocationOnce you have a Canvas login you can create one of these access tokens to use for testing your development projects. Copy down the token string. This token must be included as a URL query parameter in any API calls made to Canvas.<div style="clear: Murdock Second Floorright;"></div> == Making API Calls With an Access Token == All API calls must also be made over https. The access token must be included as a URL query parameter in any API calls made to Canvas. For example, the endpoint to grab the user's list of courses is  <pre>GET /api/v1/courses.json</pre> If Bob's access token were "token_of_magical_power" then you would call <pre>GET /api/v1/courses.json?access_token=token_of_magical_powers</pre> to retrieve Bob's list of courses.*Phone: (413)662-5397*Phone for Computer Help or Technical IssuesFor a detailed example of using the API, check out the [http: 413-662//instructure.github.com/canvas-5276lms/doc/api/basics.html API basics documentation on github].
Anonymous user

Navigation menu