import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sage_intacct: {
type: "app",
app: "sage_intacct",
}
},
async run({steps, $}) {
return this.sage_intacct.$auth.session_id;
},
})
Sage Intacct uses OAuth authentication. When you connect your Sage Intacct account, Pipedream will open a popup window where you can sign into Sage Intacct and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Sage Intacct API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.intacct.com/ia/xml/xmlgw.phtml
accept: application/xml
companyId={{custom_fields.company_id}}
&
endpointUrl={{custom_fields.endpoint_url}}
&
senderId={{custom_fields.sender_id}}
&
senderPassword={{custom_fields.senderPassword}}
&
userId={{custom_fields.user_id}}
&
userPassword={{custom_fields.user_password}}
POST
https://api.intacct.com/ia/xml/xmlgw.phtml
accept: application/xml
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}