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

@@ -57,7 +57,7 @@ export async function mailchimpApiRequest(this: IHookFunctions | IExecuteFunctio
options.url = `${api_endpoint}/3.0${endpoint}`;
//@ts-ignore
return await this.helpers.requestOAuth2!.call(this, 'mailchimpOAuth2Api', options, 'Bearer');
return await this.helpers.requestOAuth2!.call(this, 'mailchimpOAuth2Api', options, { tokenType: 'Bearer' });
}
} catch (error) {
if (error.respose && error.response.body && error.response.body.detail) {