The Real-time Cloud Accounting Software Platform. Meet SoftLedger - the cloud accounting software that empowers your growing company to operate more efficiently and make smarter decisions.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
softledger: {
type: "app",
app: "softledger",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.softledger.com/api/locations/me`,
headers: {
Authorization: `Bearer ${this.softledger.$auth.oauth_access_token}`,
},
})
},
})
SoftLedger uses OAuth authentication. When you connect your SoftLedger account, Pipedream will open a popup window where you can sign into SoftLedger and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any SoftLedger API.
Pipedream requests the following authorization scopes when you connect your account:
do not use
POST
https://{{custom_fields.endpoint}}.accounting-auth.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=client_credentials
&
audience={{custom_fields.audience}}
&
tenantUUID={{custom_fields.tenant_uuid}}
&
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
POST
https://{{custom_fields.endpoint}}.accounting-auth.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=client_credentials
&
audience={{custom_fields.audience}}
&
tenantUUID={{custom_fields.tenant_uuid}}
&
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}