← Calendly

New Event from Calendly API

Pipedream makes it easy to connect APIs for Calendly and 700+ other apps remarkably fast.

Trigger workflow on
New Event from the Calendly API
Next, do this
Connect to 700+ APIs using code and no-code building blocks
No credit card required
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Event with Calendly API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Event trigger
    1. Connect your Calendly account
    2. Configure timer
  2. Add steps to connect to 700+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Event on Calendly
Description:Emits an event for each new event created
Version:0.0.2
Key:calendly-new-event

Code

const common = require("../common-polling.js");
const get = require("lodash/get");

module.exports = {
  ...common,
  key: "calendly-new-event",
  name: "New Event",
  description: "Emits an event for each new event created",
  version: "0.0.2",
  dedupe: "unique",
  methods: {
    ...common.methods,
    async getResults() {
      return await this.calendly.getEvents();
    },
    isRelevant(event, lastEvent) {
      const createdAt = this.getCreatedAt(event);
      return createdAt > lastEvent;
    },
    generateMeta(event) {
      const { id } = event;
      const createdAt = this.getCreatedAt(event);
      const startTime = new Date(get(event, "attributes.start_time"));
      return {
        id,
        summary: `New Event at ${startTime.toLocaleString()}`,
        ts: Date.parse(createdAt),
      };
    },
    getCreatedAt(event) {
      return Date.parse(get(event, "attributes.created_at"));
    },
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
CalendlycalendlyappThis component uses the Calendly app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
timer$.interface.timer

Authentication

Calendly uses API keys for authentication. When you connect your Calendly account, Pipedream securely stores the keys so you can easily authenticate to Calendly APIs in both code and no-code steps.

Get your API key at the top of your integrations dashboard.

About Calendly

Free Online Appointment Scheduling Software

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."
@heyellieday