with Revolt and Nutrient Document Web Services API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
revolt: {
type: "app",
app: "revolt",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.revolt.$auth.environment}/auth/account/`,
headers: {
"x-session-token": `${this.revolt.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nutrient_document_web_services_api: {
type: "app",
app: "nutrient_document_web_services_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.nutrient.io/account/info`,
headers: {
Authorization: `Bearer ${this.nutrient_document_web_services_api.$auth.api_key}`,
},
})
},
})