with AccuWeather and Notiff (API Key)?
Send a new notification to a user or system via notiff.io. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notiff: {
type: "app",
app: "notiff",
}
},
async run({steps, $}) {
const data = {
"id_notification_source": `${this.notiff.$auth.notification_source_id}`,
"title": `New Notification`,
"description": `Notification from Pipedream`,
"url": `https://pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://notiff.io/api/1.1/wf/create_notification`,
headers: {
"content-type": `application/json`,
},
data,
})
},
})