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`,
},
})
},
})
TomTom uses API keys for authentication. When you connect your TomTom account, Pipedream securely stores the keys so you can easily authenticate to TomTom APIs in both code and no-code steps.