import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gotify: {
type: "app",
app: "gotify",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.gotify.$auth.api_url}/current/user`,
headers: {
"x-gotify-key": `${this.gotify.$auth.api_key}`,
},
})
},
})
Gotify uses API keys for authentication. When you connect your Gotify account, Pipedream securely stores the keys so you can easily authenticate to Gotify APIs in both code and no-code steps.