with QR API and TomTom?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qr_api: {
type: "app",
app: "qr_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://qrapi.io/v2/qrcode/url`,
headers: {
"accept": `image/png`,
},
params: {
apikey: `${this.qr_api.$auth.api_key}`,
url: `https://pipedream.com`,
},
})
},
})
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`,
},
})
},
})