Skip to main content
==================
AmoCRM python API.
==================

Вопросы?

.. image:: https://badges.gitter.im/Krukov/amocrm_api.svg
:alt: Join the chat at https://gitter.im/Krukov/amocrm_api
:target: https://gitter.im/Krukov/amocrm_api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

------------------
Могу оказать помощь по экспорту/импроту ваших данных из/в 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.EnumCustomField(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)

Release files for amocrm-api 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amocrm-api 0.8.3
File Size Uploaded
amocrm_api-0.8.3.tar.gz 16.0 kB Details

Release files / amocrm_api-0.8.3.tar.gz

Download URL amocrm_api-0.8.3.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c37d280f1517273a95639aea0ae22c727b8765d50426eec55cbb94a64c6bd449
BLAKE2b-256 checksum
How to use checksums
4cc4c6525f0bea2982b63c91cafd6c1e888e76c273f6b80e35df2e9b2990d8ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.6.1

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

This release

0.8.3 This release

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.3.0

1 release file

0.2.1

2 release files

0.2.0

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page