Skip to main content

RetailCRM API client

Project description

This is python RetailCRM API client. This library allows to use all available API versions.

Install

pip3 install retailcrm

Usage

# coding utf-8

import retailcrm


client = retailcrm.v3('https://demo.retailcrm.pro', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')

order = {
  'firstName': 'John',
  'lastName': 'Doe',
  'phone': '+79000000000',
  'email': 'john@example.com',
  'orderMethod': 'call-request',
}

result = client.order_create(order)
# coding utf-8

import retailcrm


client = retailcrm.v4('https://demo.retailcrm.pro', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')

result = client.customers_history(filter={'sinceId': '1500', 'startDate': '2018-03-01'})

print(result['pagination']['totalCount'])
# coding utf-8

import retailcrm


client = retailcrm.v5('https://demo.retailcrm.pro', '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)

Project details


Download files

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

Source Distribution

retailcrm-5.1.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

retailcrm-5.1.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file retailcrm-5.1.2.tar.gz.

File metadata

  • Download URL: retailcrm-5.1.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2

File hashes

Hashes for retailcrm-5.1.2.tar.gz
Algorithm Hash digest
SHA256 c3c366b02bda7beb2d339efca290c9e7f66758067c86a2950c7a28d76c32a60a
MD5 69efabddbeda271a7c2dd10f72c34460
BLAKE2b-256 dafacb5417eccd7e748526d620c028286aab635772d0ac5ba3dc47bd07885924

See more details on using hashes here.

File details

Details for the file retailcrm-5.1.2-py3-none-any.whl.

File metadata

  • Download URL: retailcrm-5.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.2

File hashes

Hashes for retailcrm-5.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30b9ba0a5bbce1c46f9bcab93166f82178ae1833eba5db90c135b13e536c6d7d
MD5 a86f670412c3aa96e587882affc30c9b
BLAKE2b-256 b0543fd5ccd8f032a0bb66605b945d0dbe0ca68a6edf277ababcb4ae49b1337e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page