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.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for bizfly_two_fa-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1d8beb6afcc5111701cf3ad78efc3bbf28786e71fe2e72d58391b74896b3efc |
|
MD5 | eac2698a9db2c1d250f80849b023af03 |
|
BLAKE2b-256 | 9844e2e38dae3878fecbfa20351e8942589fe55f95e640bf99c42d74ddc26dfa |