Invoice and accounting cloud software for companies and freelancers
FacturaDirecta is a powerful API that lets you create and manage invoices,
quotes, and other documents. You can use it to automate your billing process,
or to create custom documents for your clients. FacturaDirecta is easy to use
and has a wide range of features, making it a great choice for any business.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
facturadirecta: {
type: "app",
app: "facturadirecta",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.facturadirecta.$auth.account_name}.facturadirecta.com/api/products.xml`,
auth: {
username: `${this.facturadirecta.$auth.api_token}`,
password: `x`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})