Most of my classes are on here and I want to play around with the API but I have no idea how. Here is what they say: https://canvas.instructure.com/courses/785215/pages/getting-started-with-the-api
They talk about an access token, which I have, but not how to use it? I tried sending an ajax request: Dinar Recaps Blog
$.ajax({
type: "GET",
dataType: 'text/plain',
url: 'https://[university].instructure.com/api/v1/courses',
access_token: '',
}).done(function(data){
console.log(data);
});But it just gives the error:
No 'Access-Control-Allow-Origin' header is present on the requested resource
I feel like at this point I have so little knowledge about APIs that I don't really want to use this API more than I just want to know how to use an API without a wrapper already built for me. Any help?
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.