with Motive and Auth0 (Management API)?
Retrieve user details based on specific criteria. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
motive: {
type: "app",
app: "motive",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gomotive.com/v1/users`,
headers: {
Authorization: `Bearer ${this.motive.$auth.oauth_access_token}`,
},
})
},
})
The Auth0 Management API can be used to create, read, update,
and delete users, as well as to query for them. Additionally, you can
use the Management API to change user passwords, add and remove user roles,
link and unlink user accounts, and more. For more information, see the Auth0 Management API documentation here
// In order to use the example request below, please ensure that you have the scope
// `read:users` on your application.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
auth0_management_api: {
type: "app",
app: "auth0_management_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.auth0_management_api.$auth.domain}/api/v2/users`,
headers: {
Authorization: `Bearer ${this.auth0_management_api.$auth.oauth_access_token}`,
},
})
},
})