with SAP S/4HANA Cloud (Sandbox) and Membado?
Assign tags to or remove them from a user. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sap_s_4hana_cloud_sandbox: {
type: "app",
app: "sap_s_4hana_cloud_sandbox",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.sap_s_4hana_cloud_sandbox.$auth.api_url}/sap/opu/odata/sap/API_PLANNED_ORDERS/A_PlannedOrder`,
headers: {
"accept": `application/json`,
"apikey": `${this.sap_s_4hana_cloud_sandbox.$auth.api_key}`,
},
params: {
"$top": `5`,
"$inlinecount": `allpages`,
"$orderby": `PlannedOrder`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
membado: {
type: "app",
app: "membado",
}
},
async run({steps, $}) {
const data = {
"apikey": `${this.membado.$auth.api_key}`,
"mail": `sergio@pipekit.com`,
}
return await axios($, {
method: "post",
url: `https://www.membado.io/api/${this.membado.$auth.user_identifier}/add-member`,
headers: {
"content-type": `application/x-www-form-urlencoded`,
},
data,
})
},
})