with PingOne and OTO?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pingone: {
type: "app",
app: "pingone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://auth.pingone.com/${this.pingone.$auth.environment_id}/as/userinfo`,
headers: {
Authorization: `Bearer ${this.pingone.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
oto: {
type: "app",
app: "oto",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.oto.$auth.api_url}/rest/v2/accountInfo`,
headers: {
Authorization: `Bearer ${this.oto.$auth.oauth_access_token}`,
},
})
},
})