import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
planpoint: {
type: "app",
app: "planpoint",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.planpoint.io/api/projects`,
headers: {
"authorization": `${this.planpoint.$auth.oauth_access_token}`,
},
})
},
})
Planpoint uses OAuth authentication. When you connect your Planpoint account, Pipedream will open a popup window where you can sign into Planpoint and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Planpoint API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://app.planpoint.io/api/users/login
username={{custom_fields.email}}
&
password={{custom_fields.password}}
POST
https://app.planpoint.io/api/users/login
username={{custom_fields.email}}
&
password={{custom_fields.password}}