with Sylius and SAP S/4HANA Cloud (Sandbox)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sylius: {
type: "app",
app: "sylius",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.sylius.$auth.api_url}/api/v2/shop/product-variants`,
headers: {
Authorization: `Bearer ${this.sylius.$auth.oauth_access_token}`,
"accept": `application/ld+json`,
},
params: {
page: `1`,
itemsPerPage: `30`,
},
})
},
})
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`,
},
})
},
})