with Piped and SegMetrics?
Create or update a subscription. See documentation here
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
piped: {
type: "app",
app: "piped",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.piped.$auth.instance_api_url}/suggestions`,
params: {
query: `Game`,
},
})
},
})
The SegMetrics API grants programmatic access to SegMetrics data, allowing users to extract detailed insights about their marketing efforts. With it, you can automate the retrieval of conversion data, contact lists, tags, and more, to better understand your marketing funnel performance. Leveraging Pipedream's processing capabilities, you can create intricate workflows that respond to this data in real-time, running logic or actions contingent on the insights you gain from SegMetrics.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
segmetrics: {
type: "app",
app: "segmetrics",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.segmetrics.io/${this.segmetrics.$auth.account_id}/contact/{{YOUR_CONTACT_ID}}`,
headers: {
"Authorization": `${this.segmetrics.$auth.api_key}`,
},
})
},
})