with SAP S/4HANA Cloud (Sandbox) and Aleph Alpha (Luminous)?
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`,
},
})
},
})
The Aleph Alpha (Luminous) API offers advanced AI capabilities, enabling you to integrate state-of-the-art language models into your applications. With this API, you can create natural language understanding and generation tasks, such as answering questions, summarizing content, and generating human-like text. On Pipedream, you can leverage these features within serverless workflows to automate processes, enrich data, and connect with other apps to create powerful AI-driven solutions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
luminous: {
type: "app",
app: "luminous",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.aleph-alpha.com/users/me`,
headers: {
Authorization: `Bearer ${this.luminous.$auth.api_token}`,
"Accept": `application/json`,
},
})
},
})