with Recurly and Vero?
Emit new event when a new subscription is created. See the docs
Emit new event when a new transaction is created. See the docs
This endpoint creates a new user profile if the user doesn't exist yet. Otherwise, the user profile is updated based on the properties provided. See the documentation
This endpoint tracks an event for a specific user. If the user profile doesn't exist Vero will create it. See the documentation
Recurly API provides robust functionality for subscription management, including creating and updating customer accounts, managing billing information, and handling subscription lifecycle events. With Pipedream, you can leverage these capabilities to create automated workflows that respond to events in Recurly, sync data with other systems, and perform actions that enhance your subscription operations and customer experiences.
module.exports = defineComponent({
  props: {
    recurly: {
      type: "app",
      app: "recurly",
    }
  },
  async run({steps, $}) {
    const recurly = require('recurly')
    const client = new recurly.Client(this.recurly.$auth.api_key)
    return await client.listAccounts()
  },
})
Vero's API allows you to automate email marketing tasks such as managing campaigns, users, and events. Integrating Vero with Pipedream enables you to create workflows that respond to various triggers, like webhooks or schedules, and carry out actions such as sending emails, segmenting users, or tracking events. This integration can be a powerful tool to personalize your marketing efforts and respond in real-time to your customers' interactions.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    vero: {
      type: "app",
      app: "vero",
    }
  },
  async run({steps, $}) {
    const data = {
      "auth_token": `${this.vero.$auth.auth_token}`,
      "id":"1234",
      "email":"test@getvero.com",
      "channels": [{"type": "push", "address": "UNIQUE_DEVICE_TOKEN", "platform": "android"}],
      "data": {"first_name": "John", "last_name": "Doe"}
    }
    return await axios($, {
      method: "POST",
      url: `https://api.getvero.com/api/v2/users/track`,
      headers: {
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})