SuperSaaS

Appointment Scheduling for Every Situation

Go to site

Integrate the SuperSaaS API with the Go API

Setup the SuperSaaS API trigger to run a workflow which integrates with the Go API. Pipedream's integration platform allows you to integrate SuperSaaS and Go remarkably fast. Free for developers.

Connect SuperSaaS

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    supersaas: {
      type: "app",
      app: "supersaas",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.supersaas.com/api/schedules.json`,
      params: {
        account: `${this.supersaas.$auth.account}`,
        api_key: `${this.supersaas.$auth.api_key}`,
      },
    })
  },
})

Connect Go

package main

import (
	"fmt"

	pd "github.com/PipedreamHQ/pipedream-go"
)

func main() {
	// Access previous step data using pd.Steps
	fmt.Println(pd.Steps)

	// Export data using pd.Export
	data := make(map[string]interface{})
	data["name"] = "Luke"
	pd.Export("data", data)
}

Community Posts

Logging user credit changes using Google Sheets and Pipedream
Logging user credit changes using Google Sheets and Pipedream
One of the nice features SuperSaaS is a credit system which allows end-users to buy credit once and then easily pay for appointments without needing to go through the checkout each time. There are multiple things that can affect a credit balance. Credit purchases and new appointment, obviously, but also refunds due to canceled appointments, and manual credit adjustments by a superuser. This post is a step-by-step tutorial for setting up the logging of user credit information to a Google Sheet using Pipedream, a powerful API integration service.