-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
The following throws an error: Property 'authentications' is protected and only accessible within class 'AccountApi' and its subclasses.
import SibApiV3Sdk from 'sib-api-v3-typescript';
let apiInstance = new SibApiV3Sdk.AccountApi()
// Configure API key authorization: api-key
let apiKey = apiInstance.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
What works for me is the following:
import SibApiV3Sdk from 'sib-api-v3-typescript';
let apiInstance = new SibApiV3Sdk.AccountApi()
// Configure API key authorization: api-key
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, '<put your api key here>');
DerBasler
Metadata
Metadata
Assignees
Labels
No labels