with Hiveage and Prepr (GraphQL)?
The Hiveage API empowers you to automate your invoicing and financial workflows directly within Pipedream. By leveraging this API, you can create, fetch, update, and manage invoices, clients, and payments programmatically. Imagine syncing invoice data with your CRM, triggering notifications upon receiving payments, or compiling financial reports without manual input. This seamless integration with Pipedream enables you to build custom workflows that streamline your billing cycle, enhance data consistency, and save you time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hiveage: {
type: "app",
app: "hiveage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.hiveage.$auth.subdomain}.hiveage.com/api/network`,
auth: {
username: `${this.hiveage.$auth.api_key}`,
password: ``,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
prepr_graphql: {
type: "app",
app: "prepr_graphql",
}
},
async run({steps, $}) {
const data = {
"query": `query {
Posts {
items {
_id
title
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://graphql.prepr.io/${this.prepr_graphql.$auth.access_token}`,
data,
})
},
})