import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
accuweather: {
type: "app",
app: "accuweather",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://dataservice.accuweather.com/locations/v1/regions`,
params: {
apikey: `${this.accuweather.$auth.api_key}`,
},
})
},
})
AccuWeather uses API keys for authentication. When you connect your AccuWeather account, Pipedream securely stores the keys so you can easily authenticate to AccuWeather APIs in both code and no-code steps.