mirror of
https://github.com/retailcrm/api-client-python.git
synced 2025-01-23 00:31:40 +03:00
example for programmer
This commit is contained in:
parent
b90f0e0ffa
commit
034b503a14
19
test.py
19
test.py
@ -1,8 +1,19 @@
|
||||
from Intaro import IntaroApy
|
||||
from pprint import pprint
|
||||
|
||||
i = IntaroApy('https://g-lights.intarocrm.ru', 'pPsg3F79dj0OYkeYKwogOT9cccaipIKR')
|
||||
# copy-one.ru
|
||||
crm = IntaroApy('https://copy-one.intarocrm.ru', 'Yogg9w7pxDW6sS3yESXljKpSueTJVURW')
|
||||
|
||||
result = i.orderGet(1342)
|
||||
# copy-galaxys5
|
||||
#crm = IntaroApy('https://copy-one.intarocrm.ru', 'zpbJiKQEFEo9OlpEebM8OATs5t7dzgjB')
|
||||
|
||||
# Pulwin
|
||||
#crm = IntaroApy('https://copy-one.intarocrm.ru', 'Lx2W5QRy6lQUotkaLd1cAXYRPIG4SdhR')
|
||||
|
||||
order = {
|
||||
'firstName': 'TESTER',
|
||||
'phone': '89991119922',
|
||||
'orderMethod': 'landing-page'
|
||||
}
|
||||
|
||||
result = crm.orderCreate(order)
|
||||
|
||||
pprint(result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user