- Joined
- May 25, 2020
- Messages
- 16
- Reaction score
- 6
Hi!
I'm having trouble integrating a custom CRM (Pipedrive).
We've been working with this template: https://www.3cx.com/community/threads/pipedrive-3cx-server-side-integration.65431/ (Thanks @Mark Phillips
)
Unfortunately the API on Pipedrive will change and a couple of API Elements will be removed in further versions. So we tried to adapt to the new API.
My problem is, that the new API will return all phone numbers to a contact in no order and without any path description, see the example:
Now, how can I match the phone numbers to variables in a GET request?
Thanks a lot and best regards,
Guido
I'm having trouble integrating a custom CRM (Pipedrive).
We've been working with this template: https://www.3cx.com/community/threads/pipedrive-3cx-server-side-integration.65431/ (Thanks @Mark Phillips
Unfortunately the API on Pipedrive will change and a couple of API Elements will be removed in further versions. So we tried to adapt to the new API.
My problem is, that the new API will return all phone numbers to a contact in no order and without any path description, see the example:
JSON:
{
"success": true,
"data": {
"items": [
{
"result_score": 0.489265,
"item": {
"id": 5,
"type": "person",
"name": "Blub Bla",
"phones": [
"0791111111",
"0793333333",
"0794444444",
"0792222222"
],
"emails": [
"[email protected]"
],
"visible_to": 3,
"owner": {
"id": 12159201
},
"organization": null,
"custom_fields": [],
"notes": []
}
}
]
},
"additional_data": {
"pagination": {
"start": 0,
"limit": 100,
"more_items_in_collection": false
}
}
}
Now, how can I match the phone numbers to variables in a GET request?
Thanks a lot and best regards,
Guido