Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python JustClick API

Project Description

https://github.com/moshkov/python_justclick

Зависимости

  • Python 2.7+
  • requests

Установка

$ pip install python_justclick

Если используется Django, то в настройках проекта можно указать JUSTCLICK_USERNAME и JUSTCLICK_API_KEY.

Описание

Python JustClick API

Позволяет работать с API JustClick. В текущей версии реализовано добавление подписчика в группы (AddLeadToGroup) и проверка статуса членства подписчика в группах (GetLeadGroupStatuses).

Использование

from python_justclick.justclick import JustClickConnection

justClickConnection = JustClickConnection('YOU_JUSTCLICK_USERNAME', 'YOU_JUSTCLICK_API_KEY')

result = justClickConnection.add_lead_to_group(['group1', 'group2'], 'lead@email.local', {
    "doneurl2": "https://your-site.local/success",
    "lead_name": "Vasya Pupkin",
})

if result['error_code'] == 0:
    print 'success'

...

Для Django (если в настройках заданы JUSTCLICK_USERNAME и JUSTCLICK_API_KEY):

from python_justclick.python_justclick_django import justClickConnection

result = justClickConnection.add_lead_to_group(['group1', 'group2'], 'lead@email.local', {
    "doneurl2": "https://your-site.local/success",
    "lead_name": "Vasya Pupkin",
})

if result['error_code'] == 0:
    return HttpResponseRedirect(reverse('thanks'))

...

TODO

  1. Проверка отвера API на корректность
  2. Остальной функционал API JustClick
  3. Тесты
  4. Документация
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_justclick-0.1.2.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256 Source Apr 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting