import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nutrient_workflow_automation: {
type: "app",
app: "nutrient_workflow_automation",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://workflow-trial.on-nutrient.io/api/user/`,
headers: {
Authorization: `Bearer ${this.nutrient_workflow_automation.$auth.oauth_access_token}`,
"accept": `application/json`,
},
params: {
search: `Pipedream`,
},
})
},
})
Nutrient Workflow Automation uses OAuth authentication. When you connect your Nutrient Workflow Automation account, Pipedream will open a popup window where you can sign into Nutrient Workflow Automation and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Nutrient Workflow Automation API.
Pipedream requests the following authorization scopes when you connect your account:
GET
{{custom_fields.api_url}}/api/auth/apikey/{{custom_fields.tenant_id}}/{{custom_fields.api_key}}/impersonate/{{custom_fields.user_name}}
?
setCookies=false
accept: application/json