Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Сформировали запрос
- def add(name,phone,telegram_id,parentRef,ref):
- data = {
- 'apikey': '0635d163f4c298d4383e50e8902d0f5a',
- 'params':
- {
- 'manager_id': '0',
- 'name': name,
- 'phone': [phone,],
- 'fields':
- [
- {
- 'id': '1560',
- 'value': telegram_id
- },
- {
- 'id': '1561',
- 'value': parentRef
- },
- {
- 'id': '1563',
- 'value': str(ref)
- }
- ]
- },
- }
- response = requests.get(url_add,params=data)
- print(response.text)
- ответ приходит в виде json объекта, но без data
- {"status":"success","data":[]}
- И соответственно в CRM объект не добавляется
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement