with TomTom and Refiner?
Emit new event whenever a user enters a segment in Refiner. See the documentation
Emit new event whenever a user completes a survey in Refiner. See the documentation
Identify a user with user ID or email. If the user does not exist, a new one will be created. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tomtom: {
type: "app",
app: "tomtom",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tomtom.com/search/2/autocomplete/pizza.json`,
params: {
key: `${this.tomtom.$auth.api_key}`,
language: `en-us`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
refiner: {
type: "app",
app: "refiner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.refiner.io/v1/account`,
headers: {
Authorization: `Bearer ${this.refiner.$auth.api_key}`,
},
})
},
})