Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Class information from API #98

Open
jesseditson opened this issue Oct 6, 2015 · 5 comments
Open

Class information from API #98

jesseditson opened this issue Oct 6, 2015 · 5 comments

Comments

@jesseditson
Copy link

Hello there!

I was looking to group exercises/students by class, but can't seem to find that information in the API. My account has multiple classes, but I can't find any distinction or class IDs when requesting classes and students.

Is this information available via the API? If not, how would you suggest getting information for only a single class?

@veryeli
Copy link

veryeli commented Oct 6, 2015

Hello! It is definitely the case that if you go to https://www.khanacademy.org/coach/reports/progress-by-student, you can press the Download link to get the information you're looking for (what class each student is in). I'm looking into whether there's a straightforward way to get it from the API now.

@jesseditson
Copy link
Author

Thanks for looking in to this! Looks like I typod above, I meant when requesting exercises and students.

What I'm attempting to do is to get a list of my students and their exercises, that I can then filter by class.

Right now, I have the following:

  • all of my students (but no way to see which class(es) they are in)
  • all of the exercises in all of my classes (but no way to see which class(es) they belong to)

What I'd like to be able to do, is see a list of students & their respective exercises that I can filter by class - in an ideal world, I'd be able to call something like:

/api/v1/user/classes - a list of my classes, with a list of exercise ids that are in that class
/api/v1/user/students - same as the existing endpoint, but each student has a list of class ids they are in (just the ones I teach obviously)

Alternatively, /api/v1/user/classes could also contain a list of user ids that are my students in this class. In either case, I'm just looking for a Student <> Class association and a Exercise <> Class association.

@jesseditson
Copy link
Author

Hey! Just wanted to check back in to see if this type of query is possible or planned - if not I can build it out on my side, but given that the associations already exist in the khan dbs, if this was available it'd save me a bunch of work!

@jfeldstein
Copy link

@jesseditson -- How did you get "all your students"? I've been chasing this via StackOverflow!

@jesseditson
Copy link
Author

Hey @jfeldstein! I just wrote up a fairly comprehensive answer on your SO question, given that it'll have more longevity than this issue for future readers. You can check it out here, LMK if there's anything else I might be able to clarify.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants