Skip to content

snehalbaghel/badgrclient

Repository files navigation

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('[email protected]')
Assertion(amfsdlkmlsfmkfd)

About

A python library for Badgr APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published