Skip to content

telminov/sw-python-sms-devino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw-python-sms-devino

Build Status Coverage Status pypi-version

Integration with API of devinotele.com

Install

pip install sw-python-sms-devino

Usage

from sms_devino.client import DevinoClient

client = DevinoClient('tester', '123')
client.get_balance()

result = client.send_one(
    'MyCompany', '89161234567',
    'test message'
)
print(result.sms_ids)

results = client.send_bulk(
    'MyCompany', ['89161234567', '89167654321'],
    test message'
)
print('Total messages:', len(results))
for result in results:
    print(result.sms_ids)

state = client.get_state('123123123213')
print('code\t\t', state.code)
print('description\t', state.description)
print('price\t\t', state.price)
print('creation_dt\t', state.creation_dt)
print('submitted_dt\t', state.submitted_dt)
print('reported_dt\t', state.reported_dt)
print('result_dt\t', state.result_dt)

About

Integration with API of devinotele.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages