Reuse trigger and target on Zendesk-Trigger (#767)

*  Reuse trigger and target on Zendesk-Trigger

* 🐛 Fix bug
This commit is contained in:
Ricardo Espinoza
2020-08-25 15:50:13 -04:00
committed by GitHub
parent b78145f2ec
commit e3e39c4f62
2 changed files with 83 additions and 12 deletions

View File

@@ -43,6 +43,8 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
options.uri = `https://${credentials.subdomain}.zendesk.com/api/v2${resource}.json`;
options.headers!['Authorization'] = `Basic ${base64Key}`;
//console.log(options);
return await this.helpers.request!(options);
} else {
const credentials = this.getCredentials('zendeskOAuth2Api');