Python Wrapper
Send SMS in Python using our Python package.
Install through pip using:
pip install Clockwork
Here’s an example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from clockwork import clockwork
api = clockwork.API('API_KEY_GOES_HERE')
message = clockwork.SMS(
to = '447000000000',
message = 'Hello World')
response = api.send(message)
if response.success:
print (response.id)
else:
print (response.error_code)
print (response.error_message)
Full documentation can be found in the readme file. If you have any questions get in touch.