← SuperSaaS

New or changed appointments from SuperSaaS API

Pipedream makes it easy to connect APIs for SuperSaaS and 1000+ other apps remarkably fast.

Trigger workflow on
New or changed appointments from the SuperSaaS API
Next, do this
Connect to 1000+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
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 or changed appointments with SuperSaaS API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New or changed appointments trigger
    1. Connect your SuperSaaS account
    2. Select one or more Schedules
  2. Add steps to connect to 1000+ 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

Integrations

Send Message with Discord Webhook API on New or changed appointments from SuperSaaS API
SuperSaaS + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Sheets
 
Try it
Get Film with SWAPI API on New or changed appointments from SuperSaaS API
SuperSaaS + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New or changed appointments from SuperSaaS API
SuperSaaS + Airtable
 
Try it
Custom Request with HTTP / Webhook API on New or changed appointments from SuperSaaS API
SuperSaaS + HTTP / Webhook
 
Try it

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 or changed appointments on SuperSaaS
Description:Emits an event for every changed appointments from the selected schedules.
Version:0.0.1
Key:supersaas-changed-appointments

Code

const dayjs = require('dayjs');
const makeEventSummary = require('../utils/makeEventSummary.js');
const supersaas = require('../supersaas.app.js');

module.exports = {
  key: 'supersaas-changed-appointments',
  name: 'New or changed appointments',
  description: `Emits an event for every changed appointments from the selected schedules.`,
  version: '0.0.1',
  props: {
    supersaas,
    schedules: { propDefinition: [supersaas, 'schedules'] },
    db: "$.service.db",
    http: '$.interface.http',
  },
  hooks: {
    async activate() {
      const { http, schedules } = this;

      this.db.set('activeHooks', await this.supersaas.createHooks(schedules.map(x => ({
        event: 'C', // change_appointment
        parent_id: Number(x),
        target_url: http.endpoint,
      }))));
    },
    async deactivate() {
      await this.supersaas.destroyHooks(this.db.get('activeHooks') || []);
      this.db.set('activeHooks', []);
    },
  },
  async run(ev) {
    const outEv = {
      meta: {
        summary: makeEventSummary(ev),
        ts: dayjs(ev.body.created_on).valueOf(),
      },
      body: ev.body,
    };

    console.log('Emitting:', outEv);
    this.$emit(outEv, outEv.meta);
  },
};

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
SuperSaaSsupersaasappThis component uses the SuperSaaS app.
Schedulesschedulesstring[]Select a value from the drop down menu.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.

Authentication

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

You can find your account name and API key in the Account Info section of your settings. See the Authentication docs for more info.

About SuperSaaS

Appointment Scheduling for Every Situation

More Ways to Use SuperSaaS

Triggers

Credit balance changes from the SuperSaaS API

Emits an event for every user credit balance changes for the selected schedules.

 
Try it
New or changed users from the SuperSaaS API

Emits an event for every new and changed user.

 
Try it