with The Official Board and PromptHub?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_official_board: {
type: "app",
app: "the_official_board",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.theofficialboard.com/rest/test/token`,
headers: {
"accept": `application/json`,
"token": `${this.the_official_board.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
prompthub: {
type: "app",
app: "prompthub",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.prompthub.us/api/v1/me`,
headers: {
Authorization: `Bearer ${this.prompthub.$auth.api_token}`,
},
})
},
})