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

Implement browsing functionality #4

Open
millar opened this issue Jul 21, 2014 · 0 comments
Open

Implement browsing functionality #4

millar opened this issue Jul 21, 2014 · 0 comments
Milestone

Comments

@millar
Copy link
Owner

millar commented Jul 21, 2014

At the moment documents can only be managed in a singular fashion.

Would be nice to have search/filtration/ordering of documents to find their IDs if unknown.

Potential API:

api = Api()

documents = api.documents.where(name='name').order_by('-created_at')
# => return a document manager where each document is a api.document.set(id)
#    from the results of the API call
# Could also pre-install metadata from the initial query to reduce future calls

for document in documents:
    print document.id
@millar millar added this to the 0.2 milestone Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant