Ghasedak sms webservice api wrapper for python.
Project description
Ghasedak-python
Ghasedak sms webservice python package.
installation
You can simply install ghasedak python package with pip
:
pip install ghasedakpack
usage
import ghasedakpack
#create an instance:
sms = ghasedakpack.Ghasedak("Your APIKEY")
#send a single message to a single number:
sms.send({'message':'hello, world!', 'receptor' : '09xxxxxxxxx', 'linenumber': 'xxxx', 'senddate': '', 'checkid': ''})
#send a single message to multiple numbers:
sms.bulk1({'message':'hello, world!', 'receptor' : '09xxxxxxxxx,09xxxxxxxxx,09xxxxxxxxx', 'linenumber': 'xxxx', 'senddate': '', 'checkid': ''})
#send multiple massages to multiple numbers:
sms.bulk2({'message':'hello, world!,another massage', 'receptor' : '09xxxxxxxxx,09xxxxxxxxx,09xxxxxxxxx', 'linenumber': 'xxxx', 'senddate': '', 'checkid': ''})
#get the status of massages:
print(sms.status({'id': 'messageId', 'type': '1'}))
#send verification massages:
sms.verification({'receptor': '09xxxxxxxxx','type': '1','template': 'Your Template','ip': 'Your Ip','param1': '','param2': '','param3': ''})
license
Released under the MIT License.
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
ghasedakpack-0.1.7.tar.gz
(2.4 kB
view hashes)