with RudderStack HTTP and ExhibitDay?
The RudderStack HTTP API gives you the power to track and send events to RudderStack from anywhere you can make an HTTP request. With this API, you can streamline data from your apps, websites, and servers directly into RudderStack, enabling real-time analytics and insights. Using Pipedream, you can harness this capability to automate data collection and orchestration, syncing event data with other services, triggering actions based on customer behavior, or even enriching event data before it hits your data warehouse.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rudderstack: {
type: "app",
app: "rudderstack",
}
},
async run({steps, $}) {
const data = {
"userId": `{{pass_user_id_here}}`,
"anonymousId": `{{or_pass_anonymouse_user_id_here}}`,
}
return await axios($, {
method: "post",
url: `${this.rudderstack.$auth.data_plane_url}/v1/identify`,
auth: {
username: `${this.rudderstack.$auth.source_write_key}`,
password: ``,
},
data,
})
},
})
The ExhibitDay API allows you to interact with ExhibitDay's event planning and trade show management features programmatically. Using this API within Pipedream, you can automate tasks like synchronizing event data, managing trade show inventory, and tracking your team's performance at events. By leveraging Pipedream's connectivity, you can trigger workflows based on new events, updates, or specific conditions that you define, streamlining your event management process.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
exhibitday: {
type: "app",
app: "exhibitday",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.exhibitday.com/v1/events`,
headers: {
"api_key": `${this.exhibitday.$auth.api_key}`,
},
})
},
})