Skip to main content

SSLWireless SMS Api Wrapper for Python

A simple python wrapper for sslwireless sms api.

Requirements

  • requests

  • xmltodict

Usage

  • Clone the repository

  • Install the dependencies with pip install -r requirements.txt or pip install requests xmltodict

  • Import the class and create instance to access its functions. ### Or

  • Install the package with pip install sslwireless-sms

Example

from sslwireless_sms import SSLWirelessSMS

# username, password and sid provided by sslwireless
# A fourth parameter 'decode_response' can be passed to determine the return type of data
# By default 'decode_response' is set to 'False' so it will return json data as result
# Set 'decode_response' to 'True' to get python dict as result
SSLWirelessSMS = SSLWirelessSMS('username', 'password', 'sid')
# You can change the api url if needed. i.e.
# SSLWirelessSMS.url = 'new_url'
result = SSLWirelessSMS.send('123456789','This is a test message.')

print(result)

Output

The default output will always be in JSON format unless you set decode_response to be True.

{
  "status": "success", // or "failed"
  "result": "sms sent", // or "invalid mobile or text" or "invalid mobile" or "invalid credentials"
  "phone": "123456789", // number to send message
  "message": "This is a test message.", // message sent
  "reference_no": "randomly_generated_unique_no", // client generated reference no
  "ssl_reference_no": "returned_sslwirless_reference_no", // api generated reference no
  "datetime": "2018-02-07 01:35AM" // datetime of process
}

Metadata

Release files for sslwireless-sms 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sslwireless-sms 0.0.3
File Size Uploaded Provenance Actions
sslwireless_sms-0.0.3.tar.gz 2.9 kB Without provenance Details for sslwireless_sms-0.0.3.tar.gz

Release files / sslwireless_sms-0.0.3.tar.gz

Download URL sslwireless_sms-0.0.3.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c76e94fa57cf6f8625edf0f7a2fe2054928584ab7e87ab8354170a887fe47de
BLAKE2b-256 checksum
How to use checksums
a310ce642f77a2026474b93b2fd8d7b9622c026b7261acb4859a297a4be45e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sslwireless-sms 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page