with Ayrshare and Nutrient Workflow Automation?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ayrshare: {
type: "app",
app: "ayrshare",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.ayrshare.com/api/user`,
headers: {
Authorization: `Bearer ${this.ayrshare.$auth.api_key}`,
},
})
},
})
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`,
},
})
},
})