Реализация SOAP сервиса для отправки смс через сервис turbosms.ua Python3+
Для установки пакета выполните:
$ pip install turbosmsua-python3
Все. Теперь в системе доступен пакет turbosmsua.
import turbosmsua
# Создадим инстанс
# Если неверный логин/пароль или что-то еще будет выброшен ValueError с описанием ошибки от сервиса
t = turbosmsua.Turbosms(login, password)
# Получение баланса. Float или ValueError
t.balance()
# Отправка смс.
# Первый параметр - отправитель
# Второй параметр - список получателей
# Третий параметр - текст
# Четвертый параметр - wappush - url. Оно как-то странно работает и смс с ним на айфон не доходят
#
# В ответ dict. С ключем status - это статус отправок по русски как отдал сервис,
# все остальные ключи - это номер телефона и статус ответа по ним.
send_statuses = t.send_text("sended",
[960000000, 80960000000, 380960000000, "960000000", "+380960000000"],
"Это текст сообщения")
# Получение статуса отправки по id сообщения. В ответ не обработанный ответ от сервиса
print t.message_status("123123-3123123-1231ad-sd")
Metadata
Release files for turbosmsua-python3 0.4.1
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 |
|---|---|---|---|---|
| turbosmsua-python3-0.4.1.tar.gz | 3.6 kB | Without provenance | Details for turbosmsua-python3-0.4.1.tar.gz |
Release files / turbosmsua-python3-0.4.1.tar.gz
| Download URL | turbosmsua-python3-0.4.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4ef1888bdded31344648ff7074e0a805edb18e4e5e3ee0df44a8f963bd357d5
|
|
BLAKE2b-256 checksum How to use checksums |
4f397ef4e9ecde77a9d23f37db10b8bc3f9d21a148dd1851e38962b3526fa337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for turbosmsua-python3 0.4.1
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.