with Meteomatics Weather API and Microsoft Teams Events?
Retrieve historic, current, and forecast data globally. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_teams_events: {
type: "app",
app: "microsoft_teams_events",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.microsoft_teams_events.$auth.oauth_access_token}`,
},
})
},
})