with 302.AI and Sendspark?
Creates a new dynamic video campaign. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
_302_ai: {
type: "app",
app: "_302_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.302.ai/v1/models`,
headers: {
Authorization: `Bearer ${this._302_ai.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})