Metadata-Version: 1.1
Name: retailcrm
Version: 5.0.0
Summary: retailCRM API client
Home-page: https://github.com/retailcrm/api-client-python
Author: retailCRM
Author-email: integration@retailcrm.ru
License: MIT
Description: [![Build Status](https://img.shields.io/travis/retailcrm/api-client-python/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/api-client-python)
        [![PyPI](https://img.shields.io/pypi/v/retailcrm.svg?style=flat-square)](https://pypi.python.org/pypi/retailcrm)
        [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/retailcrm.svg?style=flat-square)](https://pypi.python.org/pypi/retailcrm)
        
        
        retailCRM python API client
        ===========================
        
        This is python retailCRM API client. This library allows to use all available API versions.
        
        ## Install
        
        ```
        pip install retailcrm
        ```
        
        ## Usage
        
        #### API version 3 order create
        
        ```python
        # coding utf-8
        
        import retailcrm
        
        
        client = retailcrm.v3('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
        
        order = {
          'firstName': 'John',
          'lastName': 'Doe',
          'phone': '+79000000000',
          'email': 'john@example.com',
          'orderMethod': 'call-request',
        }
        
        result = client.order_create(order)
        ```
        
        #### API version 4 customers history
        
        ```python
        # coding utf-8
        
        import retailcrm
        
        
        client = retailcrm.v4('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
        
        result = client.customers_history(filter={'sinceId': '1500', 'startDate': '2018-03-01'})
        
        print(result['pagination']['totalCount'])
        ```
        
        #### API version 5 task create
        
        ```python
        # coding utf-8
        
        import retailcrm
        
        
        client = retailcrm.v5('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
        site = 'example-com'
        task = {
          'text': 'Product availability problem',
          'commentary': 'Take a look ASAP',
          'order': {
            'externalId': '100500'
          },
          'performerId': 1
        }
        
        result = client.task_create(task, site)
        ```
        
        ## Documentation
        
        * [English](http://www.retailcrm.pro/docs/Developers/Index)
        * [Russian](http://www.retailcrm.ru/docs/Developers/Index)
        
Keywords: crm,saas,rest,e-commerce
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
