Client in Python that allows to send SMS messages and managing account in SMSAPI.com service.
Python
Pull request Compare This branch is 4 commits ahead, 12 commits behind smsapi:master.
Latest commit 2973f9f Oct 14, 2015 invoid update version and development status
Permalink
Failed to load latest commit information.
smsapi update version and development status Oct 14, 2015
tests fixed URL in ApiProxyTestCase Sep 16, 2015
.gitignore pyc out Jul 12, 2013
LICENSE project init Jul 11, 2013
README.md Poprawka biblioteki pod kątem SMSAPI.com Sep 10, 2015
runtests.py
setup.py

README.md

python-client

Client in Python that allows to send SMS messages and managing account in SMSAPI.com service.

EXAMPLES:

    from smsapi.client import SmsAPI
    from smsapi.responses import ApiError


    api = SmsAPI()

    api.set_username('YOUR USERNAME')
    api.set_password('YOUR PASSWORD')

    #sending SMS
    try:
        api.service('sms').action('send')

        api.set_content('Hello [%1%] [%2%]')
        api.set_params('name', 'last name')
        api.set_to('60xxxxxxx')
        api.set_from('Info') #Requested sender name

        result = api.execute()

        for r in result:
            print r.id, r.points, r.status

    except ApiError, e:
        print '%s - %s' % (e.code, e.message)

Backup server using example:

    api = SmsAPI()
    api.set_hostname('https://api2.smsapi.com/') #Backup server

LICENSE

Apache 2.0 License

INFO ABOUT DEPRECATED MODULES

Module for phonebook endpoints is deprecated, please use https://github.com/smsapicom/smsapicom-contacts-python-client