with Dynamic Content Snippet and Meteomatics Weather API?
Retrieve historic, current, and forecast data globally. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dynamic_content_snippet: {
type: "app",
app: "dynamic_content_snippet",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.contentsnip.com/api/mappings`,
headers: {
"x-api-key": `${this.dynamic_content_snippet.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
meteomatics_weather_api: {
type: "app",
app: "meteomatics_weather_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.meteomatics.com/mvt/isolines/2024-06-22T0Z/msl_pressure.hPa/style.json`,
params: {
access_token: `${this.meteomatics_weather_api.$auth.oauth_access_token}`,
},
})
},
})