You can use the bexio API to build a wide variety of applications and integrations. Some examples include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bexio: {
type: "app",
app: "bexio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://office.bexio.com/api2.php/${this.bexio.$auth.oauth_uid}/company_profile`,
headers: {
Authorization: `Bearer ${this.bexio.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})
bexio uses OAuth authentication. When you connect your bexio account, Pipedream will open a popup window where you can sign into bexio and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any bexio API.
Pipedream requests the following authorization scopes when you connect your account:
article_show
article_edit
contact_show
contact_edit
kb_invoice_show
kb_invoice_edit
kb_offer_show
kb_offer_edit
kb_order_show
kb_order_edit
monitoring_show
monitoring_edit
project_show
project_edit
note_show
note_edit
task_show
task_edit
GET
https://office.bexio.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
scope={{oauth.space_separated_scopes}}
POST
https://office.bexio.com/oauth/access_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
code={{oauth.code}}
POST
https://office.bexio.com/oauth/refresh_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
refresh_token={{oauth.refresh_token}}