Box Node and Trigger (#765)

*  Box Node and Trigger

*  Improvements

*  small fix

* 🐛 Add missing interface

*   add search operation
This commit is contained in:
Ricardo Espinoza
2020-07-25 13:58:38 -04:00
committed by GitHub
parent a5dd08fdbb
commit 8370940713
14 changed files with 1916 additions and 29 deletions

View File

@@ -45,7 +45,7 @@ export async function hubspotApiRequest(this: IHookFunctions | IExecuteFunctions
return await this.helpers.request!(options);
} else {
// @ts-ignore
return await this.helpers.requestOAuth2!.call(this, 'hubspotOAuth2Api', options, 'Bearer');
return await this.helpers.requestOAuth2!.call(this, 'hubspotOAuth2Api', options, { tokenType: 'Bearer' });
}
} catch (error) {
let errorMessages;