Skip to main content

Python library for manage SmsApi account via HTTP/S

Project description

python-client
=============

Klient napisany w języku Python, pozwalający na wysyłanie wiadomości SMS, MMS, VMS oraz zarządzanie kontem w serwisie SMSAPI.pl

EXAMPLES:
```python
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') #Pole nadawcy lub typ wiadomość 'ECO', '2Way'

result = api.execute()

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

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

## LICENSE
[Apache 2.0 License](https://github.com/smsapi/smsapi-python-client/blob/master/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

smsapi-pozytywnie-1.0-beta.tar.gz (9.9 kB view details)

Uploaded Source

File details

Details for the file smsapi-pozytywnie-1.0-beta.tar.gz.

File metadata

File hashes

Hashes for smsapi-pozytywnie-1.0-beta.tar.gz
Algorithm Hash digest
SHA256 b3d530d7980fc26dcd28229cae18270d523520426de8bec48d04040293772e1d
MD5 74a5a98e5453f54b7e0aa6d6c75f9125
BLAKE2b-256 38aa7e0e4e773ec637572d4b46a99bbd78e359961ec29b1bc38a7429eb59b4f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page