Find popular learning activities near you, courses to join, or let yourself be inspired.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
navigatr: {
type: "app",
app: "navigatr",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.navigatr.app/v1/user_detail/0`, //returns current user (user id == 0)
headers: {
Authorization: `Bearer ${this.navigatr.$auth.oauth_access_token}`,
},
})
},
})
Navigatr uses OAuth authentication. When you connect your Navigatr account, Pipedream will open a popup window where you can sign into Navigatr and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Navigatr API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.navigatr.app/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
username={{custom_fields.username}}
&
password={{custom_fields.password}}
POST
https://api.navigatr.app/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
username={{custom_fields.username}}
&
password={{custom_fields.password}}