with Launch27 and Livespace?
Launch27 is a robust platform aimed at helping businesses manage bookings and appointments seamlessly. Leveraging the Launch27 API on Pipedream, users can automate various business processes by connecting their scheduling system with other apps and services. This can include automations like syncing new bookings with a Google Calendar, triggering SMS or email reminders when an appointment is nearing, or compiling customer feedback collected through Launch27 into a CRM platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
launch27: {
type: "app",
app: "launch27",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.launch27.$auth.domain}.launch27.com/v1/settings`,
headers: {
Authorization: `Bearer ${this.launch27.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform";
import crypto from "crypto";
export default defineComponent({
props: {
livespace: {
type: "app",
app: "livespace",
}
},
async run({steps, $}) {
const concatenatedString = this.livespace.$auth.api_key
+ this.livespace.$auth.token
+ this.livespace.$auth.api_secret;
const sha1Hash = crypto.createHash('sha1')
.update(concatenatedString)
.digest('hex');
const data = {
"_api_auth": `key`,
"_api_key": `${this.livespace.$auth.api_key}`,
"_api_sha": `${sha1Hash}`,
"_api_session": `${this.livespace.$auth.session_id}`,
}
return await axios($, {
method: "post",
url: `https://${this.livespace.$auth.subdomain}.livespace.io/api/public/json/Default/User_getInfo`,
data,
})
},
})