call api error
And when I call the event getContactData được gán trong onAppActivate()
async function getContactData() {
try {
const data = await client.request.invokeTemplate(“getContacts”, {});
// data: {contact: {“active”: true, …}}
console.log(“data contact:”, data);
} catch (error) {
// Failure operation
console.log(error);
}
}
This is code my project
1. manifest.json
2.
requests.json
3. iparams.json
Raviraj
(Raviraj Subramanian)
November 27, 2023, 9:05am
2
Hi @Duong_nguyen_hoang1 ,
All the code looks good. The error says the host is sent as “.freshdesk.com”. The empty iparam value probably causes the error.
Can you please test the app by using the end-to-end testing method and check if it works after the iparams are configured?
Thank Raviraj
I try to it
I tried it on product and got error 400
I want to get information of a contact, which API should I use?
Currently I am using this api /api/v2/contacts
but the result is empty?
This is code
system
(system)
Closed
February 25, 2024, 11:29am
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.