A python library for Badgr APIs
Project description
BadgrClient
A python library for Badgr APIs
Usage
Instantiate a client
from badgrclient import BadgrClient
client = BadgrClient('username', 'password', 'client_id', 'rw:profile rw:issuer rw:backpack')
Fetch your entities with the client or by providing an entityId
>>> my_issuers = client.get_issuer()
[Issuer(7fde21f03a30dfg), Issuer(de21ce2d52df0)]
>>> baby_badger = client.get_badgeclass('entity_id')[0]
BadgeClass(nm190nsk093msdf)
Use member functions to perform actions on the entity
>>> baby_badger.issue('jane@gmail.com')
Assertion(amfsdlkmlsfmkfd)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
badgrclient-0.1.1.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for badgrclient-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee79a4ad965fc53a2f1024c6290fd77d01c8119904394a004b00a15a97ece24f |
|
MD5 | 5afec38c0d39afea2e7f7ee541438e9a |
|
BLAKE2b-256 | 085fd5896a52359bc0252a7e02a02affd090891b5baf2d02d4f692f8fefade90 |