Skip to main content

Python client for manage SmsApi account.

Project description

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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()

# autoryzacyja standardowa
api.set_username('your-username')
api.set_password('your-api-password')

# lub za pomocą tokenu
api.auth_token = 'your-api-token'

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)
```

więcej przykładów znajduje się w katalogu 'examples'


Przykład zmiany adresu serwera na zapasowy:

```python
api = SmsAPI()
api.set_hostname('https://api2.smsapi.pl/') #Zapasowy serwer
```

## LICENSE
[Apache 2.0 License](https://github.com/smsapi/smsapi-python-client/blob/master/LICENSE)


## INFO ABOUT DEPRECATED MODULES
Module for phonebook endpoints is deprecated, please use https://github.com/smsapi/smsapi-contacts-python-client
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: Apache 2.0
Classifier: Topic :: Communications :: Mobile messagesTopic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python ModulesProgramming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smsapi_client-1.1.0-py2.py3-none-any.whl (17.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file smsapi_client-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for smsapi_client-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c387fe8d91beece9a47583b220c167dd9ff3e78bfe508dcf40e8a5a82f76b6b7
MD5 588c474c7bd8748d66b755ef795e8723
BLAKE2b-256 ea39f007f368b6b9afd47cd7905ca81a230ab1896e0e9724dfedf5a6d1077411

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