with Mistral AI and ChartMogul?
Emit new event when a new batch job is completed. See the Documentation
Emit new event when a new batch job fails. See the Documentation
Emit new event when a new AI model is registered or becomes available. See the Documentation
Create a new batch job, it will be queued for processing. See the Documentation
Adds custom attributes to customers that have the specified email address. See the docs here
Adds custom attributes to a given customer. See the docs here
Download a batch job results file to the /tmp directory. See the Documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mistral_ai: {
type: "app",
app: "mistral_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mistral.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.mistral_ai.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})
ChartMogul is an analytics platform designed to help subscription businesses analyze their revenue, churn, and other key performance indicators (KPIs). By leveraging the ChartMogul API, you can import, manipulate, and retrieve customer subscription data to gain insights into the financial health of your business. When used with Pipedream, you can automate complex workflows, combine subscription data with external tools, and react in real-time to changes in your subscription metrics.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chartmogul: {
type: "app",
app: "chartmogul",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chartmogul.com/v1/ping`,
auth: {
username: `${this.chartmogul.$auth.account_token}`,
password: `${this.chartmogul.$auth.secret_key}`,
},
})
},
})