Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download
aakanksha-sib Merge pull request #34 from sendinblue/feature_updated_swagger_sync
Swagger resync for new transactional email api endpoints
Latest commit cc74e85 Jul 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.swagger-codegen
docs Swagger resync for new transactional email api endpoints Jun 26, 2019
lib Swagger resync for new transactional email api endpoints Jun 26, 2019
spec Swagger resync for new transactional email api endpoints Jun 26, 2019
.gitignore Initial release of SendinBlue API V3 Ruby Package Sep 7, 2017
.rspec Initial release of SendinBlue API V3 Ruby Package Sep 7, 2017
.swagger-codegen-ignore
Gemfile Initial release of SendinBlue API V3 Ruby Package Sep 7, 2017
LICENSE.md Swagger updates for sms api Jan 10, 2019
README.md Swagger resync for new transactional email api endpoints Jun 26, 2019
Rakefile
sib-api-v3-sdk.gemspec swagger sync: updates related to contacts api and some other parameters Feb 5, 2018

README.md

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

SendinBlue's API matches the OpenAPI v2 definition. The specification can be downloaded here.

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

  • API version: 3.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

For more information, please visit https://account.sendinblue.com/support

Installation

Build a gem

Add this line to your application's Gemfile:

gem 'sib-api-v3-sdk'

And then execute:

$ bundle

Or install it yourself as:

$ ( sudo ) gem install sib-api-v3-sdk

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'sib-api-v3-sdk', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'sib-api-v3-sdk'

# Setup authorization
SibApiV3Sdk.configure do |config|
  # Configure API key authorization: api-key
  config.api_key['api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api-key'] = 'Bearer'

  # Configure API key authorization: partner-key
  config.api_key['partner-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['partner-key'] = 'Bearer'
end

api_instance = SibApiV3Sdk::AccountApi.new

begin
  #Get your account informations, plans and credits details
  result = api_instance.get_account
  p result
rescue SibApiV3Sdk::ApiError => e
  puts "Exception when calling AccountApi->get_account: #{e}"
end

Documentation for API Endpoints

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

Class Method HTTP request Description
SibApiV3Sdk::AccountApi get_account GET /account Get your account informations, plans and credits details
SibApiV3Sdk::AttributesApi create_attribute POST /contacts/attributes/{attributeCategory}/{attributeName} Creates contact attribute
SibApiV3Sdk::AttributesApi delete_attribute DELETE /contacts/attributes/{attributeCategory}/{attributeName} Deletes an attribute
SibApiV3Sdk::AttributesApi get_attributes GET /contacts/attributes Lists all attributes
SibApiV3Sdk::AttributesApi update_attribute PUT /contacts/attributes/{attributeCategory}/{attributeName} Updates contact attribute
SibApiV3Sdk::ContactsApi add_contact_to_list POST /contacts/lists/{listId}/contacts/add Add existing contacts to a list
SibApiV3Sdk::ContactsApi create_attribute POST /contacts/attributes/{attributeCategory}/{attributeName} Creates contact attribute
SibApiV3Sdk::ContactsApi create_contact POST /contacts Create a contact
SibApiV3Sdk::ContactsApi create_folder POST /contacts/folders Create a folder
SibApiV3Sdk::ContactsApi create_list POST /contacts/lists Create a list
SibApiV3Sdk::ContactsApi delete_attribute DELETE /contacts/attributes/{attributeCategory}/{attributeName} Deletes an attribute
SibApiV3Sdk::ContactsApi delete_contact DELETE /contacts/{email} Deletes a contact
SibApiV3Sdk::ContactsApi delete_folder DELETE /contacts/folders/{folderId} Delete a folder (and all its lists)
SibApiV3Sdk::ContactsApi delete_list DELETE /contacts/lists/{listId} Delete a list
SibApiV3Sdk::ContactsApi get_attributes GET /contacts/attributes Lists all attributes
SibApiV3Sdk::ContactsApi get_contact_info GET /contacts/{email} Retrieves contact informations
SibApiV3Sdk::ContactsApi get_contact_stats GET /contacts/{email}/campaignStats Get the campaigns statistics for a contact
SibApiV3Sdk::ContactsApi get_contacts GET /contacts Get all the contacts
SibApiV3Sdk::ContactsApi get_contacts_from_list GET /contacts/lists/{listId}/contacts Get the contacts in a list
SibApiV3Sdk::ContactsApi get_folder GET /contacts/folders/{folderId} Returns folder details
SibApiV3Sdk::ContactsApi get_folder_lists GET /contacts/folders/{folderId}/lists Get the lists in a folder
SibApiV3Sdk::ContactsApi get_folders GET /contacts/folders Get all the folders
SibApiV3Sdk::ContactsApi get_list GET /contacts/lists/{listId} Get the details of a list
SibApiV3Sdk::ContactsApi get_lists GET /contacts/lists Get all the lists
SibApiV3Sdk::ContactsApi import_contacts POST /contacts/import Import contacts
SibApiV3Sdk::ContactsApi remove_contact_from_list POST /contacts/lists/{listId}/contacts/remove Remove existing contacts from a list
SibApiV3Sdk::ContactsApi request_contact_export POST /contacts/export Export contacts
SibApiV3Sdk::ContactsApi update_attribute PUT /contacts/attributes/{attributeCategory}/{attributeName} Updates contact attribute
SibApiV3Sdk::ContactsApi update_contact PUT /contacts/{email} Updates a contact
SibApiV3Sdk::ContactsApi update_folder PUT /contacts/folders/{folderId} Update a contact folder
SibApiV3Sdk::ContactsApi update_list PUT /contacts/lists/{listId} Update a list
SibApiV3Sdk::EmailCampaignsApi create_email_campaign POST /emailCampaigns Create an email campaign
SibApiV3Sdk::EmailCampaignsApi delete_email_campaign DELETE /emailCampaigns/{campaignId} Delete an email campaign
SibApiV3Sdk::EmailCampaignsApi email_export_recipients POST /emailCampaigns/{campaignId}/exportRecipients Export the recipients of a campaign
SibApiV3Sdk::EmailCampaignsApi get_email_campaign GET /emailCampaigns/{campaignId} Get campaign informations
SibApiV3Sdk::EmailCampaignsApi get_email_campaigns GET /emailCampaigns Return all your created campaigns
SibApiV3Sdk::EmailCampaignsApi send_email_campaign_now POST /emailCampaigns/{campaignId}/sendNow Send an email campaign id of the campaign immediately
SibApiV3Sdk::EmailCampaignsApi send_report POST /emailCampaigns/{campaignId}/sendReport Send the report of a campaigns
SibApiV3Sdk::EmailCampaignsApi send_test_email POST /emailCampaigns/{campaignId}/sendTest Send an email campaign to your test list
SibApiV3Sdk::EmailCampaignsApi update_campaign_status PUT /emailCampaigns/{campaignId}/status Update a campaign status
SibApiV3Sdk::EmailCampaignsApi update_email_campaign PUT /emailCampaigns/{campaignId} Update a campaign
SibApiV3Sdk::FoldersApi create_folder POST /contacts/folders Create a folder
SibApiV3Sdk::FoldersApi delete_folder DELETE /contacts/folders/{folderId} Delete a folder (and all its lists)
SibApiV3Sdk::FoldersApi get_folder GET /contacts/folders/{folderId} Returns folder details
SibApiV3Sdk::FoldersApi get_folder_lists GET /contacts/folders/{folderId}/lists Get the lists in a folder
SibApiV3Sdk::FoldersApi get_folders GET /contacts/folders Get all the folders
SibApiV3Sdk::FoldersApi update_folder PUT /contacts/folders/{folderId} Update a contact folder
SibApiV3Sdk::ListsApi add_contact_to_list POST /contacts/lists/{listId}/contacts/add Add existing contacts to a list
SibApiV3Sdk::ListsApi create_list POST /contacts/lists Create a list
SibApiV3Sdk::ListsApi delete_list DELETE /contacts/lists/{listId} Delete a list
SibApiV3Sdk::ListsApi get_contacts_from_list GET /contacts/lists/{listId}/contacts Get the contacts in a list
SibApiV3Sdk::ListsApi get_folder_lists GET /contacts/folders/{folderId}/lists Get the lists in a folder
SibApiV3Sdk::ListsApi get_list GET /contacts/lists/{listId} Get the details of a list
SibApiV3Sdk::ListsApi get_lists GET /contacts/lists Get all the lists
SibApiV3Sdk::ListsApi remove_contact_from_list POST /contacts/lists/{listId}/contacts/remove Remove existing contacts from a list
SibApiV3Sdk::ListsApi update_list PUT /contacts/lists/{listId} Update a list
SibApiV3Sdk::ProcessApi get_process GET /processes/{processId} Return the informations for a process
SibApiV3Sdk::ProcessApi get_processes GET /processes Return all the processes for your account
SibApiV3Sdk::ResellerApi add_credits POST /reseller/children/{childAuthKey}/credits/add Add Email and/or SMS credits to a specific child account
SibApiV3Sdk::ResellerApi associate_ip_to_child POST /reseller/children/{childAuthKey}/ips/associate Associate a dedicated IP to the child
SibApiV3Sdk::ResellerApi create_child_domain POST /reseller/children/{childAuthKey}/domains Creates a domain for a child account
SibApiV3Sdk::ResellerApi create_reseller_child POST /reseller/children Creates a reseller child
SibApiV3Sdk::ResellerApi delete_child_domain DELETE /reseller/children/{childAuthKey}/domains/{domainName} Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
SibApiV3Sdk::ResellerApi delete_reseller_child DELETE /reseller/children/{childAuthKey} Deletes a single reseller child based on the childAuthKey supplied
SibApiV3Sdk::ResellerApi dissociate_ip_from_child POST /reseller/children/{childAuthKey}/ips/dissociate Dissociate a dedicated IP to the child
SibApiV3Sdk::ResellerApi get_child_domains GET /reseller/children/{childAuthKey}/domains Gets all the sender domains of a specific child account
SibApiV3Sdk::ResellerApi get_child_info GET /reseller/children/{childAuthKey} Gets the info about a specific child account
SibApiV3Sdk::ResellerApi get_reseller_childs GET /reseller/children Gets the list of all reseller's children accounts
SibApiV3Sdk::ResellerApi get_sso_token GET /reseller/children/{childAuthKey}/auth Get session token to access Sendinblue (SSO)
SibApiV3Sdk::ResellerApi remove_credits POST /reseller/children/{childAuthKey}/credits/remove Remove Email and/or SMS credits from a specific child account
SibApiV3Sdk::ResellerApi update_child_account_status PUT /reseller/children/{childAuthKey}/accountStatus Updates infos of reseller's child account status based on the childAuthKey supplied
SibApiV3Sdk::ResellerApi update_child_domain PUT /reseller/children/{childAuthKey}/domains/{domainName} Updates the sender domain of reseller's child based on the childAuthKey and domainName passed
SibApiV3Sdk::ResellerApi update_reseller_child PUT /reseller/children/{childAuthKey} Updates infos of reseller's child based on the childAuthKey supplied
SibApiV3Sdk::SMSCampaignsApi create_sms_campaign POST /smsCampaigns Creates an SMS campaign
SibApiV3Sdk::SMSCampaignsApi delete_sms_campaign DELETE /smsCampaigns/{campaignId} Delete the SMS campaign
SibApiV3Sdk::SMSCampaignsApi get_sms_campaign GET /smsCampaigns/{campaignId} Get an SMS campaign
SibApiV3Sdk::SMSCampaignsApi get_sms_campaigns GET /smsCampaigns Returns the informations for all your created SMS campaigns
SibApiV3Sdk::SMSCampaignsApi request_sms_recipient_export POST /smsCampaigns/{campaignId}/exportRecipients Exports the recipients of the specified campaign.
SibApiV3Sdk::SMSCampaignsApi send_sms_campaign_now POST /smsCampaigns/{campaignId}/sendNow Send your SMS campaign immediately
SibApiV3Sdk::SMSCampaignsApi send_sms_report POST /smsCampaigns/{campaignId}/sendReport Send report of SMS campaigns
SibApiV3Sdk::SMSCampaignsApi send_test_sms POST /smsCampaigns/{campaignId}/sendTest Send an SMS
SibApiV3Sdk::SMSCampaignsApi update_sms_campaign PUT /smsCampaigns/{campaignId} Updates an SMS campaign
SibApiV3Sdk::SMSCampaignsApi update_sms_campaign_status PUT /smsCampaigns/{campaignId}/status Update the campaign status
SibApiV3Sdk::SMTPApi create_smtp_template POST /smtp/templates Create a transactional email template
SibApiV3Sdk::SMTPApi delete_hardbounces POST /smtp/deleteHardbounces Delete hardbounces
SibApiV3Sdk::SMTPApi delete_smtp_template DELETE /smtp/templates/{templateId} Delete an inactive transactional email template
SibApiV3Sdk::SMTPApi get_aggregated_smtp_report GET /smtp/statistics/aggregatedReport Get your transactional email activity aggregated over a period of time
SibApiV3Sdk::SMTPApi get_email_event_report GET /smtp/statistics/events Get all your transactional email activity (unaggregated events)
SibApiV3Sdk::SMTPApi get_smtp_report GET /smtp/statistics/reports Get your transactional email activity aggregated per day
SibApiV3Sdk::SMTPApi get_smtp_template GET /smtp/templates/{templateId} Returns the template informations
SibApiV3Sdk::SMTPApi get_smtp_templates GET /smtp/templates Get the list of transactional email templates
SibApiV3Sdk::SMTPApi get_transac_email_content GET /smtp/emails/{uuid} Get the personalized content of a sent transactional email
SibApiV3Sdk::SMTPApi get_transac_emails_list GET /smtp/emails Get the list of transactional emails on the basis of allowed filters
SibApiV3Sdk::SMTPApi send_template POST /smtp/templates/{templateId}/send Send a template
SibApiV3Sdk::SMTPApi send_test_template POST /smtp/templates/{templateId}/sendTest Send a template to your test list
SibApiV3Sdk::SMTPApi send_transac_email POST /smtp/email Send a transactional email
SibApiV3Sdk::SMTPApi update_smtp_template PUT /smtp/templates/{templateId} Updates a transactional email templates
SibApiV3Sdk::SendersApi create_sender POST /senders Create a new sender
SibApiV3Sdk::SendersApi delete_sender DELETE /senders/{senderId} Delete a sender
SibApiV3Sdk::SendersApi get_ips GET /senders/ips Return all the dedicated IPs for your account
SibApiV3Sdk::SendersApi get_ips_from_sender GET /senders/{senderId}/ips Return all the dedicated IPs for a sender
SibApiV3Sdk::SendersApi get_senders GET /senders Get the list of all your senders
SibApiV3Sdk::SendersApi update_sender PUT /senders/{senderId} Update a sender
SibApiV3Sdk::TransactionalSMSApi get_sms_events GET /transactionalSMS/statistics/events Get all the SMS activity (unaggregated events)
SibApiV3Sdk::TransactionalSMSApi get_transac_aggregated_sms_report GET /transactionalSMS/statistics/aggregatedReport Get your SMS activity aggregated over a period of time
SibApiV3Sdk::TransactionalSMSApi get_transac_sms_report GET /transactionalSMS/statistics/reports Get your SMS activity aggregated per day
SibApiV3Sdk::TransactionalSMSApi send_transac_sms POST /transactionalSMS/sms Send the SMS campaign to the specified mobile number
SibApiV3Sdk::WebhooksApi create_webhook POST /webhooks Create a webhook
SibApiV3Sdk::WebhooksApi delete_webhook DELETE /webhooks/{webhookId} Delete a webhook
SibApiV3Sdk::WebhooksApi get_webhook GET /webhooks/{webhookId} Get a webhook details
SibApiV3Sdk::WebhooksApi get_webhooks GET /webhooks Get all webhooks
SibApiV3Sdk::WebhooksApi update_webhook PUT /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

partner-key

  • Type: API key
  • API key parameter name: partner-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.

Recommendation

Please follow camelCase convention for variables in the API's. For example, use customVariable instead of custom_variable.

You can’t perform that action at this time.