import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
domo: {
type: "app",
app: "domo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.domo.com/v1/users`,
headers: {
Authorization: `Bearer ${this.domo.$auth.oauth_access_token}`,
},
})
},
})
Domo uses OAuth authentication. When you connect your Domo account, Pipedream will open a popup window where you can sign into Domo and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Domo API.
Pipedream requests the following authorization scopes when you connect your account:
data
workflow
user
GET
https://api.domo.com/oauth/token
?
grant_type=client_credentials
accept: application/json
GET
https://api.domo.com/oauth/token
?
grant_type=client_credentials
accept: application/json
grant_type=client_credentials