with The Official Board and Mindbody?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_official_board: {
type: "app",
app: "the_official_board",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.theofficialboard.com/rest/test/token`,
headers: {
"accept": `application/json`,
"token": `${this.the_official_board.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mindbody: {
type: "app",
app: "mindbody",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mindbodyonline.com/public/v6/class/classes`,
headers: {
"api-key": `${this.mindbody.$auth.api_key}`,
"siteid": `${this.mindbody.$auth.site_id}`,
"authorization": `${this.mindbody.$auth.oauth_access_token}`,
},
})
},
})