with Globalping and Documenterra?
Exports an existing publication to a user-selected format. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
globalping: {
type: "app",
app: "globalping",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.globalping.io/v1/limits`,
headers: {
Authorization: `Bearer ${this.globalping.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
documenterra: {
type: "app",
app: "documenterra",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.documenterra.$auth.portal_url}/api/v1/users`,
auth: {
username: `${this.documenterra.$auth.email}`,
password: `${this.documenterra.$auth.api_key}`,
},
})
},
})