Skip to content

SMS-iT-ai/smsit_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SMS-iT API Wrapper

SMS-iT API Python wrapper 0.0.2

GitHub at: https://github.com/SMS-iT-ai/smsit_wrapper/blob/main/README.md

Table of Content


Installation


Available on pypi

pip install smsit_wrapper

Requirements


Used runtime: Python 3.8

requests

Available methods


 'addAppointment', 'addContact', 'checkCredits', 'generateOTP', 'getContact', 'getContactByName', 'getGroupsList', 'sendMessageToContacts', 'sendMessageToGroup', 'validateOTP'

from smsit_wrapper import smsit

h = smsit(token="MyToken", version="cloud") #version options : cloud or decentral

The official API Reference can be found here


Example


To generate OTP:

from smsit_wrapper import smsit

h = smsit(token="MyToken", version="cloud") #version options : cloud or decentral

print(h.generateOTP())

OUTPUT:
{'status': 'Success', 'msg': 'Otp Successfully Generated', 'otp': '94b87b'}

Contribute


Feel Free to contribute and expand the wrapper


To be updated


Have Fun!