Skip to main content

SmsAPI client

Project description


Build Status PyPI

Client for SMSAPI.


Compatible with Python 2.7+, 3.+.




If You have pip installed:

sudo pip install smsapi-client

else You can install manually:

git clone

cd smsapi-python

python install

Client instance

If You are customer You should import

from smsapi.client import SmsApiPlClient

else You need to use client for

from smsapi.client import SmsApiComClient


Access Token

from smsapi.client import SmsApiPlClient

token = "XXXX"

client = SmsApiPlClient(access_token=token)


Send SMS

from smsapi.client import SmsApiPlClient

token = "XXXX"

client = SmsApiPlClient(access_token=token)

send_results = client.sms.send(to="phone number", message="text message")

for result in send_results:
    print(, result.points, result.error)
  • You can find more examples in "examples" directory in project files.

Error handling

from smsapi.client import SmsApiPlClient
from smsapi.exception import SmsApiException

token = "XXXX"

client = SmsApiPlClient(access_token=token)

    contact = client.sms.send(to="123123")
except SmsApiException as e:
    print(e.message, e.code)


Apache 2.0 License

Project details

Download files

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

Files for smsapi-client, version 2.4.3
Filename, size File type Python version Upload date Hashes
Filename, size smsapi_client-2.4.3-py2.py3-none-any.whl (20.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size smsapi-client-2.4.3.tar.gz (11.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page