Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jeremycallan88
New Member

Canvas Rest API

I am working with developers to develop a custom report we can pull from Canvas that shows us the final grader or all graders required to grade submitted work. We are using a CRON job to go through the data.

Below are a couple of questions from my development team.

  • We want to fetch the submissions that are submitted but not graded yet. What represents the correct workflow_state for this? pending_review or submitted? What is the difference between the two?
     
  • How do we fetch the final grader(or all graders) for submission by a student? Do we first need to fetch the student group for it? Does user API return group_id as well? What is the difference between group and assessment group?

Any feedback would be appreciated.

Cheers

Jeremy Callan

 

0 Kudos
1 Reply
Clarencehype148
New Member

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?

0 Kudos