PYTHON ORANGE SMS GATE WAY
Orange provides API to send SMS to some countries around the world, but using the API may take you a few hours.
If you are a python developer, don't waste your time. Just use our package and save your time for other meaningful things.
INSTALL
pip install python-orange-sms
GET CREDENTIALS
-
Go to https://developer.orange.com/ and login or create a new account
-
Go to my apps
-
Select your app or create a new app
-
Get your Client ID
-
Get your Authorization header
-
Get your App Name
USAGE
from python_orange_sms import utils
SENDER_NAME = 'Name of your app' # Name of your app in dev console
AUTH_TOKEN = 'Authorization header' # Authorization header from dev console
message = "The sms message you want to send to the recipient" # Your message
recipient_phone_number='243xxxxxxxxx' # a Receiver phone number
dev_phone_number='243xxxxxxxxx' # Sender (your phone number)
#recipient_phone_number and dev_phone_number are international phone numbers without + or leading zeros: format regex('^[1-9][\d]{10,14}$')
sms = utils.SMS(AUTH_TOKEN = AUTH_TOKEN, )
res = sms.send_sms(message=message,
dev_phone_number=dev_phone_number, recipient_phone_number=recipient_phone_number)
print(res)
if res.status_code == 201:
print('EVERYTHING RIGHT : ', res.text) # SMS sent
else:
print('SAME THING WRONG : ', res.text) # OOPS
Metadata
Release files for python-orange-sms 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_orange_sms-0.1.4.tar.gz | 3.6 kB | Without provenance | Details for python_orange_sms-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_orange_sms-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for python_orange_sms-0.1.4-py3-none-any.whl |
Total release size: 7.3 kB
Release files / python_orange_sms-0.1.4.tar.gz
| Download URL | python_orange_sms-0.1.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e04a205d6ceee9d4faa4f97c647e1781dfedf99f1f4fad64e4b619fc766b8648
|
|
BLAKE2b-256 checksum How to use checksums |
1c60438e68183cdff54ac62c4063ab0949800b1b9d08b1b2fb0065cb6aa3517d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2
|
Release files / python_orange_sms-0.1.4-py3-none-any.whl
| Download URL | python_orange_sms-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
553af501ccc1f1e85c8c1df40a9089fe02b80537ab93c5cef0cfc50e55c84b54
|
|
BLAKE2b-256 checksum How to use checksums |
38b6134fd8c42a35d75761e0c2553696f5dd38f02fc56626df7bb4aca23204d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2
|
Security for python-orange-sms 0.1.4
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.