Intro
This library provides a thin wrapper SDK for the calend.ly API. For up-to-date information on the calend.ly API please visit their developer docs
Get your API Key
- Log into Calend.ly
- Navigate to the Integrations page
- Copy your API Key See Official Docs for more details.
Quickstart
Install package in your node project.
npm install --save node-calendly-sdk
var Calendly = calendly_client = "YOUR-API-TOKEN" // Create a webhookcalendly_clientwebhooks ;
Functions
Below is a description of the functions available for supported resources in the V1 API along with some basic usage examples.
Webhooks
Create A Webhook
Create a webhook that will receive notifications from Calendly when events are scheduled or cancelled.
Parameters:
- URL: Callback URL for webhook
- events: Array of events
Usage:
var Calendly = calendly_client = "YOUR-API-TOKEN" // Create a webhookcalendly_clientwebhooks ;
Console Output:
Errors: If there are errors when submitting a request they will be returned in the JSON, result, you will need to check for and handle these manually.
- Unauthorized
- Forbidden
- Conflict
- Unprocessable Entity
Get Webhook by ID
Fetches a specific webhook by ID.
Parameters:
- id: ID of webhook.
Usage:
var Calendly = calendly_client = "YOUR-API-TOKEN" // Get the webhook that has the id of 1234calendly_clientwebhooks ;
Console Output:
Get list of all Webhooks
List all of the webhooks configured for this account.
Usage:
var Calendly = calendly_client = "YOUR-API-TOKEN" // Create a webhookcalendly_clientwebhooks
Remove a Webhook
Remove a webhook so that it is no longer active.
Parameters:
- id: ID of your webhook.
Usage:
var Calendly = calendly_client = "YOUR-API-TOKEN" // Create a webhookcalendly_clientwebhooks
Event Types
Get list of all event types for User.
List all of the configured event types for this account.
Usage:
var Calendly = calendly_client = "YOUR-API-TOKEN" calendly_clientevents
Users
Get Account information.
List information about this account.
Usage:
var Calendly = calendly_client = "YOUR-API-TOKEN" calendly_clientusers