Open
Description
Hello,
its me again, i have a problem with the programmatic-style node tutorial, 2 on 3 imports are outdated.
import {
IExecuteFunctions,
} from 'n8n-core';
import {
OptionsWithUri,
} from 'request';
I found that the first one is changed by n8n-workflow, but what about the second ? and how i should change the code in the exemple to match the right import :
// Make HTTP request according to https://sendgrid.com/docs/api-reference/
const options: OptionsWithUri = {
headers: {
'Accept': 'application/json',
},
method: 'PUT',
body: {
contacts: [
data,
],
},
uri: `https://api.sendgrid.com/v3/marketing/contacts`,
json: true,
};
responseData = await this.helpers.requestWithAuthentication.call(this, 'friendGridApi', options);
returnData.push(responseData);
}
Thanks by advance !
Metadata
Metadata
Assignees
Labels
No labels