example for programmer

This commit is contained in:
tikijian 2014-09-12 10:00:41 +04:00
parent b90f0e0ffa
commit 034b503a14

19
test.py
View File

@ -1,8 +1,19 @@
from Intaro import IntaroApy 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)