N8N-4126 credentials injection and testing on specific nodes (#3816)

* Add credential injection and testing to Lemlist, Uproc, Supabase, Segment, Phantombuster, Mailgun and Dropcontact
This commit is contained in:
agobrech
2022-08-24 10:26:48 +02:00
committed by GitHub
parent 5285fc1de6
commit 76f9ad8bae
15 changed files with 167 additions and 114 deletions

View File

@@ -18,7 +18,6 @@ export async function phantombusterApiRequest(
const options: OptionsWithUri = {
headers: {
'X-Phantombuster-Key': credentials.apiKey,
},
method,
body,
@@ -31,7 +30,7 @@ export async function phantombusterApiRequest(
delete options.body;
}
//@ts-ignore
return await this.helpers.request.call(this, options);
return await this.helpers.requestWithAuthentication.call(this, 'phantombusterApi',options);
} catch (error) {
throw new NodeApiError(this.getNode(), error);
}