with EducateMe and Monica CRM?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
educateme: {
type: "app",
app: "educateme",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.educateme.$auth.api_url}/courses`,
headers: {
"api-key": `${this.educateme.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
monica_crm: {
type: "app",
app: "monica_crm",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.monica_crm.$auth.server_url}/api/me`,
headers: {
Authorization: `Bearer ${this.monica_crm.$auth.oauth_access_token}`,
},
})
},
})