Skip to main content

Python SDK for Bizfly2FA

Project description

BizflyTwoFa

:Info: A python sdk for BizflyTwoFa.

:Repository: https://github.com/shinrel22/python_bizfly_two_fa

:Author: Tri Nguyen (https://github.com/shinrel22)

:Maintainer: Tri Nguyen (https://github.com/shinrel22)

Installation

pip install bizfly_two_fa

Examples

.. code :: python

from bizfly_two_fa import BizflyTwoFa

>>> bizfly_2fa = BizflyTwoFa(
    secret_key='app_secret_key'
)

# generate 2fa session
>>> session_uid = bizfly_2fa.generate_session(
    email='user_email',
    phone='user_phone'
)

# send otp
>>> bizfly_2fa.send_otp(
    session_uid=session_uid,
    delivery_type='sms',
)

# verify otp
>>> result = bizfly_2fa.verify_otp(
    otp_value='user otp input',
    session_uid=session_uid
)
>>> result

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

bizfly_two_fa-1.0.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

bizfly_two_fa-1.0.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file bizfly_two_fa-1.0.4.tar.gz.

File metadata

  • Download URL: bizfly_two_fa-1.0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for bizfly_two_fa-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a64a440efb1ff1ebdbf521e900c5018da72fe4d8799c1d87065c31bb8e34c002
MD5 c3a3f913a6321ab2cb496a647c74780c
BLAKE2b-256 ef969170b5b37e1d9163b29cb94284221216bd0f8dbd90683806f8e7d95365f6

See more details on using hashes here.

File details

Details for the file bizfly_two_fa-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: bizfly_two_fa-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for bizfly_two_fa-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 17e9dd85e91fb79dea253b881e36dcafe4bfffe229edd598d6c622099ecc04ac
MD5 45a5577ff6338429d89527087571195e
BLAKE2b-256 d174de3fc870f1863d73f6a13d38092da37e35cca6a4fe2243189f3695cc6dfd

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