import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
invoicing_plus: {
type: "app",
app: "invoicing_plus",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.invoicing.plus/v1/who-i-am`,
headers: {
Authorization: `Bearer ${this.invoicing_plus.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
Invoicing.Plus uses OAuth authentication. When you connect your Invoicing.Plus account, Pipedream will open a popup window where you can sign into Invoicing.Plus and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Invoicing.Plus API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.invoicing.plus/v1/token
accept: application/json
email={{custom_fields.email}}
&
password={{custom_fields.password}}
POST
https://api.invoicing.plus/v1/token
accept: application/json
email={{custom_fields.email}}
&
password={{custom_fields.password}}