...
 
Commits (3)
......@@ -18,11 +18,11 @@
# if OTP value is not supplied, msg91 automatically creates for you
message = "Your One Time Password (OTP) is"
receiver = "9876543210"
service_response = otp_client.send_otp(sender, receiver, message)
service_response = otp_client.send_otp(receiver, sender=sender, message=message)
# if you want to supply your own OTP
otp = 3342
service_response = otp_client.send_otp(sender, receiver, message, otp=otp)
service_response = otp_client.send_otp(receiver, otp=otp)
print (service_response.status, service_response.message)
......@@ -34,6 +34,12 @@
otp_resend = otp_client.resend_otp(receiver)
print (otp_resend.status, otp_resend.message)
# Asynchronous client follows the same method signatures
from msg91_otp.client import AsyncOTPClient
async_client = AsyncOTPClient(auth_key)
await async_client.send_otp(receiver)
#### Contributors
......
import setuptools
from setuptools import find_packages
def readme():
return open('README.md').read()
setuptools.setup(
name="msg91-otp",
version="0.1.0",
author="Prasanna Venkadesh",
author_email="prasanna@cooponscitech.in",
description="Minimal OTP only API coverage for msg91.com service",
long_description_content_type="text/markdown",
long_description=readme(),
python_requires='>=2.7',
install_requires=["httpx==0.7.4"],
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
url="",
url="https://gitlab.com/coopon/reusable-libs/python/msg91-otp",
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
]
)
......