Pixels camp REST API wrapper in python.
You can find the official API documentation here.
Get it from pypi or this repo.
Import it:
from pixelscamp_api import PixelsAPI
And initialize with:
PixelsAPI(api_key="XXXXXXXXXXXXXXXX")
or
PixelsAPI(session="XXXXXXXX")
or even: PixelsAPI()
to use without authentication.
api.me()
api.users()
or with some parameters: api.users(self, count=5, offset=0)
api.user('username')
api.badges_list()
api.badges_owners(92)
api.badges_redeem('XXXXXXX', 'username')
or with: api.badges_redeem('XXXXXXX')
, it will automatically retrive your username with me()
.