with Smartlead and Typefully?
Schedules a draft for publication at a specific date and time. See the documentation
Schedules an existing draft for publication in the next available time slot. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smartlead: {
type: "app",
app: "smartlead",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://server.smartlead.ai/api/v1/client`,
params: {
api_key: `${this.smartlead.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
typefully: {
type: "app",
app: "typefully",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.typefully.com/v1/notifications/`,
headers: {
"x-api-key": `${this.typefully.$auth.api_key}`,
},
params: {
kind: `activity`,
},
})
},
})