Advertisement
Bobrovozka

Untitled

Dec 23rd, 2021
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. Полученный хук:
  2.  
  3. {
  4. "leads[add][0][id]": [
  5. "29033334"
  6. ],
  7. "leads[add][0][name]": [
  8. ""
  9. ],
  10. "leads[add][0][status_id]": [
  11. "42526125"
  12. ],
  13. "leads[add][0][old_status_id]": [
  14. "22324948"
  15. ],
  16. "leads[add][0][price]": [
  17. "0"
  18. ],
  19. "leads[add][0][responsible_user_id]": [
  20. "2873617"
  21. ],
  22. "leads[add][0][last_modified]": [
  23. "1640271675"
  24. ],
  25. "leads[add][0][modified_user_id]": [
  26. "2873617"
  27. ],
  28. "leads[add][0][created_user_id]": [
  29. "2873617"
  30. ],
  31. "leads[add][0][date_create]": [
  32. "1640271674"
  33. ],
  34. "leads[add][0][pipeline_id]": [
  35. "4627251"
  36. ],
  37. "leads[add][0][account_id]": [
  38. "22324900"
  39. ],
  40. "leads[add][0][created_at]": [
  41. "1640271674"
  42. ],
  43. "leads[add][0][updated_at]": [
  44. "1640271675"
  45. ],
  46. "account[subdomain]": [
  47. "marlennsk"
  48. ],
  49. "account[id]": [
  50. "22324900"
  51. ],
  52. "account[_links][self]": [
  53. "https://marlennsk.amocrm.ru"
  54. ]
  55. }
  56.  
  57. Запрос на получение лида по ID (в нем пустые тэги, хотя создавался с тэгом "Нск"):
  58.  
  59. 2021-12-23 15:01:15.474 INFO 7 --- [nio-8211-exec-8] t.i.a.o.a.s.impl.AmoCrmServiceImpl : OPERATION_DETAILS: {serverResponseStatusLine=HTTP/1.1 200 OK, requestLine=GET https://marlennsk.amocrm.ru/api/v4/leads/29033334?with=contacts HTTP/1.1, jsonBodyResponse=
  60. {
  61. "id": 29033334,
  62. "name": "Сделка #29033334",
  63. "price": 0,
  64. "responsible_user_id": 2873617,
  65. "group_id": 0,
  66. "status_id": 42526125,
  67. "pipeline_id": 4627251,
  68. "loss_reason_id": null,
  69. "created_by": 2873617,
  70. "updated_by": 2873617,
  71. "created_at": 1640271674,
  72. "updated_at": 1640271675,
  73. "closed_at": null,
  74. "closest_task_at": null,
  75. "is_deleted": false,
  76. "custom_fields_values": null,
  77. "score": null,
  78. "account_id": 22324900,
  79. "_links": {
  80. "self": {
  81. "href": "https://marlennsk.amocrm.ru/api/v4/leads/29033334"
  82. }
  83. },
  84. "_embedded": {
  85. "tags": [],
  86. "companies": [],
  87. "contacts": [
  88. {
  89. "id": 42547840,
  90. "is_main": true,
  91. "_links": {
  92. "self": {
  93. "href": "https://marlennsk.amocrm.ru/api/v4/contacts/42547840"
  94. }
  95. }
  96. }
  97. ]
  98. }
  99. }}
  100.  
  101. Тот же запрос инициированный через некоторое время после создания лида:
  102. 2021-12-23 15:09:53.821 INFO 7 --- [nio-8211-exec-9] t.i.a.o.a.s.impl.AmoCrmServiceImpl : OPERATION_DETAILS: {serverResponseStatusLine=HTTP/1.1 200 OK, requestLine=GET https://marlennsk.amocrm.ru/api/v4/leads/29033334?with=contacts HTTP/1.1, jsonBodyResponse=
  103. {
  104. "id": 29033334,
  105. "name": "Сделка #29033334",
  106. "price": 0,
  107. "responsible_user_id": 2873617,
  108. "group_id": 0,
  109. "status_id": 42526125,
  110. "pipeline_id": 4627251,
  111. "loss_reason_id": null,
  112. "created_by": 2873617,
  113. "updated_by": 2873617,
  114. "created_at": 1640271674,
  115. "updated_at": 1640271675,
  116. "closed_at": null,
  117. "closest_task_at": null,
  118. "is_deleted": false,
  119. "custom_fields_values": null,
  120. "score": null,
  121. "account_id": 22324900,
  122. "_links": {
  123. "self": {
  124. "href": "https://marlennsk.amocrm.ru/api/v4/leads/29033334"
  125. }
  126. },
  127. "_embedded": {
  128. "tags": [
  129. {
  130. "id": 546134,
  131. "name": "Нск"
  132. }
  133. ],
  134. "companies": [],
  135. "contacts": [
  136. {
  137. "id": 42547840,
  138. "is_main": true,
  139. "_links": {
  140. "self": {
  141. "href": "https://marlennsk.amocrm.ru/api/v4/contacts/42547840"
  142. }
  143. }
  144. }
  145. ]
  146. }
  147. }}
  148.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement