Accounting software for small businesses
FreeAgent, a powerful accounting tool, offers an API enabling businesses to automate various aspects of financial management. With the FreeAgent API, you can create, read, update, and delete invoices, bills, expenses, and much more, directly through Pipedream. This allows for the creation of custom automations that can save time, reduce errors, and streamline financial operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freeagent: {
type: "app",
app: "freeagent",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.freeagent.com/v2/users/me`,
headers: {
Authorization: `Bearer ${this.freeagent.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})