with ntfy and Countly?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ntfy: {
type: "app",
app: "ntfy",
}
},
async run({steps, $}) {
const data = `Backup successful 😀`
return await axios($, {
method: "post",
url: `${this.ntfy.$auth.server}/test`,
headers: {
"Content-Type": "text/plain"
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
countly: {
type: "app",
app: "countly",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.countly.$auth.server_url}/o/users/me`,
headers: {
"accept": `application/json`,
},
params: {
api_key: `${this.countly.$auth.api_key}`,
},
})
},
})