So i am trying to use this sendinblue
API. It gets installed, the documentation says i need to link it to my project so i go to the package directory, the run npm link
and then i go to the folder i wanna use it from and run npm link sib-api-v3-sdk
which results in an error that is in the title.
i tried doing it the other way around, that doesn't work either. i am not using webpack.
var SibV3ApiSdk = require("sib-api-v3-sdk")
var defaultClient = SibApiV3Sdk.ApiClient.instance;
// Configure API key authorization: api-key
var apiKey = defaultClient.authentications['api-key'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['api-key'] = "Token"
// Configure API key authorization: partner-key
var partnerKey = defaultClient.authentications['partner-key'];
partnerKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.apiKeyPrefix['partner-key'] = "Token"
var api = new SibApiV3Sdk.AccountApi()
api.getAccount().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});