mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user