API Ninox to Infomaniak
Hello,
I need to synchronize appointments entered in my Ninox database with my Infomaniak Calendar (kSuite) however I cannot do it.
Currently I already do this synchronization with my Google Calendar via Make (Integromat) however, there is no Infomaniak integration with Make.
Here is the query I entered without a button that I manually trigger
http("POST", "https://api.infomaniak.com/1/kmeet/rooms", {
Authorization: "Bearer " + Compte.Entreprise.'API Make pour kSuite Calendar',
'Content-Type': "application/json"
}, 'Data Record pour kSuite Calendar')
And the json I created in a formula field
{
calendar_id: Entreprise.'ID du calendrier kSuite',
starting_at: format(start('Date du rendez-vous'), "YYYY-MM-DDTHH:mm:ss.356Z"),
ending_at: format(endof('Date du rendez-vous'), "YYYY-MM-DDTHH:mm:ss.356Z"),
timezone: "Europe/Paris",
hostname: "kmeet.infomaniak.com",
title: 'Titre Make Google Agenda',
description: 'Commentaire Make Google Agenda',
attendees: [{
address: "myemail@ik.me",
organizer: true,
name: "John Doe",
state: "ACCEPTED"
}],
options: {
subject: 'Titre Make Google Agenda',
start_audio_muted: false,
enable_recording: false,
enable_moderator_video: false,
start_audio_only: false,
lobby_enabled: false,
password_enabled: false,
e2ee_enabled: false
}
}
I followed the instructions in the following documentation: https://developer.infomaniak.com/docs/api/post/1/kmeet/rooms
As requested in the documentation, I have successfully created an API with access to 'kmeet' and 'workspace:calendar'.
Also, I tested a request with Postman to confirm that the API is working, and in my Infomaniak customer area, I can see that the API was used at the same time. However, when I try requests from Ninox, my Infomaniak customer area doesn't register the API request. Therefore, it doesn't seem to arrive.
I'm new to API requests. Can you help me?
3 replies
-
Hi,
you have probably a corrs problem so you need to wrap your htttp request in a do as server.
let responce := do as server http("POST", "https://api.infomaniak.com/1/kmeet/rooms", { Authorization: "Bearer " + Compte.Entreprise.'API Make pour kSuite Calendar', 'Content-Type': "application/json" }, 'Data Record pour kSuite Calendar') end; if response.error then alert("error:" + text(response.error)) else alert(text(response.result) end;
I also put some code in lines 7 to 11 to get some feedback to troubleshoot....
Content aside
- 2 wk agoLast active
- 3Replies
- 31Views
-
2
Following