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.

Files for bizfly-two-fa, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size bizfly_two_fa-1.0.5-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bizfly_two_fa-1.0.5.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page