This repository was archived by the owner on Sep 19, 2019. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork0
🐍 Pathwar API client in Python
License
NotificationsYou must be signed in to change notification settings
pathwar/python-pathwar
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Deprecated! Go to the Pathwar monorepo:https://github.com/pathwar/pathwar
Pathwar API client in Python
frompathwarimportPathwar## Connectionclient=Pathwar(user="username",password="password")# Connect with user+pass coupleclient=Pathwar(token="token")# Connect using generated token## Switch organizationclient.set_organization('roxxorz')# Switch to organization with name = `roxxorz`client.set_organization('abcdef-ghij-klmn-opqr-stuvwx')# Switch to organization by `organization_id`client.set_organization(session='super-final')# switch to the organization where session is `super-final`## Some actionsclient.levels.get(name='pnu').buy()client.coupons.validate('cool-coupon')## A level workflowforlevelinclient.levels.all():ifnotlevel.validated:print('You still need to validate the level {}'.format(level.name))# Try to use 'toto' as passphraselevel.validate('toto')elifnotlevel.bought:# Try to buy the levellevel.buy()
About
🐍 Pathwar API client in Python
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.