with Vosfactures and MindStudio?
The Vosfactures API offers robust features for managing invoices, quotes, and orders within your business. With Pipedream, you can automate workflows that leverage these capabilities, streamlining your accounting processes and integrating them with other apps. From auto-generating invoices based on specific triggers to syncing your financials with accounting software or CRM systems, the opportunities for automation are vast.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vosfactures: {
type: "app",
app: "vosfactures",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.vosfactures.$auth.domain}.vosfactures.fr/clients.json`,
params: {
api_token: `${this.vosfactures.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mindstudio: {
type: "app",
app: "mindstudio",
}
},
async run({steps, $}) {
const data = {
"workerId": `${this.mindstudio.$auth.agent_id}`,
"includeBillingCosts": true,
"variables": {
"key1": "value1",
"key2": "value2"
},
"metadata": {
"tags": ["tag1", "tag2"]
},
"workflow": "optional-workflow-name",
"callbackUrl": "https://your-callback-url.com/endpoint"
}
return await axios($, {
method: "post",
url: `https://api.mindstudio.ai/developer/v2/agents/run`,
headers: {
Authorization: `Bearer ${this.mindstudio.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})