Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
sib-api-v3-typescript
Advanced tools
SendinBlue's API v3 TypeScript-Node Library
SendinBlue's API exposes the entire SendinBlue features via a standardized programmatic interface. Please refer to the full documentation to learn more.
This is the wrapper for the API. It implements all the features of the API v3. It supports promises.
SendinBlue's API matches the OpenAPI v2 definition. The specification can be downloaded here.
The following recommended installation requires npm. If you are unfamiliar with npm, see the npm docs.
Then install it via:
npm install sib-api-v3-typescript --save
Once you have installed the node module in your project, you can execute the following sample code JS code :
const SibApiV3Sdk = require('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"
apiInstance.getAccount().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
const SibApiV3Sdk = require('sib-api-v3-typescript');
let apiInstance = new SibApiV3Sdk.ContactsApi()
// Configure API key authorization: apiKey
let apiKey = apiInstance.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
let limit = 10; // Number | Number of documents per page
let offset = 0; // Number | Index of the first document of the page
apiInstance.getLists(limit, offset).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
apiInstance.getAttributes().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
}, function(error) {
console.error(error);
});
For more examples, refer the Endpoints Guide
FAQs
NodeJS client for sib-api-v3-typescript
The npm package sib-api-v3-typescript receives a total of 3,938 weekly downloads. As such, sib-api-v3-typescript popularity was classified as popular.
We found that sib-api-v3-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.