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.5.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

bizfly_two_fa-1.0.5-py3-none-any.whl (5.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page