Socket
Socket
Sign inDemoInstall

sib-api-v3-sdk

Package Overview
Dependencies
38
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sib-api-v3-sdk

Official SendinBlue provided RESTFul API V3 nodejs library


Version published
Weekly downloads
27K
increased by1.07%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

SendinBlue's API v3 Node.js 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.

This library is automatically generated by the Swagger Codegen project and is reviewed and maintained by SendinBlue:

  • API version: 3.0.0
  • Package version: 7.x.x
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

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-sdk --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your sib-api-v3-sdk from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('sib-api-v3-sdk') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/sendinblue/APIv3-nodejs-library then install it via:

    npm install sendinblue/APIv3-nodejs-library --save

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var SibApiV3Sdk = 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"

var api = new SibApiV3Sdk.AccountApi()
api.getAccount().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});


Documentation for API Endpoints

All URIs are relative to https://api.sendinblue.com/v3

ClassMethodHTTP requestDescription
SibApiV3Sdk.AccountApigetAccountGET /accountGet your account informations, plans and credits details
SibApiV3Sdk.AttributesApicreateAttributePOST /contacts/attributes/{attributeCategory}/{attributeName}Creates contact attribute
SibApiV3Sdk.AttributesApideleteAttributeDELETE /contacts/attributes/{attributeCategory}/{attributeName}Deletes an attribute
SibApiV3Sdk.AttributesApigetAttributesGET /contacts/attributesLists all attributes
SibApiV3Sdk.AttributesApiupdateAttributePUT /contacts/attributes/{attributeCategory}/{attributeName}Updates contact attribute
SibApiV3Sdk.ContactsApiaddContactToListPOST /contacts/lists/{listId}/contacts/addAdd existing contacts to a list
SibApiV3Sdk.ContactsApicreateAttributePOST /contacts/attributes/{attributeCategory}/{attributeName}Creates contact attribute
SibApiV3Sdk.ContactsApicreateContactPOST /contactsCreate a contact
SibApiV3Sdk.ContactsApicreateFolderPOST /contacts/foldersCreate a folder
SibApiV3Sdk.ContactsApicreateListPOST /contacts/listsCreate a list
SibApiV3Sdk.ContactsApideleteAttributeDELETE /contacts/attributes/{attributeCategory}/{attributeName}Deletes an attribute
SibApiV3Sdk.ContactsApideleteContactDELETE /contacts/{email}Deletes a contact
SibApiV3Sdk.ContactsApideleteFolderDELETE /contacts/folders/{folderId}Delete a folder (and all its lists)
SibApiV3Sdk.ContactsApideleteListDELETE /contacts/lists/{listId}Delete a list
SibApiV3Sdk.ContactsApigetAttributesGET /contacts/attributesLists all attributes
SibApiV3Sdk.ContactsApigetContactInfoGET /contacts/{email}Retrieves contact informations
SibApiV3Sdk.ContactsApigetContactStatsGET /contacts/{email}/campaignStatsGet the campaigns statistics for a contact
SibApiV3Sdk.ContactsApigetContactsGET /contactsGet all the contacts
SibApiV3Sdk.ContactsApigetContactsFromListGET /contacts/lists/{listId}/contactsGet the contacts in a list
SibApiV3Sdk.ContactsApigetFolderGET /contacts/folders/{folderId}Returns folder details
SibApiV3Sdk.ContactsApigetFolderListsGET /contacts/folders/{folderId}/listsGet the lists in a folder
SibApiV3Sdk.ContactsApigetFoldersGET /contacts/foldersGet all the folders
SibApiV3Sdk.ContactsApigetListGET /contacts/lists/{listId}Get the details of a list
SibApiV3Sdk.ContactsApigetListsGET /contacts/listsGet all the lists
SibApiV3Sdk.ContactsApiimportContactsPOST /contacts/importImport contacts
SibApiV3Sdk.ContactsApiremoveContactFromListPOST /contacts/lists/{listId}/contacts/removeRemove existing contacts from a list
SibApiV3Sdk.ContactsApirequestContactExportPOST /contacts/exportExport contacts
SibApiV3Sdk.ContactsApiupdateAttributePUT /contacts/attributes/{attributeCategory}/{attributeName}Updates contact attribute
SibApiV3Sdk.ContactsApiupdateContactPUT /contacts/{email}Updates a contact
SibApiV3Sdk.ContactsApiupdateFolderPUT /contacts/folders/{folderId}Update a contact folder
SibApiV3Sdk.ContactsApiupdateListPUT /contacts/lists/{listId}Update a list
SibApiV3Sdk.EmailCampaignsApicreateEmailCampaignPOST /emailCampaignsCreate an email campaign
SibApiV3Sdk.EmailCampaignsApideleteEmailCampaignDELETE /emailCampaigns/{campaignId}Delete an email campaign
SibApiV3Sdk.EmailCampaignsApiemailExportRecipientsPOST /emailCampaigns/{campaignId}/exportRecipientsExport the recipients of a campaign
SibApiV3Sdk.EmailCampaignsApigetEmailCampaignGET /emailCampaigns/{campaignId}Get campaign informations
SibApiV3Sdk.EmailCampaignsApigetEmailCampaignsGET /emailCampaignsReturn all your created campaigns
SibApiV3Sdk.EmailCampaignsApisendEmailCampaignNowPOST /emailCampaigns/{campaignId}/sendNowSend an email campaign id of the campaign immediately
SibApiV3Sdk.EmailCampaignsApisendReportPOST /emailCampaigns/{campaignId}/sendReportSend the report of a campaigns
SibApiV3Sdk.EmailCampaignsApisendTestEmailPOST /emailCampaigns/{campaignId}/sendTestSend an email campaign to your test list
SibApiV3Sdk.EmailCampaignsApiupdateCampaignStatusPUT /emailCampaigns/{campaignId}/statusUpdate a campaign status
SibApiV3Sdk.EmailCampaignsApiupdateEmailCampaignPUT /emailCampaigns/{campaignId}Update a campaign
SibApiV3Sdk.FoldersApicreateFolderPOST /contacts/foldersCreate a folder
SibApiV3Sdk.FoldersApideleteFolderDELETE /contacts/folders/{folderId}Delete a folder (and all its lists)
SibApiV3Sdk.FoldersApigetFolderGET /contacts/folders/{folderId}Returns folder details
SibApiV3Sdk.FoldersApigetFolderListsGET /contacts/folders/{folderId}/listsGet the lists in a folder
SibApiV3Sdk.FoldersApigetFoldersGET /contacts/foldersGet all the folders
SibApiV3Sdk.FoldersApiupdateFolderPUT /contacts/folders/{folderId}Update a contact folder
SibApiV3Sdk.ListsApiaddContactToListPOST /contacts/lists/{listId}/contacts/addAdd existing contacts to a list
SibApiV3Sdk.ListsApicreateListPOST /contacts/listsCreate a list
SibApiV3Sdk.ListsApideleteListDELETE /contacts/lists/{listId}Delete a list
SibApiV3Sdk.ListsApigetContactsFromListGET /contacts/lists/{listId}/contactsGet the contacts in a list
SibApiV3Sdk.ListsApigetFolderListsGET /contacts/folders/{folderId}/listsGet the lists in a folder
SibApiV3Sdk.ListsApigetListGET /contacts/lists/{listId}Get the details of a list
SibApiV3Sdk.ListsApigetListsGET /contacts/listsGet all the lists
SibApiV3Sdk.ListsApiremoveContactFromListPOST /contacts/lists/{listId}/contacts/removeRemove existing contacts from a list
SibApiV3Sdk.ListsApiupdateListPUT /contacts/lists/{listId}Update a list
SibApiV3Sdk.ProcessApigetProcessGET /processes/{processId}Return the informations for a process
SibApiV3Sdk.ProcessApigetProcessesGET /processesReturn all the processes for your account
SibApiV3Sdk.ResellerApiaddCreditsPOST /reseller/children/{childAuthKey}/credits/addAdd Email and/or SMS credits to a specific child account
SibApiV3Sdk.ResellerApiassociateIpToChildPOST /reseller/children/{childAuthKey}/ips/associateAssociate a dedicated IP to the child
SibApiV3Sdk.ResellerApicreateResellerChildPOST /reseller/childrenCreates a reseller child
SibApiV3Sdk.ResellerApideleteResellerChildDELETE /reseller/children/{childAuthKey}Deletes a single reseller child based on the childAuthKey supplied
SibApiV3Sdk.ResellerApidissociateIpFromChildPOST /reseller/children/{childAuthKey}/ips/dissociateDissociate a dedicated IP to the child
SibApiV3Sdk.ResellerApigetChildInfoGET /reseller/children/{childAuthKey}Gets the info about a specific child account
SibApiV3Sdk.ResellerApigetResellerChildsGET /reseller/childrenGets the list of all reseller's children accounts
SibApiV3Sdk.ResellerApiremoveCreditsPOST /reseller/children/{childAuthKey}/credits/removeRemove Email and/or SMS credits from a specific child account
SibApiV3Sdk.ResellerApiupdateResellerChildPUT /reseller/children/{childAuthKey}Updates infos of reseller's child based on the childAuthKey supplied
SibApiV3Sdk.SMSCampaignsApicreateSmsCampaignPOST /smsCampaignsCreates an SMS campaign
SibApiV3Sdk.SMSCampaignsApideleteSmsCampaignDELETE /smsCampaigns/{campaignId}Delete the SMS campaign
SibApiV3Sdk.SMSCampaignsApigetSmsCampaignGET /smsCampaigns/{campaignId}Get an SMS campaign
SibApiV3Sdk.SMSCampaignsApigetSmsCampaignsGET /smsCampaignsReturns the informations for all your created SMS campaigns
SibApiV3Sdk.SMSCampaignsApirequestSmsRecipientExportPOST /smsCampaigns/{campaignId}/exportRecipientsExports the recipients of the specified campaign.
SibApiV3Sdk.SMSCampaignsApisendSmsCampaignNowPOST /smsCampaigns/{campaignId}/sendNowSend your SMS campaign immediately
SibApiV3Sdk.SMSCampaignsApisendSmsReportPOST /smsCampaigns/{campaignId}/sendReportSend report of SMS campaigns
SibApiV3Sdk.SMSCampaignsApisendTestSmsPOST /smsCampaigns/{campaignId}/sendTestSend an SMS
SibApiV3Sdk.SMSCampaignsApiupdateSmsCampaignPUT /smsCampaigns/{campaignId}Updates an SMS campaign
SibApiV3Sdk.SMSCampaignsApiupdateSmsCampaignStatusPUT /smsCampaigns/{campaignId}/statusUpdate the campaign status
SibApiV3Sdk.SMTPApicreateSmtpTemplatePOST /smtp/templatesCreate an smtp template
SibApiV3Sdk.SMTPApideleteHardbouncesPOST /smtp/deleteHardbouncesDelete hardbounces
SibApiV3Sdk.SMTPApideleteSmtpTemplateDELETE /smtp/templates/{templateId}Delete an inactive smtp template
SibApiV3Sdk.SMTPApigetAggregatedSmtpReportGET /smtp/statistics/aggregatedReportGet your SMTP activity aggregated over a period of time
SibApiV3Sdk.SMTPApigetEmailEventReportGET /smtp/statistics/eventsGet all your SMTP activity (unaggregated events)
SibApiV3Sdk.SMTPApigetSmtpReportGET /smtp/statistics/reportsGet your SMTP activity aggregated per day
SibApiV3Sdk.SMTPApigetSmtpTemplateGET /smtp/templates/{templateId}Returns the template informations
SibApiV3Sdk.SMTPApigetSmtpTemplatesGET /smtp/templatesGet the list of SMTP templates
SibApiV3Sdk.SMTPApisendTemplatePOST /smtp/templates/{templateId}/sendSend a template
SibApiV3Sdk.SMTPApisendTestTemplatePOST /smtp/templates/{templateId}/sendTestSend a template to your test list
SibApiV3Sdk.SMTPApisendTransacEmailPOST /smtp/emailSend a transactional email
SibApiV3Sdk.SMTPApiupdateSmtpTemplatePUT /smtp/templates/{templateId}Updates an smtp templates
SibApiV3Sdk.SendersApicreateSenderPOST /sendersCreate a new sender
SibApiV3Sdk.SendersApideleteSenderDELETE /senders/{senderId}Delete a sender
SibApiV3Sdk.SendersApigetIpsGET /senders/ipsReturn all the dedicated IPs for your account
SibApiV3Sdk.SendersApigetIpsFromSenderGET /senders/{senderId}/ipsReturn all the dedicated IPs for a sender
SibApiV3Sdk.SendersApigetSendersGET /sendersGet the list of all your senders
SibApiV3Sdk.SendersApiupdateSenderPUT /senders/{senderId}Update a sender
SibApiV3Sdk.TransactionalSMSApigetSmsEventsGET /transactionalSMS/statistics/eventsGet all the SMS activity (unaggregated events)
SibApiV3Sdk.TransactionalSMSApigetTransacAggregatedSmsReportGET /transactionalSMS/statistics/aggregatedReportGet your SMS activity aggregated over a period of time
SibApiV3Sdk.TransactionalSMSApigetTransacSmsReportGET /transactionalSMS/statistics/reportsGet your SMS activity aggregated per day
SibApiV3Sdk.TransactionalSMSApisendTransacSmsPOST /transactionalSMS/smsSend the SMS campaign to the specified mobile number
SibApiV3Sdk.WebhooksApicreateWebhookPOST /webhooksCreate a webhook
SibApiV3Sdk.WebhooksApideleteWebhookDELETE /webhooks/{webhookId}Delete a webhook
SibApiV3Sdk.WebhooksApigetWebhookGET /webhooks/{webhookId}Get a webhook details
SibApiV3Sdk.WebhooksApigetWebhooksGET /webhooksGet all webhooks
SibApiV3Sdk.WebhooksApiupdateWebhookPUT /webhooks/{webhookId}Update a webhook

Documentation for Models

Documentation for Authorization

api-key

  • Type: API key
  • API key parameter name: api-key
  • Location: HTTP header

Support and Feedback

Be sure to visit the SendinBlue official documentation website for additional information about our API.

If you find a bug, please post the issue on Github.

As always, if you need additional assistance, drop us a note here.

Keywords

FAQs

Last updated on 24 May 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc