import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
upbooks: {
type: "app",
app: "upbooks",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.upbooks.io/api/v1/client`,
headers: {
Authorization: `Bearer ${this.upbooks.$auth.oauth_access_token}`,
"API-KEY": `${this.upbooks.$auth.api_key}`,
"Organization-ID": `${this.upbooks.$auth.organization_id}`,
},
})
},
})
Emit new event when fresh data is available for a specific collection.
Creates a new expense category in UpBooks. See the documentation
Records an outward payment in UpBooks. See the documentation
UpBooks uses OAuth authentication. When you connect your UpBooks account, Pipedream will open a popup window where you can sign into UpBooks and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any UpBooks API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.upbooks.io/api/v1/auth/token/bearer
email={{custom_fields.email}}
&
secret={{custom_fields.password}}
POST
https://api.upbooks.io/api/v1/auth/token/bearer
email={{custom_fields.email}}
&
secret={{custom_fields.password}}