Python API for Amocrm
Project description
==================
AmoCRM python API.
==================
------------------
Не поддерживается по причине полной незаинтересованности со стороны AmoCRM (deprecated!!!)
------------------
------------------
Могу оказать помощь по экспорту/импроту ваших данных из/в AmoCRM
------------------
.. image:: https://travis-ci.org/Krukov/amocrm_api.svg?branch=master
:target: https://travis-ci.org/Krukov/amocrm_api
.. image:: https://img.shields.io/coveralls/Krukov/amocrm_api.svg
:target: https://coveralls.io/r/Krukov/amocrm_api
Python AmoCRM API (http://www.amocrm.ru/) (human interface for easy using )
Installation
============
::
pip install amocrm_api
Usage
=====
There are 7 abstraction of 5 AmoCRM objects:
- Контакт - BaseContact
- Компания - BaseCompany
- Сделка - BaseLead
- Задача - (LeadTask, ContactTask)
- Событие - (LeadNote, ContactNote)
Settings
--------
First of all you need to define settings
Example::
from amocrm import BaseContact, amo_settings, fields
amo_settings.set('krukov@centrobit.ru', '4b332718c4c5944003af7e6389860ced', 'testcentrobit')
Custom field
------------
One of the features of AmoCRM in the presence of custom fields in a contact, company and lead objects
To define your custom field you need describe it
Example::
from amocrm import BaseContact, amo_settings, fields
amo_settings.set('krukov@centrobit.ru', '4b332718c4c5944003af7e6389860ced', 'testcentrobit')
class Contact(BaseContact):
position = fields.CustomField(u'Должность')
site = fields.CustomField(u'Сайт')
phone = fields.CustomField(u'Телефон', enum='WORK')
Ok, now it is ready to use and you can get, create or edit contacts
Example::
new_contact = Contact(name='Example2', company='ExampleCorp2', position='QA', phone='0001')
new_contact.site = 'http://example.com'
new_contact.save()
contact = Contact.objects.get(new_contact.id)
contact_search = Contact.objects.search('Example2')
assert contact.id == contact_search.id
print(contact.phone)
contact.phone = '8-800-00000000'
contact.save()
contact.create_task('New task, yeee', task_type=u'Звонок',
complete_till=datetime.datetime.now()+datetime.timedelta(days=3))
print(contact.notes)
print(contact.tasks)
AmoCRM python API.
==================
------------------
Не поддерживается по причине полной незаинтересованности со стороны AmoCRM (deprecated!!!)
------------------
------------------
Могу оказать помощь по экспорту/импроту ваших данных из/в AmoCRM
------------------
.. image:: https://travis-ci.org/Krukov/amocrm_api.svg?branch=master
:target: https://travis-ci.org/Krukov/amocrm_api
.. image:: https://img.shields.io/coveralls/Krukov/amocrm_api.svg
:target: https://coveralls.io/r/Krukov/amocrm_api
Python AmoCRM API (http://www.amocrm.ru/) (human interface for easy using )
Installation
============
::
pip install amocrm_api
Usage
=====
There are 7 abstraction of 5 AmoCRM objects:
- Контакт - BaseContact
- Компания - BaseCompany
- Сделка - BaseLead
- Задача - (LeadTask, ContactTask)
- Событие - (LeadNote, ContactNote)
Settings
--------
First of all you need to define settings
Example::
from amocrm import BaseContact, amo_settings, fields
amo_settings.set('krukov@centrobit.ru', '4b332718c4c5944003af7e6389860ced', 'testcentrobit')
Custom field
------------
One of the features of AmoCRM in the presence of custom fields in a contact, company and lead objects
To define your custom field you need describe it
Example::
from amocrm import BaseContact, amo_settings, fields
amo_settings.set('krukov@centrobit.ru', '4b332718c4c5944003af7e6389860ced', 'testcentrobit')
class Contact(BaseContact):
position = fields.CustomField(u'Должность')
site = fields.CustomField(u'Сайт')
phone = fields.CustomField(u'Телефон', enum='WORK')
Ok, now it is ready to use and you can get, create or edit contacts
Example::
new_contact = Contact(name='Example2', company='ExampleCorp2', position='QA', phone='0001')
new_contact.site = 'http://example.com'
new_contact.save()
contact = Contact.objects.get(new_contact.id)
contact_search = Contact.objects.search('Example2')
assert contact.id == contact_search.id
print(contact.phone)
contact.phone = '8-800-00000000'
contact.save()
contact.create_task('New task, yeee', task_type=u'Звонок',
complete_till=datetime.datetime.now()+datetime.timedelta(days=3))
print(contact.notes)
print(contact.tasks)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
amocrm_api-0.2.1.zip
(18.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
amocrm_api-0.2.1.win-amd64.exe
(241.0 kB
view details)
File details
Details for the file amocrm_api-0.2.1.zip.
File metadata
- Download URL: amocrm_api-0.2.1.zip
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9646f67e11c555047943ce0ba587b1809741fe540825f9c67b080eb5c83d1a4e
|
|
| MD5 |
b590fa30014550a8796300a2890aba8c
|
|
| BLAKE2b-256 |
289e78d4f81d44aa8632056f6305a984f550dce3feb1806e71792b25003b6766
|
File details
Details for the file amocrm_api-0.2.1.win-amd64.exe.
File metadata
- Download URL: amocrm_api-0.2.1.win-amd64.exe
- Upload date:
- Size: 241.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
199b7cb74237094cc07ac4a53d283d340df186c865d145fcbc562b121f18db20
|
|
| MD5 |
d93cca6d7c209fa4ae7b885423495e39
|
|
| BLAKE2b-256 |
e3d32dee0cef8782fa6115d89786c43452c5d1f9af2319daf7bccf913cb9d3d4
|