Extract Calendly event

Hello Make community,

I’m trying to make an API call with calendly.
Here is the two ressources i found :

My goal is to get available time slots from the calendly link of my users.

I’m not a web dev, and i’m struggling to understand the right parameters.

This is what i try but didn’t work :confused:

In the Body the “2.calendly” is the calendly link of my users i retrieve in my airtable base.

I know i’m not doing it right, but i don’t know what to do ^^"

The body needs to be a json string

Also are you sure the get url doesn’t have the url in the get url? I can’t access their api references on mobile device (stupid!) so I can’t help you more right now.

2 Likes

Hey Alex, thanks for your answer !

  • the body needs to be a json string
    ** - what do i write ? i’m sorry but i’m not a dev :confused:

Do you mean this :

const options = {
  method: 'GET',
  headers: {'Content-Type': 'application/json', Authorization: ''}
};

fetch('https://api.calendly.com/event_type_available_times', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));

No I mean the body you’re sending has to be valid json.

Google json and you’ll see what valid json looks like.