vossenv / oneroster-python

MIT License
6 stars 1 forks source link

Fetching Classlink Users #3

Open tyagow opened 5 years ago

tyagow commented 5 years ago

I'm using a sandbox OneRoster account provider by Classlink to play with it.

I instantiate the API with: classlink = oneroster.get_connector({"platform": 'classlink', "client_id":'xxxxxxxxxxx', "client_secret": 'xxxxxxxxxxx', "host": "https://sandbox-vn-v2.oneroster.com/ims/oneroster/v1p1/"})

When I try to get users information with: classlink.get_users(user_filter="students")

I get the follow error: File "/home/tiago/.pyenv/versions/3.7.2/lib/python3.7/site-packages/oneroster/classlink.py", line 127, in make_call if key == 'last' or int(response.headers._store['x-count'][1]) < int(self.page_size): Is there anything I'm missing?

I also tried to get only the sections or the schools of that OneRoster without any success, if you guys provide some information here I can create a PR to update the code with comments or examples in the README.md file

Thank you guys for creating this Helper API

vossen-adobe commented 5 years ago

Sorry for missing this - I'm just getting back to it after some more pressing business. What was the actual error context? Could you provide the full output?

I would greatly appreciate some help with that! Ill try to get some more documentation up to help.