with Lexoffice and Notion (API Key)?
The Lexoffice API provides a suite of accounting tools that can automate various financial tasks for businesses using Pipedream. With this API, you can create invoices, manage contacts, track expenses, and handle accounting documents programmatically. Pipedream's serverless platform enables you to integrate Lexoffice with hundreds of other apps, allowing for streamlined workflows that can trigger actions in Lexoffice or respond to events from Lexoffice in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lexoffice: {
type: "app",
app: "lexoffice",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lexoffice.io/v1/contacts`,
headers: {
Authorization: `Bearer ${this.lexoffice.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notion_api_key: {
type: "app",
app: "notion_api_key",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.notion.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.notion_api_key.$auth.api_secret}`,
"Notion-Version": `2021-08-16`,
},
})
},
})