Changing the World Through Learning Empower lifelong learners and career growth to drive innovation at your company.
Go to siteDegreed provides an API that lets you access Degreed data and content in order to create new applications and services. Here are some examples of what you can build using the Degreed API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
degreed: {
type: "app",
app: "degreed",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.degreed.$auth.base_url}/api/v2/users/me`,
headers: {
Authorization: `Bearer ${this.degreed.$auth.oauth_access_token}`,
},
})
},
})
Degreed uses OAuth authentication. When you connect your Degreed account, Pipedream will open a popup window where you can sign into Degreed and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Degreed API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://{{custom_fields.base_url}}/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=client_credentials
&
scope={{custom_fields.scopes}}