with sevDesk and OpenRouter?
Returns a list of models available through the API. See the documentation
Send a chat completion request to a selected model. See the documentation
Creates a new invoice with optional details like invoice date, due date, discount amount, and invoice items. See the documentation
The sevDesk API allows you to automate tasks around billing, accounting, and inventory management within the sevDesk platform. With it, you can create invoices, manage customers, and handle your accounting processes programmatically. When integrated into Pipedream workflows, you can connect sevDesk with other apps to streamline your financial operations, trigger actions based on events, and sync data across your business stack, enabling a seamless financial workflow automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sevdesk: {
type: "app",
app: "sevdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://my.sevdesk.de/api/v1/Contact`,
headers: {
"Authorization": `${this.sevdesk.$auth.api_token}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openrouter: {
type: "app",
app: "openrouter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openrouter.ai/api/v1/parameters/openai/o1`,
headers: {
Authorization: `Bearer ${this.openrouter.$auth.api_key}`,
},
params: {
provider: `OpenAI`,
},
})
},
})