Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support start and limit parameters in client.data.get #26

Open
endeepak opened this issue Jan 12, 2015 · 1 comment
Open

Support start and limit parameters in client.data.get #26

endeepak opened this issue Jan 12, 2015 · 1 comment

Comments

@endeepak
Copy link

Support start and limit parameters in client.data.get to use paginated results as mentioned in https://ona.io/api/v1/data

@endeepak
Copy link
Author

The current signature doesn't allow this, as it assumes *args as tags and **kwargs as query. The get api signature can be changed as below to support this feature

def get(form_pk, datum_id=None, tags=None, query=None, start=None, limit=None)
      ...

# API Calls can be
get(form_pk, datum_id) or
get(form_pk, tags=[tag1, tag2], query={"foo": "bar"}, start=20, limit=10)

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

No branches or pull requests

1 participant