with Nmbrs and Pinghome?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nmbrs: {
type: "app",
app: "nmbrs",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.nmbrsapp.com/api/user/info`,
headers: {
Authorization: `Bearer ${this.nmbrs.$auth.oauth_access_token}`,
"x-subscription-key": `${this.nmbrs.$auth.subscription_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pinghome: {
type: "app",
app: "pinghome",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://statuspage-query.api.pinghome.io/v1/statuspages`,
headers: {
Authorization: `Bearer ${this.pinghome.$auth.oauth_access_token}`,
},
})
},
})