Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Установка
В терминале(Или в командной строке) pip install 365sms
Инициализация
from three65smsapi import three65sms
# Это пример, вам нужно подставить вместо 'your api key' свой API ключ(Можно получить тут: https://365sms.ru/account)
client = three65sms(api_key='your api key')
Получение баланса аккаунта
client.getnumbersstatus(country='0', operator='any') # Вместо 0 в country надо подставить id своей страны(Получить тут: https://365sms.ru/api365), в поле operator можно оставить any, но лучше указать оператора(Получить там же где и id страны)
Получение количества доступных номеров
client.getnumbersstatus(country='0', operator='any') # Вместо 0 в country надо подставить id своей страны(Получить тут: https://365sms.ru/api365), в поле operator можно оставить any, но лучше указать оператора(Получить там же где и id страны)
Заказ номера
client.buynumber(service='Сервис', country='ID Страны(Не название)', operator='Оператор')
Изменить статус заказа
client.setnumberstatus(id='id номера(Получаеться при заказе)', status='Статус который примет заказ(id статусов можно найти в документации 365sms(https://365sms.ru/api365))')
Получить статус заказа
client.getnumberstatus(id='id номера(Получаеться при заказе)')
Получить все цены
client.getallprices(service='Сервис', country='ID Страны(Не название)')
FAQs
Это библиотека для работы с API сервиса 365SMS
We found that 365sms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.