with Grafana and Ticket Source?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grafana: {
type: "app",
app: "grafana",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.grafana.$auth.domain}/api/org/`,
headers: {
Authorization: `Bearer ${this.grafana.$auth.service_account_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ticket_source: {
type: "app",
app: "ticket_source",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ticketsource.io/events`,
auth: {
username: `${this.ticket_source.$auth.api_key}`,
password: ``,
},
})
},
})