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.4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for bizfly_two_fa-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e9dd85e91fb79dea253b881e36dcafe4bfffe229edd598d6c622099ecc04ac |
|
MD5 | 45a5577ff6338429d89527087571195e |
|
BLAKE2b-256 | d174de3fc870f1863d73f6a13d38092da37e35cca6a4fe2243189f3695cc6dfd |