Hello there,
I just want that everytime a new user registers in my app, it also does in my aircall.io account. So, first i need to connect with my aircall app
It works well if I pre-define the parameters. But of course, it’s no use for why I need it.
Should be like this?
{
“first_name”: <aircall_firstname>,
“last_name”: <aircall_lastname>,
“company_name”: “Acme”,
“information”: “”,
“phone_numbers”: [
{
“label”: “Work”,
“value”: <aircall_phonenumber>
}
],
“emails”: [
{
“label”: “Work”,
“value”: <aircall_email>
}
]
}
But no, it doesnt likes it
So when I copy and paste the text from the https://developer.aircall.io data about “contacts” (not users!)
{
“id”: 789,
“direct_link”: “https://api.aircall.io/v1/contacts/789 ”,
“first_name”: “John”,
“last_name”: “Doe”,
“company_name”: “Acme”,
“information”: “”,
“phone_numbers”: [
{
“label”: “Work”,
“value”: “+33631000000”
}
],
“emails”: [
{
“label”: “Work”,
“value”: “john.doe@something.io ”
}
]
}
It just doesnt likes it. neither with the example from the developer section
How can I make it work?
please help!!
Are you sure it’s just the body that is wrong? What about the API source URI and all that? Is it good?
Can you successfully do the call in a tool like Postman first?
The call is right, if i user the parameters fixed, it does create the user.
the problem is when i want to create the body in json
I dont use postman, want to keep it cheap by now.
look, when i do it like this,
it works
but i cant make it dinamic for merging my database with aircall’s
Postman is free.
If by dynamic you mean you can set it in your workflow, isn’t that as simple as unchecking the private box?
I just did and it’s not working
I cant see it in workflows in plugin menu
That’s not where you’d see it. When you insert dynamic data look in Get Data from API. It should be there.
You are right! I fixed it thanks! now it does creates a user in aircall! BUT i’m having the last problem
looks like phone numbers are a list, and when i create the user, I can’t create them with phone numbers
Here is the documentation from Aircall to add the numbers to the POST user call
{
“id”: 789,
“direct_link”: “https://api.aircall.io/v1/contacts/789 ”,
“first_name”: “John”,
“last_name”: “Doe”,
“company_name”: “Acme”,
“information”: “”,
“phone_numbers”: [
** {**
** “label”: “Work”,**
** “value”: “+33631000000”**
** }**
],
“emails”: [
{
“label”: “Work”,
“value”: “john.doe@something.io ”
}
]
}
and I did give the parameter non-private for the workflow later
and the workflow working great for creating the user but without phone number looks like this
As I said, it looks phone number parameter is a list, in the https://developer.aircall.io documentation. How can I add a list in the Api call connector from my inputs?
Thank you for your time @pier2design !!!
Hello anyone? how to add the phone number to the API connector?
system
Closed
December 14, 2017, 10:04pm
10
This topic was automatically closed after 70 days. New replies are no longer allowed.