Skip to main content

API wrapper for SMSPilot sms gateway <http://www.smspilot.ru>

Project description

# pySMSPilot

## English

### Description

Python class with Implementation for SMS sending gateway API <http://www.smspilot.ru/> You need regisration and API-Key to start using it. We use some features from API 2.3.2. API provider gives some free sms for testing purposes, henceforward you need to pay some fee for them. Prices provided on their site. Now available at PyPI. You can install it by running: pip install pySMSPilot

### Installation ang quick start

After registering at <http://www.smspilot.ru/>:

  • Include it with:

import pySMSPilot

  • Initialize class with your API-key:

Pilot = pySMSPilot.sender.Sender(api)

  • Add some sms messages with command:

    Pilot.addSMS([your_local_sms_id_int], “Phone number”, u”SMS message”, u”Sender name”)

Note: phone number must be in format 7xxxxxxxxxx

Note: sender name must contain only latin letters dots and dashes, min length 3 letters, max - 11

Note: Ability to change sender name may be limited by service rules, refer to http://www.smspilot.ru/ to find out more

  • Run sending command with:

Result = Pilot.send()

Object with sending results will be returned. More info look at <http://www.smspilot.ru/apikey.php>

## Russian

### Описание

Класс имлементации использования API (версии 2.x) сайта http://www.smspilot.ru/ для отправки SMS рассылок. Для отправки смс необходима регистрация на сайте. Провайдер предоставляет несколько бесплатных смс для тестирования. Но в дальнейшем нужно оплачивать отправку каждого смс. Прайсы на сайте. По России недорого. Ок. 30 копеек за смс на сегодня. Теперь библиотека доступна через PyPI. Для установки просто выполните: pip install pySMSPilot

### Инструкции

  • Подключить модуль:

import pySMSPilot

  • Инициализировать класс API-ключом:

Pilot = pySMSPilot.sender.Sender(api)

  • Добавим одно или несколько sms вот так:

Pilot.addSMS([локальный_id_сообщения_int],”Номер телефона”, u”SMS сообщение”, u”Imya Otpravitelya”)

Note: номер телефона должен быть в формате 7xxxxxxxxxx

Note: Imya Otpravitelya - имя отправителя может содежать только латинские буквы, точки и тире, длинна мин 3 символа, макс - 11

Note: возможность изменять имя отправителя может быть ограничена сервисом, подробнее см. условия на сайте http://www.smspilot.ru/

  • Запускаем комманду отправки:

Result = Pilot.send()

Будет возвращен объект с результатами отправки. Больше информации см. <http://www.smspilot.ru/apikey.php>

Copyright (c) 2013 by Stanislav Sokolov aka Ratso

Project details


Download files

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

Source Distribution

PySMSPilot-1.3.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page