python_justclick
https://github.com/moshkov/python_justclick
Зависимости
Python 2.7+, 3.4+
requests
Установка
$ pip install python_justclick
Если используется Django, то в настройках проекта можно указать JUSTCLICK_USERNAME и JUSTCLICK_API_KEY.
Описание
Python JustClick API
Позволяет работать с API JustClick. В текущей версии реализовано добавление подписчика в группы (AddLeadToGroup) и проверка статуса членства подписчика в группах (GetLeadGroupStatuses).
JustClick: http://justclick.ru/
Описание API: http://help.justclick.ru/archives/category/api
Использование
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
Проверка отвера API на корректность
Остальной функционал API JustClick
Тесты
Документация
Metadata
Release files for python_justclick 0.1.3
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_justclick-0.1.3.tar.gz | 5.0 kB | Without provenance | Details for python_justclick-0.1.3.tar.gz |
Release files / python_justclick-0.1.3.tar.gz
| Download URL | python_justclick-0.1.3.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
975c85d62fd8865149f73a08df1892b1915aff4a1d80daae493dd97cfe20e9ef
|
|
BLAKE2b-256 checksum How to use checksums |
5c68805c6ddd34daa030444db7f1b545b8a18469675e239aab4d71a5d080f546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python_justclick 0.1.3
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.