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.5.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file bizfly_two_fa-1.0.5.tar.gz
.
File metadata
- Download URL: bizfly_two_fa-1.0.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 472fba03fee362ffff1f4f0fa5773b3336a525a9979ed17e3630cd289b2d746c |
|
MD5 | 2db8c2d77df91ac147da80c06716d7b4 |
|
BLAKE2b-256 | 7be321ed9a73e689ef589fe5abe98824b4ee44a0a01d24c5ab7f1e5ba6c8ed79 |
File details
Details for the file bizfly_two_fa-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: bizfly_two_fa-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc6d28243d362324550696c6168743eba86fb96d34266e99ed92da71d984ab75 |
|
MD5 | 97b1b0e47ab47b3729be817e28dd976c |
|
BLAKE2b-256 | 7de80c09b4a6e9c55ec2baa25e092a810171fb35cbb11072019f50820d60ce42 |