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:
@@ -173,17 +173,13 @@ export class Mailgun implements INodeType {
|
||||
method: 'POST',
|
||||
formData,
|
||||
uri: `https://${credentials.apiDomain}/v3/${credentials.emailDomain}/messages`,
|
||||
auth: {
|
||||
user: 'api',
|
||||
pass: credentials.apiKey as string,
|
||||
},
|
||||
json: true,
|
||||
};
|
||||
|
||||
let responseData;
|
||||
|
||||
try {
|
||||
responseData = await this.helpers.request(options);
|
||||
responseData = await this.helpers.requestWithAuthentication.call(this, 'mailgunApi', options);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user