with DocsAutomator and Easypromos?
Generate a new document from a pre-existing template. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docsautomator: {
type: "app",
app: "docsautomator",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.docsautomator.co/automations`,
headers: {
Authorization: `Bearer ${this.docsautomator.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
easypromos: {
type: "app",
app: "easypromos",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.easypromosapp.com/v2/promotions`,
headers: {
Authorization: `Bearer ${this.easypromos.$auth.api_key}`,
},
})
},
})