Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Get started by importing the `clever` module and setting your authentication met

The `clever` module exposes classes corresponding to resources:

* Contact
* District
* DistrictAdmin
* School
Expand Down
8 changes: 6 additions & 2 deletions clever/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def iter(cls, auth=None, **params):

requestor = APIRequestor(auth)
url = cls.class_url()
params['limit'] = cls.ITER_LIMIT
params['limit'] = cls.ITER_LIMIT

while url:
response, auth = requestor.request('get', url, params)
Expand All @@ -728,7 +728,7 @@ def iter(cls, auth=None, **params):
break
for datum in convert_to_clever_object(cls, response, auth):
yield datum

url = get_link(response, 'prev' if 'ending_before' in params else 'next')
# params already included in url from get_link
params = {}
Expand Down Expand Up @@ -772,6 +772,10 @@ def delete(self, **params):
# API objects


class Contact(ListableAPIResource):
pass


class District(ListableAPIResource):
pass

Expand Down