Skip to main content

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


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)

Uploaded Source

Built Distribution

badgrclient-0.1.1-py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page