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.gen_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.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for bizfly_two_fa-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18cbda15a9530aafd526e825585be3dbb09622c9ca83654befb6802cddc11893 |
|
MD5 | 3843be814396b4e0f795413b107a0a78 |
|
BLAKE2b-256 | 344e3daba40649c103f3e6949b7cced866f21e9a3795c0ff5d4e721d9bb418a0 |