with Typefully and SAP S/4HANA Cloud?
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: {
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sap_s_4hana_cloud: {
type: "app",
app: "sap_s_4hana_cloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.sap_s_4hana_cloud.$auth.api_url}/sap/opu/odata/sap/API_PLANNED_ORDERS/A_PlannedOrder`,
headers: {
"accept": `application/json`,
"apikey": `${this.sap_s_4hana_cloud.$auth.api_key}`,
},
params: {
"$top": `5`,
"$inlinecount": `allpages`,
"$orderby": `PlannedOrder`,
"$select": `PlannedOrder`,
},
})
},
})