mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Add Organization resource to Zendesk node (#2152)
* Added Organization options. Create, Update, Get, GetAll, Delete, Count and Related * Fixed Zendesk Node user alias typo * Updated Zendesk documentation links for future maintainers * Added Related for Users in Zendesk Node * Added fetching organizations for users * 🔨 Refactor Zendesk expansion * ⚡ Improvements Co-authored-by: Jonathan <jonathan.bennetts@gmail.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
@@ -33,7 +33,6 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
|
||||
if (Object.keys(options.body).length === 0) {
|
||||
delete options.body;
|
||||
}
|
||||
|
||||
try {
|
||||
if (authenticationMethod === 'apiToken') {
|
||||
const credentials = await this.getCredentials('zendeskApi');
|
||||
@@ -45,7 +44,6 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
|
||||
const base64Key = Buffer.from(`${credentials.email}/token:${credentials.apiToken}`).toString('base64');
|
||||
options.uri = `https://${credentials.subdomain}.zendesk.com/api/v2${resource}.json`;
|
||||
options.headers!['Authorization'] = `Basic ${base64Key}`;
|
||||
|
||||
return await this.helpers.request!(options);
|
||||
} else {
|
||||
const credentials = await this.getCredentials('zendeskOAuth2Api');
|
||||
|
||||
Reference in New Issue
Block a user