with Mitra 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: {
mitra: {
type: "app",
app: "mitra",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.mitra.$auth.url}/${this.mitra.$auth.table_name}`,
headers: {
Authorization: `Bearer ${this.mitra.$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`,
},
})
},
})