Metadata-Version: 2.1
Name: bizfly-two-fa
Version: 1.0.5
Summary: Python SDK for Bizfly2FA
Home-page: https://github.com/shinrel22/python_bizfly_two_fa
Author: Tri Nguyen
Author-email: tringuyen5835@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7
Description-Content-Type: text/markdown
Requires-Dist: requests

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


