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.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for bizfly_two_fa-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982b9e8c3458c7a4532dbde0cbfd64a456299d401ba89e81a5b816314025dae3 |
|
MD5 | a6927db6434d50780485ac59c040254a |
|
BLAKE2b-256 | 8a0e361109fa43df4d429aff99aa488d2b6bc269bbf75943986ad882df7b015b |