← Confection

New Event from Confection API

Pipedream makes it easy to connect APIs for Confection and 1000+ other apps remarkably fast.

Trigger workflow on
New Event from the Confection API
Next, do this
Connect to 1000+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

Trigger a workflow on New Event with Confection API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Event trigger
    1. Connect your Confection account
    2. Configure timer
    3. Configure Event Name
  2. Add steps to connect to 1000+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Event from Confection API
Confection + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Event from Confection API
Confection + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New Event from Confection API
Confection + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Event from Confection API
Confection + Airtable
 
Try it
Chat with OpenAI (ChatGPT) API on New Event from Confection API
Confection + OpenAI (ChatGPT)
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Event on Confection
Description:Emit new event when a UUID receives a value for the configured **Event Name**. The latest value as well a history of all values ever received for that **Event Name** will be returned.
Version:0.1.0
Key:confection-new-event

Code

import common from "../common.mjs";
import confection from "../../confection.app.mjs";

export default {
  key: "confection-new-event",
  name: "New Event",
  version: "0.1.0",
  dedupe: "unique",
  type: "source",
  description:
    "Emit new event when a UUID receives a value for the configured **Event Name**. The latest value as well a history of all values ever received for that **Event Name** will be returned.",
  props: {
    ...common.props,
    eventName: {
      propDefinition: [
        confection,
        "eventName",
      ],
      description:
        "Provide the event name to watch. All accounts have `loadtime` & `pageviewBatch` events by default.",
    },
  },
  methods: {
    ...common.methods,
    /**
     * Get summary for the triggered event
     *
     * @param {string} uuid - Emitted data UUID
     */
    getSummary(uuid) {
      return `New ${this.eventName} event with UUID: ${uuid}`;
    },
    /**
     * Get data from Confection Live API
     *
     * @param {string} lastTimestamp - Start of results time frame
     * @param {string} timestamp - End of results time frame
     */
    getSourceData(lastTimestamp, timestamp) {
      return this.confection.getNewEvent(
        this.eventName,
        lastTimestamp,
        timestamp,
      );
    },
  },
  run: common.run,
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
ConfectionconfectionappThis component uses the Confection app.
timer$.interface.timer
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Event NameeventNamestring

Provide the event name to watch. All accounts have loadtime & pageviewBatch events by default.

Authentication

Confection uses API keys for authentication. When you connect your Confection account, Pipedream securely stores the keys so you can easily authenticate to Confection APIs in both code and no-code steps.

Find your account ID and API keys here: https://dashboard.confection.io/my-keys

Need an account? Using Confection for the first time? Please see our quick-start guide: https://confection.io/quick-start/pipedream

About Confection

Confection collects, stores, and distributes data in a way that's unaffected by client-side disruptions involving cookies, cross-domain scripts, and device IDs. It's also compliant with global privacy laws so it’s good for people too.

More Ways to Use Confection

Triggers

New Field Value from the Confection API

Emit new event when the UUID is significant enough to be classified as a lead. You define the field of significance and if a UUID gets a value for this field, it will trigger.

 
Try it
New or Updated Leads from the Confection API

Emit new event when any UUID is created or updated. To learn more about how Confection handles UUIDs, visit https://confection.io/main/demo/#uuid.

 
Try it

Actions

Get Full Details of UUID with the Confection API

This action will retrieve the full details of a specified UUID.

 
Try it
Get Related UUIDs with the Confection API

This action will retrieve all UUIDs that have a likeness score of at least 50 (default) with the provided UUID. The likeness score can be customized in configuration.

 
Try it