FranConnect is the leading enterprise software provider for franchise and multi-location businesses
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
franconnect: {
type: "app",
app: "franconnect",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `${this.franconnect.$auth.api_uri}/rest/dataservices/module?responseType=JSON`,
headers: {
Authorization: `Bearer ${this.franconnect.$auth.oauth_access_token}`,
},
})
},
})
FranConnect uses OAuth authentication. When you connect your FranConnect account, Pipedream will open a popup window where you can sign into FranConnect and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any FranConnect API.
Pipedream requests the following authorization scopes when you connect your account:
POST
{{custom_fields.token_uri}}
?
X-TenantID=developers.franconnectdemo.net
random-header: random value
grant_type=client_credentials
POST
{{custom_fields.token_uri}}
?
X-TenantID={{custom_fields.tenant_id}}
random-header: random value
grant_type=client_credentials