with Baremetrics and CSVbox?
The Baremetrics API offers granular data on your SaaS metrics, including MRR, ARR, LTV, and churn rates, directly accessible for analytics, reporting, and enhancing business intelligence. With Pipedream's integration capabilities, you can automate workflows that react to this data in real-time, syncing with other services for actions like customer engagement, financial forecasting, and trigger-based alerting.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
baremetrics: {
type: "app",
app: "baremetrics",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.baremetrics.com/v1/account`,
headers: {
Authorization: `Bearer ${this.baremetrics.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
csvbox: {
type: "app",
app: "csvbox",
}
},
async run({steps, $}) {
const data = {
"import": {
"public_file_url": "https://support.staffbase.com/hc/en-us/article_attachments/360009197011/username-password-recovery-code.csv",
"sheet_license_key": `${this.csvbox.$auth.sheet_license_key}`,
"user": {
"user_id": "your_user_id" //UserID is identifies any person who uses your application.
}
}
}
return await axios($, {
method: "post",
url: `https://api.csvbox.io/1.1/file`,
headers: {
"content-type": `application/json`,
"x-csvbox-api-key": `${this.csvbox.$auth.api_key}`,
},
data,
})
},
})