Getting and manipulating data

Getting data is as simple as calling a function.

Simple GET

For well written APIs the calls will have much sense. For example, for getting all repos from django GitHub organization you just call:

from zipa import api_github_com as gh

Passing arguments

Function arguments are passed to the request.


This would do a GET /orgs/django/repos?page=2

Creating an object

Creating an object is as simple as calling a magic function.

gist = gh.gists.create(description='Test gist', files={'empty.txt': {'content': 'a'}})

Deleting an object