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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file badgrclient-0.1.1.tar.gz.

File metadata

  • Download URL: badgrclient-0.1.1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for badgrclient-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bcee77f521e627a9be91f798d69572ef80080e5987a7d51c9f64be8ee289b487
MD5 15dc6aa75ec7bb4eecf5f05d24ea7e06
BLAKE2b-256 d0d57e162f3ace483d38c0be017e4664befbd3276473a3e09275d35dbe541515

See more details on using hashes here.

File details

Details for the file badgrclient-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: badgrclient-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for badgrclient-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee79a4ad965fc53a2f1024c6290fd77d01c8119904394a004b00a15a97ece24f
MD5 5afec38c0d39afea2e7f7ee541438e9a
BLAKE2b-256 085fd5896a52359bc0252a7e02a02affd090891b5baf2d02d4f692f8fefade90

See more details on using hashes here.

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