with Plain and ChartMogul?
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
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform" export default defineComponent({ props: { plain: { type: "app", app: "plain", } }, async run({steps, $}) { const data = { "query": `query Workspace { workspace(workspaceId: "${this.plain.$auth.workspace_id}") { id publicName } }`, } return await axios($, { method: "post", url: `https://core-api.uk.plain.com/graphql/v1`, headers: { Authorization: `Bearer ${this.plain.$auth.api_key}`, "Content-Type": `application/json`, }, data, }) }, })
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}`, }, }) }, })