with Sendspark and Mindbody?
Creates a new dynamic video campaign. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sendspark: {
type: "app",
app: "sendspark",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.sendspark.$auth.api_url}/v1/workspaces/${this.sendspark.$auth.workspace_id}/dynamics`,
headers: {
"x-api-key": `${this.sendspark.$auth.api_key}`,
"x-api-secret": `${this.sendspark.$auth.api_secret_key}`,
},
})
},
})
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}`,
},
})
},
})