import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ambee: {
type: "app",
app: "ambee",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ambeedata.com/latest/by-lat-lng`,
headers: {
"x-api-key": `${this.ambee.$auth.api_key}`,
"content-type": `application/json`,
},
params: {
lat: `21.17429`,
lng: `-86.84656`,
},
})
},
})
Ambee uses API keys for authentication. When you connect your Ambee account, Pipedream securely stores the keys so you can easily authenticate to Ambee APIs in both code and no-code steps.