with Claris FileMaker Server - Admin API and D2L Brightspace?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
claris_filemaker_server_admin_api: {
type: "app",
app: "claris_filemaker_server_admin_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.claris_filemaker_server_admin_api.$auth.api_url}/fmi/admin/api/v2/databases`,
headers: {
Authorization: `Bearer ${this.claris_filemaker_server_admin_api.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
d2l_brightspace: {
type: "app",
app: "d2l_brightspace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.d2l_brightspace.$auth.target_host}/d2l/api/lp/1.0/users/whoami`,
headers: {
Authorization: `Bearer ${this.d2l_brightspace.$auth.oauth_access_token}`,
},
})
},
})