sib-api-v3-sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/LICENSE.md +21 -0
  4. data/README.md +349 -0
  5. data/Rakefile +8 -0
  6. data/docs/AccountApi.md +55 -0
  7. data/docs/AddCredits.md +9 -0
  8. data/docs/AddRemoveContactToList.md +8 -0
  9. data/docs/AttributesApi.md +160 -0
  10. data/docs/ContactsApi.md +1310 -0
  11. data/docs/CreaUpdateFolder.md +8 -0
  12. data/docs/CreateAttribute.md +12 -0
  13. data/docs/CreateAttributeEnumemaration.md +9 -0
  14. data/docs/CreateChild.md +12 -0
  15. data/docs/CreateContact.md +12 -0
  16. data/docs/CreateEmailCampaign.md +25 -0
  17. data/docs/CreateEmailCampaignRecipients.md +9 -0
  18. data/docs/CreateEmailCampaignSender.md +9 -0
  19. data/docs/CreateList.md +9 -0
  20. data/docs/CreateModel.md +8 -0
  21. data/docs/CreateSender.md +10 -0
  22. data/docs/CreateSenderIps.md +10 -0
  23. data/docs/CreateSenderModel.md +10 -0
  24. data/docs/CreateSmsCampaign.md +12 -0
  25. data/docs/CreateSmsCampaignRecipients.md +9 -0
  26. data/docs/CreateSmtpEmail.md +8 -0
  27. data/docs/CreateSmtpTemplate.md +17 -0
  28. data/docs/CreateSmtpTemplateSender.md +9 -0
  29. data/docs/CreateWebhook.md +11 -0
  30. data/docs/CreatedProcessId.md +8 -0
  31. data/docs/DeleteHardbounces.md +10 -0
  32. data/docs/EmailCampaignsApi.md +557 -0
  33. data/docs/EmailExportRecipients.md +9 -0
  34. data/docs/ErrorModel.md +9 -0
  35. data/docs/FoldersApi.md +336 -0
  36. data/docs/GetAccount.md +15 -0
  37. data/docs/GetAccountMarketingAutomation.md +9 -0
  38. data/docs/GetAccountPlan.md +10 -0
  39. data/docs/GetAccountRelay.md +9 -0
  40. data/docs/GetAccountRelayData.md +10 -0
  41. data/docs/GetAggregatedReport.md +19 -0
  42. data/docs/GetAttributes.md +8 -0
  43. data/docs/GetAttributesAttributes.md +13 -0
  44. data/docs/GetAttributesEnumeration.md +9 -0
  45. data/docs/GetCampaignOverview.md +13 -0
  46. data/docs/GetCampaignRecipients.md +9 -0
  47. data/docs/GetCampaignRecipientsExclusionLists.md +9 -0
  48. data/docs/GetCampaignRecipientsLists.md +9 -0
  49. data/docs/GetCampaignStats.md +19 -0
  50. data/docs/GetChildInfo.md +16 -0
  51. data/docs/GetChildInfoApiKeys.md +10 -0
  52. data/docs/GetChildInfoCredits.md +9 -0
  53. data/docs/GetChildInfoIps.md +9 -0
  54. data/docs/GetChildInfoStatistics.md +10 -0
  55. data/docs/GetChildrenList.md +8 -0
  56. data/docs/GetClient.md +11 -0
  57. data/docs/GetContactCampaignStats.md +15 -0
  58. data/docs/GetContactCampaignStatsClicked.md +9 -0
  59. data/docs/GetContactCampaignStatsLinks.md +11 -0
  60. data/docs/GetContactCampaignStatsMessagesSent.md +9 -0
  61. data/docs/GetContactCampaignStatsOpened.md +11 -0
  62. data/docs/GetContactCampaignStatsTransacAttributes.md +10 -0
  63. data/docs/GetContactCampaignStatsUnsubscriptions.md +9 -0
  64. data/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md +9 -0
  65. data/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md +10 -0
  66. data/docs/GetContactDetails.md +15 -0
  67. data/docs/GetContacts.md +9 -0
  68. data/docs/GetEmailCampaign.md +27 -0
  69. data/docs/GetEmailCampaigns.md +9 -0
  70. data/docs/GetEmailEventReport.md +8 -0
  71. data/docs/GetEmailEventReportEvents.md +14 -0
  72. data/docs/GetExtendedCampaignOverview.md +27 -0
  73. data/docs/GetExtendedCampaignOverviewSender.md +9 -0
  74. data/docs/GetExtendedCampaignStats.md +12 -0
  75. data/docs/GetExtendedCampaignStatsLinksStats.md +8 -0
  76. data/docs/GetExtendedClient.md +12 -0
  77. data/docs/GetExtendedClientAddress.md +11 -0
  78. data/docs/GetExtendedContactDetails.md +15 -0
  79. data/docs/GetExtendedList.md +15 -0
  80. data/docs/GetExtendedListCampaignStats.md +9 -0
  81. data/docs/GetFolder.md +12 -0
  82. data/docs/GetFolderLists.md +9 -0
  83. data/docs/GetFolders.md +9 -0
  84. data/docs/GetIp.md +11 -0
  85. data/docs/GetIpFromSender.md +11 -0
  86. data/docs/GetIps.md +8 -0
  87. data/docs/GetIpsFromSender.md +8 -0
  88. data/docs/GetList.md +11 -0
  89. data/docs/GetLists.md +9 -0
  90. data/docs/GetListsFolder.md +9 -0
  91. data/docs/GetListsLists.md +8 -0
  92. data/docs/GetProcess.md +11 -0
  93. data/docs/GetProcesses.md +9 -0
  94. data/docs/GetReports.md +8 -0
  95. data/docs/GetReportsReports.md +20 -0
  96. data/docs/GetSendersList.md +8 -0
  97. data/docs/GetSendersListIps.md +10 -0
  98. data/docs/GetSendersListSenders.md +12 -0
  99. data/docs/GetSmsCampaign.md +16 -0
  100. data/docs/GetSmsCampaignOverview.md +16 -0
  101. data/docs/GetSmsCampaignStats.md +14 -0
  102. data/docs/GetSmsCampaigns.md +9 -0
  103. data/docs/GetSmsEventReport.md +8 -0
  104. data/docs/GetSmsEventReportEvents.md +14 -0
  105. data/docs/GetSmtpTemplateOverview.md +19 -0
  106. data/docs/GetSmtpTemplateOverviewSender.md +9 -0
  107. data/docs/GetSmtpTemplates.md +9 -0
  108. data/docs/GetStatsByDomain.md +7 -0
  109. data/docs/GetTransacAggregatedSmsReport.md +17 -0
  110. data/docs/GetTransacSmsReport.md +8 -0
  111. data/docs/GetTransacSmsReportReports.md +18 -0
  112. data/docs/GetWebhook.md +14 -0
  113. data/docs/GetWebhooks.md +8 -0
  114. data/docs/ListsApi.md +509 -0
  115. data/docs/ManageIp.md +8 -0
  116. data/docs/PostContactInfo.md +8 -0
  117. data/docs/PostContactInfoContacts.md +9 -0
  118. data/docs/PostSendFailed.md +12 -0
  119. data/docs/PostSendSmsTestFailed.md +11 -0
  120. data/docs/ProcessApi.md +117 -0
  121. data/docs/RemainingCreditModel.md +9 -0
  122. data/docs/RemainingCreditModelChild.md +9 -0
  123. data/docs/RemainingCreditModelReseller.md +9 -0
  124. data/docs/RemoveCredits.md +9 -0
  125. data/docs/RequestContactExport.md +10 -0
  126. data/docs/RequestContactImport.md +12 -0
  127. data/docs/RequestContactImportNewList.md +9 -0
  128. data/docs/RequestSMSRecipientExport.md +9 -0
  129. data/docs/ResellerApi.md +491 -0
  130. data/docs/SMSCampaignsApi.md +560 -0
  131. data/docs/SMTPApi.md +642 -0
  132. data/docs/SendEmail.md +15 -0
  133. data/docs/SendEmailAttachment.md +9 -0
  134. data/docs/SendReport.md +9 -0
  135. data/docs/SendReportEmail.md +13 -0
  136. data/docs/SendSms.md +8 -0
  137. data/docs/SendSmtpEmail.md +17 -0
  138. data/docs/SendSmtpEmailAttachment.md +10 -0
  139. data/docs/SendSmtpEmailBcc.md +9 -0
  140. data/docs/SendSmtpEmailCc.md +9 -0
  141. data/docs/SendSmtpEmailReplyTo.md +9 -0
  142. data/docs/SendSmtpEmailSender.md +9 -0
  143. data/docs/SendSmtpEmailTo.md +9 -0
  144. data/docs/SendTemplateEmail.md +8 -0
  145. data/docs/SendTestEmail.md +8 -0
  146. data/docs/SendTestSms.md +8 -0
  147. data/docs/SendTransacSms.md +12 -0
  148. data/docs/SendersApi.md +326 -0
  149. data/docs/TransactionalSMSApi.md +249 -0
  150. data/docs/UpdateCampaignStatus.md +8 -0
  151. data/docs/UpdateChild.md +13 -0
  152. data/docs/UpdateContact.md +12 -0
  153. data/docs/UpdateEmailCampaign.md +24 -0
  154. data/docs/UpdateEmailCampaignRecipients.md +9 -0
  155. data/docs/UpdateEmailCampaignSender.md +9 -0
  156. data/docs/UpdateList.md +9 -0
  157. data/docs/UpdateSender.md +10 -0
  158. data/docs/UpdateSmsCampaign.md +12 -0
  159. data/docs/UpdateSmtpTemplate.md +17 -0
  160. data/docs/UpdateSmtpTemplateSender.md +9 -0
  161. data/docs/UpdateWebhook.md +10 -0
  162. data/docs/WebhooksApi.md +275 -0
  163. data/git_push.sh +55 -0
  164. data/lib/sib-api-v3-sdk.rb +196 -0
  165. data/lib/sib-api-v3-sdk/api/account_api.rb +72 -0
  166. data/lib/sib-api-v3-sdk/api/attributes_api.rb +181 -0
  167. data/lib/sib-api-v3-sdk/api/contacts_api.rb +1408 -0
  168. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +609 -0
  169. data/lib/sib-api-v3-sdk/api/folders_api.rb +379 -0
  170. data/lib/sib-api-v3-sdk/api/lists_api.rb +565 -0
  171. data/lib/sib-api-v3-sdk/api/process_api.rb +137 -0
  172. data/lib/sib-api-v3-sdk/api/reseller_api.rb +534 -0
  173. data/lib/sib-api-v3-sdk/api/senders_api.rb +343 -0
  174. data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +609 -0
  175. data/lib/sib-api-v3-sdk/api/smtp_api.rb +699 -0
  176. data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +280 -0
  177. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +302 -0
  178. data/lib/sib-api-v3-sdk/api_client.rb +389 -0
  179. data/lib/sib-api-v3-sdk/api_error.rb +38 -0
  180. data/lib/sib-api-v3-sdk/configuration.rb +209 -0
  181. data/lib/sib-api-v3-sdk/models/add_credits.rb +199 -0
  182. data/lib/sib-api-v3-sdk/models/add_remove_contact_to_list.rb +191 -0
  183. data/lib/sib-api-v3-sdk/models/crea_update_folder.rb +189 -0
  184. data/lib/sib-api-v3-sdk/models/create_attribute.rb +291 -0
  185. data/lib/sib-api-v3-sdk/models/create_attribute_enumemaration.rb +199 -0
  186. data/lib/sib-api-v3-sdk/models/create_child.rb +254 -0
  187. data/lib/sib-api-v3-sdk/models/create_contact.rb +231 -0
  188. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +425 -0
  189. data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +203 -0
  190. data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +204 -0
  191. data/lib/sib-api-v3-sdk/models/create_list.rb +209 -0
  192. data/lib/sib-api-v3-sdk/models/create_model.rb +194 -0
  193. data/lib/sib-api-v3-sdk/models/create_sender.rb +221 -0
  194. data/lib/sib-api-v3-sdk/models/create_sender_ips.rb +244 -0
  195. data/lib/sib-api-v3-sdk/models/create_sender_model.rb +214 -0
  196. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +273 -0
  197. data/lib/sib-api-v3-sdk/models/create_sms_campaign_recipients.rb +213 -0
  198. data/lib/sib-api-v3-sdk/models/create_smtp_email.rb +194 -0
  199. data/lib/sib-api-v3-sdk/models/create_smtp_template.rb +288 -0
  200. data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +204 -0
  201. data/lib/sib-api-v3-sdk/models/create_webhook.rb +261 -0
  202. data/lib/sib-api-v3-sdk/models/created_process_id.rb +194 -0
  203. data/lib/sib-api-v3-sdk/models/delete_hardbounces.rb +209 -0
  204. data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +237 -0
  205. data/lib/sib-api-v3-sdk/models/error_model.rb +242 -0
  206. data/lib/sib-api-v3-sdk/models/get_account.rb +283 -0
  207. data/lib/sib-api-v3-sdk/models/get_account_marketing_automation.rb +204 -0
  208. data/lib/sib-api-v3-sdk/models/get_account_plan.rb +269 -0
  209. data/lib/sib-api-v3-sdk/models/get_account_relay.rb +203 -0
  210. data/lib/sib-api-v3-sdk/models/get_account_relay_data.rb +224 -0
  211. data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +359 -0
  212. data/lib/sib-api-v3-sdk/models/get_attributes.rb +196 -0
  213. data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +301 -0
  214. data/lib/sib-api-v3-sdk/models/get_attributes_enumeration.rb +209 -0
  215. data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +325 -0
  216. data/lib/sib-api-v3-sdk/models/get_campaign_recipients.rb +213 -0
  217. data/lib/sib-api-v3-sdk/models/get_campaign_recipients_exclusion_lists.rb +209 -0
  218. data/lib/sib-api-v3-sdk/models/get_campaign_recipients_lists.rb +209 -0
  219. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +359 -0
  220. data/lib/sib-api-v3-sdk/models/get_child_info.rb +296 -0
  221. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +219 -0
  222. data/lib/sib-api-v3-sdk/models/get_child_info_credits.rb +199 -0
  223. data/lib/sib-api-v3-sdk/models/get_child_info_ips.rb +209 -0
  224. data/lib/sib-api-v3-sdk/models/get_child_info_statistics.rb +209 -0
  225. data/lib/sib-api-v3-sdk/models/get_children_list.rb +191 -0
  226. data/lib/sib-api-v3-sdk/models/get_client.rb +239 -0
  227. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +265 -0
  228. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_clicked.rb +210 -0
  229. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_links.rb +239 -0
  230. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_messages_sent.rb +209 -0
  231. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +239 -0
  232. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_transac_attributes.rb +224 -0
  233. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions.rb +213 -0
  234. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.rb +209 -0
  235. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.rb +224 -0
  236. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +316 -0
  237. data/lib/sib-api-v3-sdk/models/get_contacts.rb +210 -0
  238. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +552 -0
  239. data/lib/sib-api-v3-sdk/models/get_email_campaigns.rb +205 -0
  240. data/lib/sib-api-v3-sdk/models/get_email_event_report.rb +190 -0
  241. data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +312 -0
  242. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +552 -0
  243. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview_sender.rb +199 -0
  244. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats.rb +255 -0
  245. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats_links_stats.rb +194 -0
  246. data/lib/sib-api-v3-sdk/models/get_extended_client.rb +248 -0
  247. data/lib/sib-api-v3-sdk/models/get_extended_client_address.rb +239 -0
  248. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +316 -0
  249. data/lib/sib-api-v3-sdk/models/get_extended_list.rb +309 -0
  250. data/lib/sib-api-v3-sdk/models/get_extended_list_campaign_stats.rb +208 -0
  251. data/lib/sib-api-v3-sdk/models/get_folder.rb +254 -0
  252. data/lib/sib-api-v3-sdk/models/get_folder_lists.rb +210 -0
  253. data/lib/sib-api-v3-sdk/models/get_folders.rb +200 -0
  254. data/lib/sib-api-v3-sdk/models/get_ip.rb +239 -0
  255. data/lib/sib-api-v3-sdk/models/get_ip_from_sender.rb +239 -0
  256. data/lib/sib-api-v3-sdk/models/get_ips.rb +196 -0
  257. data/lib/sib-api-v3-sdk/models/get_ips_from_sender.rb +196 -0
  258. data/lib/sib-api-v3-sdk/models/get_list.rb +239 -0
  259. data/lib/sib-api-v3-sdk/models/get_lists.rb +211 -0
  260. data/lib/sib-api-v3-sdk/models/get_lists_folder.rb +209 -0
  261. data/lib/sib-api-v3-sdk/models/get_lists_lists.rb +188 -0
  262. data/lib/sib-api-v3-sdk/models/get_process.rb +267 -0
  263. data/lib/sib-api-v3-sdk/models/get_processes.rb +206 -0
  264. data/lib/sib-api-v3-sdk/models/get_reports.rb +190 -0
  265. data/lib/sib-api-v3-sdk/models/get_reports_reports.rb +374 -0
  266. data/lib/sib-api-v3-sdk/models/get_senders_list.rb +191 -0
  267. data/lib/sib-api-v3-sdk/models/get_senders_list_ips.rb +224 -0
  268. data/lib/sib-api-v3-sdk/models/get_senders_list_senders.rb +251 -0
  269. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +404 -0
  270. data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +404 -0
  271. data/lib/sib-api-v3-sdk/models/get_sms_campaign_stats.rb +284 -0
  272. data/lib/sib-api-v3-sdk/models/get_sms_campaigns.rb +205 -0
  273. data/lib/sib-api-v3-sdk/models/get_sms_event_report.rb +190 -0
  274. data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +311 -0
  275. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +391 -0
  276. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview_sender.rb +199 -0
  277. data/lib/sib-api-v3-sdk/models/get_smtp_templates.rb +200 -0
  278. data/lib/sib-api-v3-sdk/models/get_stats_by_domain.rb +179 -0
  279. data/lib/sib-api-v3-sdk/models/get_transac_aggregated_sms_report.rb +329 -0
  280. data/lib/sib-api-v3-sdk/models/get_transac_sms_report.rb +190 -0
  281. data/lib/sib-api-v3-sdk/models/get_transac_sms_report_reports.rb +344 -0
  282. data/lib/sib-api-v3-sdk/models/get_webhook.rb +356 -0
  283. data/lib/sib-api-v3-sdk/models/get_webhooks.rb +195 -0
  284. data/lib/sib-api-v3-sdk/models/manage_ip.rb +189 -0
  285. data/lib/sib-api-v3-sdk/models/post_contact_info.rb +188 -0
  286. data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +206 -0
  287. data/lib/sib-api-v3-sdk/models/post_send_failed.rb +242 -0
  288. data/lib/sib-api-v3-sdk/models/post_send_sms_test_failed.rb +231 -0
  289. data/lib/sib-api-v3-sdk/models/remaining_credit_model.rb +197 -0
  290. data/lib/sib-api-v3-sdk/models/remaining_credit_model_child.rb +209 -0
  291. data/lib/sib-api-v3-sdk/models/remaining_credit_model_reseller.rb +209 -0
  292. data/lib/sib-api-v3-sdk/models/remove_credits.rb +199 -0
  293. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +216 -0
  294. data/lib/sib-api-v3-sdk/models/request_contact_import.rb +230 -0
  295. data/lib/sib-api-v3-sdk/models/request_contact_import_new_list.rb +199 -0
  296. data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +239 -0
  297. data/lib/sib-api-v3-sdk/models/send_email.rb +274 -0
  298. data/lib/sib-api-v3-sdk/models/send_email_attachment.rb +215 -0
  299. data/lib/sib-api-v3-sdk/models/send_report.rb +233 -0
  300. data/lib/sib-api-v3-sdk/models/send_report_email.rb +278 -0
  301. data/lib/sib-api-v3-sdk/models/send_sms.rb +193 -0
  302. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +301 -0
  303. data/lib/sib-api-v3-sdk/models/send_smtp_email_attachment.rb +225 -0
  304. data/lib/sib-api-v3-sdk/models/send_smtp_email_bcc.rb +204 -0
  305. data/lib/sib-api-v3-sdk/models/send_smtp_email_cc.rb +204 -0
  306. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +204 -0
  307. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +204 -0
  308. data/lib/sib-api-v3-sdk/models/send_smtp_email_to.rb +204 -0
  309. data/lib/sib-api-v3-sdk/models/send_template_email.rb +194 -0
  310. data/lib/sib-api-v3-sdk/models/send_test_email.rb +191 -0
  311. data/lib/sib-api-v3-sdk/models/send_test_sms.rb +191 -0
  312. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +282 -0
  313. data/lib/sib-api-v3-sdk/models/update_campaign_status.rb +221 -0
  314. data/lib/sib-api-v3-sdk/models/update_child.rb +240 -0
  315. data/lib/sib-api-v3-sdk/models/update_contact.rb +234 -0
  316. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +367 -0
  317. data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +203 -0
  318. data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +199 -0
  319. data/lib/sib-api-v3-sdk/models/update_list.rb +199 -0
  320. data/lib/sib-api-v3-sdk/models/update_sender.rb +211 -0
  321. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +260 -0
  322. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +278 -0
  323. data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +199 -0
  324. data/lib/sib-api-v3-sdk/models/update_webhook.rb +211 -0
  325. data/lib/sib-api-v3-sdk/version.rb +15 -0
  326. data/sib-api-v3-sdk.gemspec +45 -0
  327. data/spec/api/account_api_spec.rb +46 -0
  328. data/spec/api/attributes_api_spec.rb +70 -0
  329. data/spec/api/contacts_api_spec.rb +335 -0
  330. data/spec/api/email_campaigns_api_spec.rb +163 -0
  331. data/spec/api/folders_api_spec.rb +111 -0
  332. data/spec/api/lists_api_spec.rb +152 -0
  333. data/spec/api/process_api_spec.rb +60 -0
  334. data/spec/api/reseller_api_spec.rb +147 -0
  335. data/spec/api/senders_api_spec.rb +108 -0
  336. data/spec/api/sms_campaigns_api_spec.rb +163 -0
  337. data/spec/api/smtp_api_spec.rb +189 -0
  338. data/spec/api/transactional_sms_api_spec.rb +96 -0
  339. data/spec/api/webhooks_api_spec.rb +96 -0
  340. data/spec/api_client_spec.rb +226 -0
  341. data/spec/configuration_spec.rb +42 -0
  342. data/spec/models/add_credits_spec.rb +48 -0
  343. data/spec/models/add_remove_contact_to_list_spec.rb +42 -0
  344. data/spec/models/crea_update_folder_spec.rb +42 -0
  345. data/spec/models/create_attribute_enumemaration_spec.rb +48 -0
  346. data/spec/models/create_attribute_spec.rb +74 -0
  347. data/spec/models/create_child_spec.rb +66 -0
  348. data/spec/models/create_contact_spec.rb +66 -0
  349. data/spec/models/create_email_campaign_recipients_spec.rb +48 -0
  350. data/spec/models/create_email_campaign_sender_spec.rb +48 -0
  351. data/spec/models/create_email_campaign_spec.rb +148 -0
  352. data/spec/models/create_list_spec.rb +48 -0
  353. data/spec/models/create_model_spec.rb +42 -0
  354. data/spec/models/create_sender_ips_spec.rb +54 -0
  355. data/spec/models/create_sender_model_spec.rb +54 -0
  356. data/spec/models/create_sender_spec.rb +54 -0
  357. data/spec/models/create_sms_campaign_recipients_spec.rb +48 -0
  358. data/spec/models/create_sms_campaign_spec.rb +66 -0
  359. data/spec/models/create_smtp_email_spec.rb +42 -0
  360. data/spec/models/create_smtp_template_sender_spec.rb +48 -0
  361. data/spec/models/create_smtp_template_spec.rb +96 -0
  362. data/spec/models/create_webhook_spec.rb +64 -0
  363. data/spec/models/created_process_id_spec.rb +42 -0
  364. data/spec/models/delete_hardbounces_spec.rb +54 -0
  365. data/spec/models/email_export_recipients_spec.rb +52 -0
  366. data/spec/models/error_model_spec.rb +52 -0
  367. data/spec/models/get_account_marketing_automation_spec.rb +48 -0
  368. data/spec/models/get_account_plan_spec.rb +62 -0
  369. data/spec/models/get_account_relay_data_spec.rb +54 -0
  370. data/spec/models/get_account_relay_spec.rb +48 -0
  371. data/spec/models/get_account_spec.rb +84 -0
  372. data/spec/models/get_aggregated_report_spec.rb +108 -0
  373. data/spec/models/get_attributes_attributes_spec.rb +80 -0
  374. data/spec/models/get_attributes_enumeration_spec.rb +48 -0
  375. data/spec/models/get_attributes_spec.rb +42 -0
  376. data/spec/models/get_campaign_overview_spec.rb +80 -0
  377. data/spec/models/get_campaign_recipients_exclusion_lists_spec.rb +48 -0
  378. data/spec/models/get_campaign_recipients_lists_spec.rb +48 -0
  379. data/spec/models/get_campaign_recipients_spec.rb +48 -0
  380. data/spec/models/get_campaign_stats_spec.rb +108 -0
  381. data/spec/models/get_child_info_api_keys_spec.rb +54 -0
  382. data/spec/models/get_child_info_credits_spec.rb +48 -0
  383. data/spec/models/get_child_info_ips_spec.rb +48 -0
  384. data/spec/models/get_child_info_spec.rb +90 -0
  385. data/spec/models/get_child_info_statistics_spec.rb +54 -0
  386. data/spec/models/get_children_list_spec.rb +42 -0
  387. data/spec/models/get_client_spec.rb +60 -0
  388. data/spec/models/get_contact_campaign_stats_clicked_spec.rb +48 -0
  389. data/spec/models/get_contact_campaign_stats_links_spec.rb +60 -0
  390. data/spec/models/get_contact_campaign_stats_messages_sent_spec.rb +48 -0
  391. data/spec/models/get_contact_campaign_stats_opened_spec.rb +60 -0
  392. data/spec/models/get_contact_campaign_stats_spec.rb +84 -0
  393. data/spec/models/get_contact_campaign_stats_transac_attributes_spec.rb +54 -0
  394. data/spec/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription_spec.rb +48 -0
  395. data/spec/models/get_contact_campaign_stats_unsubscriptions_spec.rb +48 -0
  396. data/spec/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription_spec.rb +54 -0
  397. data/spec/models/get_contact_details_spec.rb +84 -0
  398. data/spec/models/get_contacts_spec.rb +48 -0
  399. data/spec/models/get_email_campaign_spec.rb +164 -0
  400. data/spec/models/get_email_campaigns_spec.rb +48 -0
  401. data/spec/models/get_email_event_report_events_spec.rb +82 -0
  402. data/spec/models/get_email_event_report_spec.rb +42 -0
  403. data/spec/models/get_extended_campaign_overview_sender_spec.rb +48 -0
  404. data/spec/models/get_extended_campaign_overview_spec.rb +164 -0
  405. data/spec/models/get_extended_campaign_stats_links_stats_spec.rb +42 -0
  406. data/spec/models/get_extended_campaign_stats_spec.rb +66 -0
  407. data/spec/models/get_extended_client_address_spec.rb +60 -0
  408. data/spec/models/get_extended_client_spec.rb +66 -0
  409. data/spec/models/get_extended_contact_details_spec.rb +84 -0
  410. data/spec/models/get_extended_list_campaign_stats_spec.rb +48 -0
  411. data/spec/models/get_extended_list_spec.rb +84 -0
  412. data/spec/models/get_folder_lists_spec.rb +48 -0
  413. data/spec/models/get_folder_spec.rb +66 -0
  414. data/spec/models/get_folders_spec.rb +48 -0
  415. data/spec/models/get_ip_from_sender_spec.rb +60 -0
  416. data/spec/models/get_ip_spec.rb +60 -0
  417. data/spec/models/get_ips_from_sender_spec.rb +42 -0
  418. data/spec/models/get_ips_spec.rb +42 -0
  419. data/spec/models/get_list_spec.rb +60 -0
  420. data/spec/models/get_lists_folder_spec.rb +48 -0
  421. data/spec/models/get_lists_lists_spec.rb +42 -0
  422. data/spec/models/get_lists_spec.rb +48 -0
  423. data/spec/models/get_process_spec.rb +64 -0
  424. data/spec/models/get_processes_spec.rb +48 -0
  425. data/spec/models/get_reports_reports_spec.rb +114 -0
  426. data/spec/models/get_reports_spec.rb +42 -0
  427. data/spec/models/get_senders_list_ips_spec.rb +54 -0
  428. data/spec/models/get_senders_list_senders_spec.rb +66 -0
  429. data/spec/models/get_senders_list_spec.rb +42 -0
  430. data/spec/models/get_sms_campaign_overview_spec.rb +94 -0
  431. data/spec/models/get_sms_campaign_spec.rb +94 -0
  432. data/spec/models/get_sms_campaign_stats_spec.rb +78 -0
  433. data/spec/models/get_sms_campaigns_spec.rb +48 -0
  434. data/spec/models/get_sms_event_report_events_spec.rb +82 -0
  435. data/spec/models/get_sms_event_report_spec.rb +42 -0
  436. data/spec/models/get_smtp_template_overview_sender_spec.rb +48 -0
  437. data/spec/models/get_smtp_template_overview_spec.rb +108 -0
  438. data/spec/models/get_smtp_templates_spec.rb +48 -0
  439. data/spec/models/get_stats_by_domain_spec.rb +36 -0
  440. data/spec/models/get_transac_aggregated_sms_report_spec.rb +96 -0
  441. data/spec/models/get_transac_sms_report_reports_spec.rb +102 -0
  442. data/spec/models/get_transac_sms_report_spec.rb +42 -0
  443. data/spec/models/get_webhook_spec.rb +82 -0
  444. data/spec/models/get_webhooks_spec.rb +42 -0
  445. data/spec/models/manage_ip_spec.rb +42 -0
  446. data/spec/models/post_contact_info_contacts_spec.rb +48 -0
  447. data/spec/models/post_contact_info_spec.rb +42 -0
  448. data/spec/models/post_send_failed_spec.rb +66 -0
  449. data/spec/models/post_send_sms_test_failed_spec.rb +60 -0
  450. data/spec/models/remaining_credit_model_child_spec.rb +48 -0
  451. data/spec/models/remaining_credit_model_reseller_spec.rb +48 -0
  452. data/spec/models/remaining_credit_model_spec.rb +48 -0
  453. data/spec/models/remove_credits_spec.rb +48 -0
  454. data/spec/models/request_contact_export_spec.rb +54 -0
  455. data/spec/models/request_contact_import_new_list_spec.rb +48 -0
  456. data/spec/models/request_contact_import_spec.rb +66 -0
  457. data/spec/models/request_sms_recipient_export_spec.rb +52 -0
  458. data/spec/models/send_email_attachment_spec.rb +48 -0
  459. data/spec/models/send_email_spec.rb +84 -0
  460. data/spec/models/send_report_email_spec.rb +76 -0
  461. data/spec/models/send_report_spec.rb +52 -0
  462. data/spec/models/send_sms_spec.rb +42 -0
  463. data/spec/models/send_smtp_email_attachment_spec.rb +54 -0
  464. data/spec/models/send_smtp_email_bcc_spec.rb +48 -0
  465. data/spec/models/send_smtp_email_cc_spec.rb +48 -0
  466. data/spec/models/send_smtp_email_reply_to_spec.rb +48 -0
  467. data/spec/models/send_smtp_email_sender_spec.rb +48 -0
  468. data/spec/models/send_smtp_email_spec.rb +96 -0
  469. data/spec/models/send_smtp_email_to_spec.rb +48 -0
  470. data/spec/models/send_template_email_spec.rb +42 -0
  471. data/spec/models/send_test_email_spec.rb +42 -0
  472. data/spec/models/send_test_sms_spec.rb +42 -0
  473. data/spec/models/send_transac_sms_spec.rb +66 -0
  474. data/spec/models/update_campaign_status_spec.rb +46 -0
  475. data/spec/models/update_child_spec.rb +72 -0
  476. data/spec/models/update_contact_spec.rb +66 -0
  477. data/spec/models/update_email_campaign_recipients_spec.rb +48 -0
  478. data/spec/models/update_email_campaign_sender_spec.rb +48 -0
  479. data/spec/models/update_email_campaign_spec.rb +138 -0
  480. data/spec/models/update_list_spec.rb +48 -0
  481. data/spec/models/update_sender_spec.rb +54 -0
  482. data/spec/models/update_sms_campaign_spec.rb +66 -0
  483. data/spec/models/update_smtp_template_sender_spec.rb +48 -0
  484. data/spec/models/update_smtp_template_spec.rb +96 -0
  485. data/spec/models/update_webhook_spec.rb +54 -0
  486. data/spec/spec_helper.rb +111 -0
  487. metadata +869 -0
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::AddCredits
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sms** | **Integer** | SMS credits to be added to the child account | [optional]
7
+ **email** | **Integer** | Email credits to be added to the child account | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::AddRemoveContactToList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **emails** | **Array<String>** | Emails to add or remove from a list | [optional]
7
+
8
+
@@ -0,0 +1,160 @@
1
+ # SibApiV3Sdk::AttributesApi
2
+
3
+ All URIs are relative to *https://api.sendinblue.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_attribute**](AttributesApi.md#create_attribute) | **POST** /contacts/attributes | Creates contact attributes
8
+ [**delete_attribute**](AttributesApi.md#delete_attribute) | **DELETE** /contacts/attributes/{attributeId} | Deletes an attribute
9
+ [**get_attributes**](AttributesApi.md#get_attributes) | **GET** /contacts/attributes | Lists all attributes
10
+
11
+
12
+ # **create_attribute**
13
+ > CreateModel create_attribute(create_attribute)
14
+
15
+ Creates contact attributes
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'sib-api-v3-sdk'
21
+ # setup authorization
22
+ SibApiV3Sdk.configure do |config|
23
+ # Configure API key authorization: api-key
24
+ config.api_key['api-key'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['api-key'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = SibApiV3Sdk::AttributesApi.new
30
+
31
+ create_attribute = SibApiV3Sdk::CreateAttribute.new # CreateAttribute | Values to create an attribute
32
+
33
+
34
+ begin
35
+ #Creates contact attributes
36
+ result = api_instance.create_attribute(create_attribute)
37
+ p result
38
+ rescue SibApiV3Sdk::ApiError => e
39
+ puts "Exception when calling AttributesApi->create_attribute: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **create_attribute** | [**CreateAttribute**](CreateAttribute.md)| Values to create an attribute |
48
+
49
+ ### Return type
50
+
51
+ [**CreateModel**](CreateModel.md)
52
+
53
+ ### Authorization
54
+
55
+ [api-key](../README.md#api-key)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json
60
+ - **Accept**: application/json
61
+
62
+
63
+
64
+ # **delete_attribute**
65
+ > delete_attribute(attribute_id)
66
+
67
+ Deletes an attribute
68
+
69
+ ### Example
70
+ ```ruby
71
+ # load the gem
72
+ require 'sib-api-v3-sdk'
73
+ # setup authorization
74
+ SibApiV3Sdk.configure do |config|
75
+ # Configure API key authorization: api-key
76
+ config.api_key['api-key'] = 'YOUR API KEY'
77
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
78
+ #config.api_key_prefix['api-key'] = 'Bearer'
79
+ end
80
+
81
+ api_instance = SibApiV3Sdk::AttributesApi.new
82
+
83
+ attribute_id = "attribute_id_example" # String | id of the attribute
84
+
85
+
86
+ begin
87
+ #Deletes an attribute
88
+ api_instance.delete_attribute(attribute_id)
89
+ rescue SibApiV3Sdk::ApiError => e
90
+ puts "Exception when calling AttributesApi->delete_attribute: #{e}"
91
+ end
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ Name | Type | Description | Notes
97
+ ------------- | ------------- | ------------- | -------------
98
+ **attribute_id** | **String**| id of the attribute |
99
+
100
+ ### Return type
101
+
102
+ nil (empty response body)
103
+
104
+ ### Authorization
105
+
106
+ [api-key](../README.md#api-key)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: application/json
111
+ - **Accept**: application/json
112
+
113
+
114
+
115
+ # **get_attributes**
116
+ > GetAttributes get_attributes
117
+
118
+ Lists all attributes
119
+
120
+ ### Example
121
+ ```ruby
122
+ # load the gem
123
+ require 'sib-api-v3-sdk'
124
+ # setup authorization
125
+ SibApiV3Sdk.configure do |config|
126
+ # Configure API key authorization: api-key
127
+ config.api_key['api-key'] = 'YOUR API KEY'
128
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
129
+ #config.api_key_prefix['api-key'] = 'Bearer'
130
+ end
131
+
132
+ api_instance = SibApiV3Sdk::AttributesApi.new
133
+
134
+ begin
135
+ #Lists all attributes
136
+ result = api_instance.get_attributes
137
+ p result
138
+ rescue SibApiV3Sdk::ApiError => e
139
+ puts "Exception when calling AttributesApi->get_attributes: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+ This endpoint does not need any parameter.
145
+
146
+ ### Return type
147
+
148
+ [**GetAttributes**](GetAttributes.md)
149
+
150
+ ### Authorization
151
+
152
+ [api-key](../README.md#api-key)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: application/json
157
+ - **Accept**: application/json
158
+
159
+
160
+
@@ -0,0 +1,1310 @@
1
+ # SibApiV3Sdk::ContactsApi
2
+
3
+ All URIs are relative to *https://api.sendinblue.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_contact_to_list**](ContactsApi.md#add_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list
8
+ [**create_attribute**](ContactsApi.md#create_attribute) | **POST** /contacts/attributes | Creates contact attributes
9
+ [**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Create a contact
10
+ [**create_folder**](ContactsApi.md#create_folder) | **POST** /contacts/folders | Create a folder
11
+ [**create_list**](ContactsApi.md#create_list) | **POST** /contacts/lists | Create a list
12
+ [**delete_attribute**](ContactsApi.md#delete_attribute) | **DELETE** /contacts/attributes/{attributeId} | Deletes an attribute
13
+ [**delete_folder**](ContactsApi.md#delete_folder) | **DELETE** /contacts/folders/{folderId} | Delete a folder (and all its lists)
14
+ [**delete_list**](ContactsApi.md#delete_list) | **DELETE** /contacts/lists/{listId} | Delete a list
15
+ [**get_attributes**](ContactsApi.md#get_attributes) | **GET** /contacts/attributes | Lists all attributes
16
+ [**get_contact_info**](ContactsApi.md#get_contact_info) | **GET** /contacts/{email} | Retrieves contact informations
17
+ [**get_contact_stats**](ContactsApi.md#get_contact_stats) | **GET** /contacts/{email}/campaignStats | Get the campaigns statistics for a contact
18
+ [**get_contacts**](ContactsApi.md#get_contacts) | **GET** /contacts | Get all the contacts
19
+ [**get_contacts_from_list**](ContactsApi.md#get_contacts_from_list) | **GET** /contacts/lists/{listId}/contacts | Get the contacts in a list
20
+ [**get_folder**](ContactsApi.md#get_folder) | **GET** /contacts/folders/{folderId} | Returns folder details
21
+ [**get_folder_lists**](ContactsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
22
+ [**get_folders**](ContactsApi.md#get_folders) | **GET** /contacts/folders | Get all the folders
23
+ [**get_list**](ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
24
+ [**get_lists**](ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
25
+ [**import_contacts**](ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts
26
+ [**remove_contact_to_list**](ContactsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
27
+ [**request_contact_export**](ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts
28
+ [**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact
29
+ [**update_folder**](ContactsApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a contact folder
30
+ [**update_list**](ContactsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list
31
+
32
+
33
+ # **add_contact_to_list**
34
+ > PostContactInfo add_contact_to_list(list_id, contact_emails)
35
+
36
+ Add existing contacts to a list
37
+
38
+ ### Example
39
+ ```ruby
40
+ # load the gem
41
+ require 'sib-api-v3-sdk'
42
+ # setup authorization
43
+ SibApiV3Sdk.configure do |config|
44
+ # Configure API key authorization: api-key
45
+ config.api_key['api-key'] = 'YOUR API KEY'
46
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
47
+ #config.api_key_prefix['api-key'] = 'Bearer'
48
+ end
49
+
50
+ api_instance = SibApiV3Sdk::ContactsApi.new
51
+
52
+ list_id = "list_id_example" # String | Id of the list
53
+
54
+ contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails addresses of the contacts
55
+
56
+
57
+ begin
58
+ #Add existing contacts to a list
59
+ result = api_instance.add_contact_to_list(list_id, contact_emails)
60
+ p result
61
+ rescue SibApiV3Sdk::ApiError => e
62
+ puts "Exception when calling ContactsApi->add_contact_to_list: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ Name | Type | Description | Notes
69
+ ------------- | ------------- | ------------- | -------------
70
+ **list_id** | **String**| Id of the list |
71
+ **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
72
+
73
+ ### Return type
74
+
75
+ [**PostContactInfo**](PostContactInfo.md)
76
+
77
+ ### Authorization
78
+
79
+ [api-key](../README.md#api-key)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/json
84
+ - **Accept**: application/json
85
+
86
+
87
+
88
+ # **create_attribute**
89
+ > CreateModel create_attribute(create_attribute)
90
+
91
+ Creates contact attributes
92
+
93
+ ### Example
94
+ ```ruby
95
+ # load the gem
96
+ require 'sib-api-v3-sdk'
97
+ # setup authorization
98
+ SibApiV3Sdk.configure do |config|
99
+ # Configure API key authorization: api-key
100
+ config.api_key['api-key'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ #config.api_key_prefix['api-key'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = SibApiV3Sdk::ContactsApi.new
106
+
107
+ create_attribute = SibApiV3Sdk::CreateAttribute.new # CreateAttribute | Values to create an attribute
108
+
109
+
110
+ begin
111
+ #Creates contact attributes
112
+ result = api_instance.create_attribute(create_attribute)
113
+ p result
114
+ rescue SibApiV3Sdk::ApiError => e
115
+ puts "Exception when calling ContactsApi->create_attribute: #{e}"
116
+ end
117
+ ```
118
+
119
+ ### Parameters
120
+
121
+ Name | Type | Description | Notes
122
+ ------------- | ------------- | ------------- | -------------
123
+ **create_attribute** | [**CreateAttribute**](CreateAttribute.md)| Values to create an attribute |
124
+
125
+ ### Return type
126
+
127
+ [**CreateModel**](CreateModel.md)
128
+
129
+ ### Authorization
130
+
131
+ [api-key](../README.md#api-key)
132
+
133
+ ### HTTP request headers
134
+
135
+ - **Content-Type**: application/json
136
+ - **Accept**: application/json
137
+
138
+
139
+
140
+ # **create_contact**
141
+ > CreateModel create_contact(create_contact)
142
+
143
+ Create a contact
144
+
145
+ ### Example
146
+ ```ruby
147
+ # load the gem
148
+ require 'sib-api-v3-sdk'
149
+ # setup authorization
150
+ SibApiV3Sdk.configure do |config|
151
+ # Configure API key authorization: api-key
152
+ config.api_key['api-key'] = 'YOUR API KEY'
153
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
154
+ #config.api_key_prefix['api-key'] = 'Bearer'
155
+ end
156
+
157
+ api_instance = SibApiV3Sdk::ContactsApi.new
158
+
159
+ create_contact = SibApiV3Sdk::CreateContact.new # CreateContact | Values to create a contact
160
+
161
+
162
+ begin
163
+ #Create a contact
164
+ result = api_instance.create_contact(create_contact)
165
+ p result
166
+ rescue SibApiV3Sdk::ApiError => e
167
+ puts "Exception when calling ContactsApi->create_contact: #{e}"
168
+ end
169
+ ```
170
+
171
+ ### Parameters
172
+
173
+ Name | Type | Description | Notes
174
+ ------------- | ------------- | ------------- | -------------
175
+ **create_contact** | [**CreateContact**](CreateContact.md)| Values to create a contact |
176
+
177
+ ### Return type
178
+
179
+ [**CreateModel**](CreateModel.md)
180
+
181
+ ### Authorization
182
+
183
+ [api-key](../README.md#api-key)
184
+
185
+ ### HTTP request headers
186
+
187
+ - **Content-Type**: application/json
188
+ - **Accept**: application/json
189
+
190
+
191
+
192
+ # **create_folder**
193
+ > CreateModel create_folder(name)
194
+
195
+ Create a folder
196
+
197
+ ### Example
198
+ ```ruby
199
+ # load the gem
200
+ require 'sib-api-v3-sdk'
201
+ # setup authorization
202
+ SibApiV3Sdk.configure do |config|
203
+ # Configure API key authorization: api-key
204
+ config.api_key['api-key'] = 'YOUR API KEY'
205
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
206
+ #config.api_key_prefix['api-key'] = 'Bearer'
207
+ end
208
+
209
+ api_instance = SibApiV3Sdk::ContactsApi.new
210
+
211
+ name = SibApiV3Sdk::CreaUpdateFolder.new # CreaUpdateFolder | Name of the folder
212
+
213
+
214
+ begin
215
+ #Create a folder
216
+ result = api_instance.create_folder(name)
217
+ p result
218
+ rescue SibApiV3Sdk::ApiError => e
219
+ puts "Exception when calling ContactsApi->create_folder: #{e}"
220
+ end
221
+ ```
222
+
223
+ ### Parameters
224
+
225
+ Name | Type | Description | Notes
226
+ ------------- | ------------- | ------------- | -------------
227
+ **name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder |
228
+
229
+ ### Return type
230
+
231
+ [**CreateModel**](CreateModel.md)
232
+
233
+ ### Authorization
234
+
235
+ [api-key](../README.md#api-key)
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: application/json
240
+ - **Accept**: application/json
241
+
242
+
243
+
244
+ # **create_list**
245
+ > CreateModel create_list(create_list)
246
+
247
+ Create a list
248
+
249
+ ### Example
250
+ ```ruby
251
+ # load the gem
252
+ require 'sib-api-v3-sdk'
253
+ # setup authorization
254
+ SibApiV3Sdk.configure do |config|
255
+ # Configure API key authorization: api-key
256
+ config.api_key['api-key'] = 'YOUR API KEY'
257
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
258
+ #config.api_key_prefix['api-key'] = 'Bearer'
259
+ end
260
+
261
+ api_instance = SibApiV3Sdk::ContactsApi.new
262
+
263
+ create_list = SibApiV3Sdk::CreateList.new # CreateList | Values to create a list
264
+
265
+
266
+ begin
267
+ #Create a list
268
+ result = api_instance.create_list(create_list)
269
+ p result
270
+ rescue SibApiV3Sdk::ApiError => e
271
+ puts "Exception when calling ContactsApi->create_list: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ Name | Type | Description | Notes
278
+ ------------- | ------------- | ------------- | -------------
279
+ **create_list** | [**CreateList**](CreateList.md)| Values to create a list |
280
+
281
+ ### Return type
282
+
283
+ [**CreateModel**](CreateModel.md)
284
+
285
+ ### Authorization
286
+
287
+ [api-key](../README.md#api-key)
288
+
289
+ ### HTTP request headers
290
+
291
+ - **Content-Type**: application/json
292
+ - **Accept**: application/json
293
+
294
+
295
+
296
+ # **delete_attribute**
297
+ > delete_attribute(attribute_id)
298
+
299
+ Deletes an attribute
300
+
301
+ ### Example
302
+ ```ruby
303
+ # load the gem
304
+ require 'sib-api-v3-sdk'
305
+ # setup authorization
306
+ SibApiV3Sdk.configure do |config|
307
+ # Configure API key authorization: api-key
308
+ config.api_key['api-key'] = 'YOUR API KEY'
309
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
310
+ #config.api_key_prefix['api-key'] = 'Bearer'
311
+ end
312
+
313
+ api_instance = SibApiV3Sdk::ContactsApi.new
314
+
315
+ attribute_id = "attribute_id_example" # String | id of the attribute
316
+
317
+
318
+ begin
319
+ #Deletes an attribute
320
+ api_instance.delete_attribute(attribute_id)
321
+ rescue SibApiV3Sdk::ApiError => e
322
+ puts "Exception when calling ContactsApi->delete_attribute: #{e}"
323
+ end
324
+ ```
325
+
326
+ ### Parameters
327
+
328
+ Name | Type | Description | Notes
329
+ ------------- | ------------- | ------------- | -------------
330
+ **attribute_id** | **String**| id of the attribute |
331
+
332
+ ### Return type
333
+
334
+ nil (empty response body)
335
+
336
+ ### Authorization
337
+
338
+ [api-key](../README.md#api-key)
339
+
340
+ ### HTTP request headers
341
+
342
+ - **Content-Type**: application/json
343
+ - **Accept**: application/json
344
+
345
+
346
+
347
+ # **delete_folder**
348
+ > delete_folder(folder_id)
349
+
350
+ Delete a folder (and all its lists)
351
+
352
+ ### Example
353
+ ```ruby
354
+ # load the gem
355
+ require 'sib-api-v3-sdk'
356
+ # setup authorization
357
+ SibApiV3Sdk.configure do |config|
358
+ # Configure API key authorization: api-key
359
+ config.api_key['api-key'] = 'YOUR API KEY'
360
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
361
+ #config.api_key_prefix['api-key'] = 'Bearer'
362
+ end
363
+
364
+ api_instance = SibApiV3Sdk::ContactsApi.new
365
+
366
+ folder_id = "folder_id_example" # String | Id of the folder
367
+
368
+
369
+ begin
370
+ #Delete a folder (and all its lists)
371
+ api_instance.delete_folder(folder_id)
372
+ rescue SibApiV3Sdk::ApiError => e
373
+ puts "Exception when calling ContactsApi->delete_folder: #{e}"
374
+ end
375
+ ```
376
+
377
+ ### Parameters
378
+
379
+ Name | Type | Description | Notes
380
+ ------------- | ------------- | ------------- | -------------
381
+ **folder_id** | **String**| Id of the folder |
382
+
383
+ ### Return type
384
+
385
+ nil (empty response body)
386
+
387
+ ### Authorization
388
+
389
+ [api-key](../README.md#api-key)
390
+
391
+ ### HTTP request headers
392
+
393
+ - **Content-Type**: application/json
394
+ - **Accept**: application/json
395
+
396
+
397
+
398
+ # **delete_list**
399
+ > delete_list(list_id)
400
+
401
+ Delete a list
402
+
403
+ ### Example
404
+ ```ruby
405
+ # load the gem
406
+ require 'sib-api-v3-sdk'
407
+ # setup authorization
408
+ SibApiV3Sdk.configure do |config|
409
+ # Configure API key authorization: api-key
410
+ config.api_key['api-key'] = 'YOUR API KEY'
411
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
412
+ #config.api_key_prefix['api-key'] = 'Bearer'
413
+ end
414
+
415
+ api_instance = SibApiV3Sdk::ContactsApi.new
416
+
417
+ list_id = "list_id_example" # String | Id of the list
418
+
419
+
420
+ begin
421
+ #Delete a list
422
+ api_instance.delete_list(list_id)
423
+ rescue SibApiV3Sdk::ApiError => e
424
+ puts "Exception when calling ContactsApi->delete_list: #{e}"
425
+ end
426
+ ```
427
+
428
+ ### Parameters
429
+
430
+ Name | Type | Description | Notes
431
+ ------------- | ------------- | ------------- | -------------
432
+ **list_id** | **String**| Id of the list |
433
+
434
+ ### Return type
435
+
436
+ nil (empty response body)
437
+
438
+ ### Authorization
439
+
440
+ [api-key](../README.md#api-key)
441
+
442
+ ### HTTP request headers
443
+
444
+ - **Content-Type**: application/json
445
+ - **Accept**: application/json
446
+
447
+
448
+
449
+ # **get_attributes**
450
+ > GetAttributes get_attributes
451
+
452
+ Lists all attributes
453
+
454
+ ### Example
455
+ ```ruby
456
+ # load the gem
457
+ require 'sib-api-v3-sdk'
458
+ # setup authorization
459
+ SibApiV3Sdk.configure do |config|
460
+ # Configure API key authorization: api-key
461
+ config.api_key['api-key'] = 'YOUR API KEY'
462
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
463
+ #config.api_key_prefix['api-key'] = 'Bearer'
464
+ end
465
+
466
+ api_instance = SibApiV3Sdk::ContactsApi.new
467
+
468
+ begin
469
+ #Lists all attributes
470
+ result = api_instance.get_attributes
471
+ p result
472
+ rescue SibApiV3Sdk::ApiError => e
473
+ puts "Exception when calling ContactsApi->get_attributes: #{e}"
474
+ end
475
+ ```
476
+
477
+ ### Parameters
478
+ This endpoint does not need any parameter.
479
+
480
+ ### Return type
481
+
482
+ [**GetAttributes**](GetAttributes.md)
483
+
484
+ ### Authorization
485
+
486
+ [api-key](../README.md#api-key)
487
+
488
+ ### HTTP request headers
489
+
490
+ - **Content-Type**: application/json
491
+ - **Accept**: application/json
492
+
493
+
494
+
495
+ # **get_contact_info**
496
+ > GetExtendedContactDetails get_contact_info(email)
497
+
498
+ Retrieves contact informations
499
+
500
+ ### Example
501
+ ```ruby
502
+ # load the gem
503
+ require 'sib-api-v3-sdk'
504
+ # setup authorization
505
+ SibApiV3Sdk.configure do |config|
506
+ # Configure API key authorization: api-key
507
+ config.api_key['api-key'] = 'YOUR API KEY'
508
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
509
+ #config.api_key_prefix['api-key'] = 'Bearer'
510
+ end
511
+
512
+ api_instance = SibApiV3Sdk::ContactsApi.new
513
+
514
+ email = "email_example" # String | Email (urlencoded) of the contact
515
+
516
+
517
+ begin
518
+ #Retrieves contact informations
519
+ result = api_instance.get_contact_info(email)
520
+ p result
521
+ rescue SibApiV3Sdk::ApiError => e
522
+ puts "Exception when calling ContactsApi->get_contact_info: #{e}"
523
+ end
524
+ ```
525
+
526
+ ### Parameters
527
+
528
+ Name | Type | Description | Notes
529
+ ------------- | ------------- | ------------- | -------------
530
+ **email** | **String**| Email (urlencoded) of the contact |
531
+
532
+ ### Return type
533
+
534
+ [**GetExtendedContactDetails**](GetExtendedContactDetails.md)
535
+
536
+ ### Authorization
537
+
538
+ [api-key](../README.md#api-key)
539
+
540
+ ### HTTP request headers
541
+
542
+ - **Content-Type**: application/json
543
+ - **Accept**: application/json
544
+
545
+
546
+
547
+ # **get_contact_stats**
548
+ > GetContactCampaignStats get_contact_stats(email)
549
+
550
+ Get the campaigns statistics for a contact
551
+
552
+ ### Example
553
+ ```ruby
554
+ # load the gem
555
+ require 'sib-api-v3-sdk'
556
+ # setup authorization
557
+ SibApiV3Sdk.configure do |config|
558
+ # Configure API key authorization: api-key
559
+ config.api_key['api-key'] = 'YOUR API KEY'
560
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
561
+ #config.api_key_prefix['api-key'] = 'Bearer'
562
+ end
563
+
564
+ api_instance = SibApiV3Sdk::ContactsApi.new
565
+
566
+ email = "email_example" # String | Email address (urlencoded) of the contact
567
+
568
+
569
+ begin
570
+ #Get the campaigns statistics for a contact
571
+ result = api_instance.get_contact_stats(email)
572
+ p result
573
+ rescue SibApiV3Sdk::ApiError => e
574
+ puts "Exception when calling ContactsApi->get_contact_stats: #{e}"
575
+ end
576
+ ```
577
+
578
+ ### Parameters
579
+
580
+ Name | Type | Description | Notes
581
+ ------------- | ------------- | ------------- | -------------
582
+ **email** | **String**| Email address (urlencoded) of the contact |
583
+
584
+ ### Return type
585
+
586
+ [**GetContactCampaignStats**](GetContactCampaignStats.md)
587
+
588
+ ### Authorization
589
+
590
+ [api-key](../README.md#api-key)
591
+
592
+ ### HTTP request headers
593
+
594
+ - **Content-Type**: application/json
595
+ - **Accept**: application/json
596
+
597
+
598
+
599
+ # **get_contacts**
600
+ > GetContacts get_contacts(opts)
601
+
602
+ Get all the contacts
603
+
604
+ ### Example
605
+ ```ruby
606
+ # load the gem
607
+ require 'sib-api-v3-sdk'
608
+ # setup authorization
609
+ SibApiV3Sdk.configure do |config|
610
+ # Configure API key authorization: api-key
611
+ config.api_key['api-key'] = 'YOUR API KEY'
612
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
613
+ #config.api_key_prefix['api-key'] = 'Bearer'
614
+ end
615
+
616
+ api_instance = SibApiV3Sdk::ContactsApi.new
617
+
618
+ opts = {
619
+ limit: 50, # Integer | Number of documents per page
620
+ offset: 0 # Integer | Index of the first document of the page
621
+ }
622
+
623
+ begin
624
+ #Get all the contacts
625
+ result = api_instance.get_contacts(opts)
626
+ p result
627
+ rescue SibApiV3Sdk::ApiError => e
628
+ puts "Exception when calling ContactsApi->get_contacts: #{e}"
629
+ end
630
+ ```
631
+
632
+ ### Parameters
633
+
634
+ Name | Type | Description | Notes
635
+ ------------- | ------------- | ------------- | -------------
636
+ **limit** | **Integer**| Number of documents per page | [optional] [default to 50]
637
+ **offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
638
+
639
+ ### Return type
640
+
641
+ [**GetContacts**](GetContacts.md)
642
+
643
+ ### Authorization
644
+
645
+ [api-key](../README.md#api-key)
646
+
647
+ ### HTTP request headers
648
+
649
+ - **Content-Type**: application/json
650
+ - **Accept**: application/json
651
+
652
+
653
+
654
+ # **get_contacts_from_list**
655
+ > GetContacts get_contacts_from_list(list_id, opts)
656
+
657
+ Get the contacts in a list
658
+
659
+ ### Example
660
+ ```ruby
661
+ # load the gem
662
+ require 'sib-api-v3-sdk'
663
+ # setup authorization
664
+ SibApiV3Sdk.configure do |config|
665
+ # Configure API key authorization: api-key
666
+ config.api_key['api-key'] = 'YOUR API KEY'
667
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
668
+ #config.api_key_prefix['api-key'] = 'Bearer'
669
+ end
670
+
671
+ api_instance = SibApiV3Sdk::ContactsApi.new
672
+
673
+ list_id = "list_id_example" # String | Id of the list
674
+
675
+ opts = {
676
+ modified_since: "modified_since_example", # String | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss)
677
+ limit: 50, # Integer | Number of documents per page
678
+ offset: 0 # Integer | Index of the first document of the page
679
+ }
680
+
681
+ begin
682
+ #Get the contacts in a list
683
+ result = api_instance.get_contacts_from_list(list_id, opts)
684
+ p result
685
+ rescue SibApiV3Sdk::ApiError => e
686
+ puts "Exception when calling ContactsApi->get_contacts_from_list: #{e}"
687
+ end
688
+ ```
689
+
690
+ ### Parameters
691
+
692
+ Name | Type | Description | Notes
693
+ ------------- | ------------- | ------------- | -------------
694
+ **list_id** | **String**| Id of the list |
695
+ **modified_since** | **String**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional]
696
+ **limit** | **Integer**| Number of documents per page | [optional] [default to 50]
697
+ **offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
698
+
699
+ ### Return type
700
+
701
+ [**GetContacts**](GetContacts.md)
702
+
703
+ ### Authorization
704
+
705
+ [api-key](../README.md#api-key)
706
+
707
+ ### HTTP request headers
708
+
709
+ - **Content-Type**: application/json
710
+ - **Accept**: application/json
711
+
712
+
713
+
714
+ # **get_folder**
715
+ > GetFolder get_folder(folder_id)
716
+
717
+ Returns folder details
718
+
719
+ ### Example
720
+ ```ruby
721
+ # load the gem
722
+ require 'sib-api-v3-sdk'
723
+ # setup authorization
724
+ SibApiV3Sdk.configure do |config|
725
+ # Configure API key authorization: api-key
726
+ config.api_key['api-key'] = 'YOUR API KEY'
727
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
728
+ #config.api_key_prefix['api-key'] = 'Bearer'
729
+ end
730
+
731
+ api_instance = SibApiV3Sdk::ContactsApi.new
732
+
733
+ folder_id = "folder_id_example" # String | id of the folder
734
+
735
+
736
+ begin
737
+ #Returns folder details
738
+ result = api_instance.get_folder(folder_id)
739
+ p result
740
+ rescue SibApiV3Sdk::ApiError => e
741
+ puts "Exception when calling ContactsApi->get_folder: #{e}"
742
+ end
743
+ ```
744
+
745
+ ### Parameters
746
+
747
+ Name | Type | Description | Notes
748
+ ------------- | ------------- | ------------- | -------------
749
+ **folder_id** | **String**| id of the folder |
750
+
751
+ ### Return type
752
+
753
+ [**GetFolder**](GetFolder.md)
754
+
755
+ ### Authorization
756
+
757
+ [api-key](../README.md#api-key)
758
+
759
+ ### HTTP request headers
760
+
761
+ - **Content-Type**: application/json
762
+ - **Accept**: application/json
763
+
764
+
765
+
766
+ # **get_folder_lists**
767
+ > GetFolderLists get_folder_lists(folder_id, opts)
768
+
769
+ Get the lists in a folder
770
+
771
+ ### Example
772
+ ```ruby
773
+ # load the gem
774
+ require 'sib-api-v3-sdk'
775
+ # setup authorization
776
+ SibApiV3Sdk.configure do |config|
777
+ # Configure API key authorization: api-key
778
+ config.api_key['api-key'] = 'YOUR API KEY'
779
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
780
+ #config.api_key_prefix['api-key'] = 'Bearer'
781
+ end
782
+
783
+ api_instance = SibApiV3Sdk::ContactsApi.new
784
+
785
+ folder_id = "folder_id_example" # String | Id of the folder
786
+
787
+ opts = {
788
+ limit: 10, # Integer | Number of documents per page
789
+ offset: 0 # Integer | Index of the first document of the page
790
+ }
791
+
792
+ begin
793
+ #Get the lists in a folder
794
+ result = api_instance.get_folder_lists(folder_id, opts)
795
+ p result
796
+ rescue SibApiV3Sdk::ApiError => e
797
+ puts "Exception when calling ContactsApi->get_folder_lists: #{e}"
798
+ end
799
+ ```
800
+
801
+ ### Parameters
802
+
803
+ Name | Type | Description | Notes
804
+ ------------- | ------------- | ------------- | -------------
805
+ **folder_id** | **String**| Id of the folder |
806
+ **limit** | **Integer**| Number of documents per page | [optional] [default to 10]
807
+ **offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
808
+
809
+ ### Return type
810
+
811
+ [**GetFolderLists**](GetFolderLists.md)
812
+
813
+ ### Authorization
814
+
815
+ [api-key](../README.md#api-key)
816
+
817
+ ### HTTP request headers
818
+
819
+ - **Content-Type**: application/json
820
+ - **Accept**: application/json
821
+
822
+
823
+
824
+ # **get_folders**
825
+ > GetFolders get_folders(limit, offset)
826
+
827
+ Get all the folders
828
+
829
+ ### Example
830
+ ```ruby
831
+ # load the gem
832
+ require 'sib-api-v3-sdk'
833
+ # setup authorization
834
+ SibApiV3Sdk.configure do |config|
835
+ # Configure API key authorization: api-key
836
+ config.api_key['api-key'] = 'YOUR API KEY'
837
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
838
+ #config.api_key_prefix['api-key'] = 'Bearer'
839
+ end
840
+
841
+ api_instance = SibApiV3Sdk::ContactsApi.new
842
+
843
+ limit = 10 # Integer | Number of documents per page
844
+
845
+ offset = 0 # Integer | Index of the first document of the page
846
+
847
+
848
+ begin
849
+ #Get all the folders
850
+ result = api_instance.get_folders(limit, offset)
851
+ p result
852
+ rescue SibApiV3Sdk::ApiError => e
853
+ puts "Exception when calling ContactsApi->get_folders: #{e}"
854
+ end
855
+ ```
856
+
857
+ ### Parameters
858
+
859
+ Name | Type | Description | Notes
860
+ ------------- | ------------- | ------------- | -------------
861
+ **limit** | **Integer**| Number of documents per page | [default to 10]
862
+ **offset** | **Integer**| Index of the first document of the page | [default to 0]
863
+
864
+ ### Return type
865
+
866
+ [**GetFolders**](GetFolders.md)
867
+
868
+ ### Authorization
869
+
870
+ [api-key](../README.md#api-key)
871
+
872
+ ### HTTP request headers
873
+
874
+ - **Content-Type**: application/json
875
+ - **Accept**: application/json
876
+
877
+
878
+
879
+ # **get_list**
880
+ > GetExtendedList get_list(list_id)
881
+
882
+ Get the details of a list
883
+
884
+ ### Example
885
+ ```ruby
886
+ # load the gem
887
+ require 'sib-api-v3-sdk'
888
+ # setup authorization
889
+ SibApiV3Sdk.configure do |config|
890
+ # Configure API key authorization: api-key
891
+ config.api_key['api-key'] = 'YOUR API KEY'
892
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
893
+ #config.api_key_prefix['api-key'] = 'Bearer'
894
+ end
895
+
896
+ api_instance = SibApiV3Sdk::ContactsApi.new
897
+
898
+ list_id = "list_id_example" # String | Id of the list
899
+
900
+
901
+ begin
902
+ #Get the details of a list
903
+ result = api_instance.get_list(list_id)
904
+ p result
905
+ rescue SibApiV3Sdk::ApiError => e
906
+ puts "Exception when calling ContactsApi->get_list: #{e}"
907
+ end
908
+ ```
909
+
910
+ ### Parameters
911
+
912
+ Name | Type | Description | Notes
913
+ ------------- | ------------- | ------------- | -------------
914
+ **list_id** | **String**| Id of the list |
915
+
916
+ ### Return type
917
+
918
+ [**GetExtendedList**](GetExtendedList.md)
919
+
920
+ ### Authorization
921
+
922
+ [api-key](../README.md#api-key)
923
+
924
+ ### HTTP request headers
925
+
926
+ - **Content-Type**: application/json
927
+ - **Accept**: application/json
928
+
929
+
930
+
931
+ # **get_lists**
932
+ > GetLists get_lists(opts)
933
+
934
+ Get all the lists
935
+
936
+ ### Example
937
+ ```ruby
938
+ # load the gem
939
+ require 'sib-api-v3-sdk'
940
+ # setup authorization
941
+ SibApiV3Sdk.configure do |config|
942
+ # Configure API key authorization: api-key
943
+ config.api_key['api-key'] = 'YOUR API KEY'
944
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
945
+ #config.api_key_prefix['api-key'] = 'Bearer'
946
+ end
947
+
948
+ api_instance = SibApiV3Sdk::ContactsApi.new
949
+
950
+ opts = {
951
+ limit: 10, # Integer | Number of documents per page
952
+ offset: 0 # Integer | Index of the first document of the page
953
+ }
954
+
955
+ begin
956
+ #Get all the lists
957
+ result = api_instance.get_lists(opts)
958
+ p result
959
+ rescue SibApiV3Sdk::ApiError => e
960
+ puts "Exception when calling ContactsApi->get_lists: #{e}"
961
+ end
962
+ ```
963
+
964
+ ### Parameters
965
+
966
+ Name | Type | Description | Notes
967
+ ------------- | ------------- | ------------- | -------------
968
+ **limit** | **Integer**| Number of documents per page | [optional] [default to 10]
969
+ **offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
970
+
971
+ ### Return type
972
+
973
+ [**GetLists**](GetLists.md)
974
+
975
+ ### Authorization
976
+
977
+ [api-key](../README.md#api-key)
978
+
979
+ ### HTTP request headers
980
+
981
+ - **Content-Type**: application/json
982
+ - **Accept**: application/json
983
+
984
+
985
+
986
+ # **import_contacts**
987
+ > CreatedProcessId import_contacts(request_contact_import)
988
+
989
+ Import contacts
990
+
991
+ It returns the background process ID which on completion calls the notify URL that you have set in the input.
992
+
993
+ ### Example
994
+ ```ruby
995
+ # load the gem
996
+ require 'sib-api-v3-sdk'
997
+ # setup authorization
998
+ SibApiV3Sdk.configure do |config|
999
+ # Configure API key authorization: api-key
1000
+ config.api_key['api-key'] = 'YOUR API KEY'
1001
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1002
+ #config.api_key_prefix['api-key'] = 'Bearer'
1003
+ end
1004
+
1005
+ api_instance = SibApiV3Sdk::ContactsApi.new
1006
+
1007
+ request_contact_import = SibApiV3Sdk::RequestContactImport.new # RequestContactImport | Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns``
1008
+
1009
+
1010
+ begin
1011
+ #Import contacts
1012
+ result = api_instance.import_contacts(request_contact_import)
1013
+ p result
1014
+ rescue SibApiV3Sdk::ApiError => e
1015
+ puts "Exception when calling ContactsApi->import_contacts: #{e}"
1016
+ end
1017
+ ```
1018
+
1019
+ ### Parameters
1020
+
1021
+ Name | Type | Description | Notes
1022
+ ------------- | ------------- | ------------- | -------------
1023
+ **request_contact_import** | [**RequestContactImport**](RequestContactImport.md)| Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` |
1024
+
1025
+ ### Return type
1026
+
1027
+ [**CreatedProcessId**](CreatedProcessId.md)
1028
+
1029
+ ### Authorization
1030
+
1031
+ [api-key](../README.md#api-key)
1032
+
1033
+ ### HTTP request headers
1034
+
1035
+ - **Content-Type**: application/json
1036
+ - **Accept**: application/json
1037
+
1038
+
1039
+
1040
+ # **remove_contact_to_list**
1041
+ > PostContactInfo remove_contact_to_list(list_id, contact_emails)
1042
+
1043
+ Remove existing contacts from a list
1044
+
1045
+ ### Example
1046
+ ```ruby
1047
+ # load the gem
1048
+ require 'sib-api-v3-sdk'
1049
+ # setup authorization
1050
+ SibApiV3Sdk.configure do |config|
1051
+ # Configure API key authorization: api-key
1052
+ config.api_key['api-key'] = 'YOUR API KEY'
1053
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1054
+ #config.api_key_prefix['api-key'] = 'Bearer'
1055
+ end
1056
+
1057
+ api_instance = SibApiV3Sdk::ContactsApi.new
1058
+
1059
+ list_id = "list_id_example" # String | Id of the list
1060
+
1061
+ contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails adresses of the contact
1062
+
1063
+
1064
+ begin
1065
+ #Remove existing contacts from a list
1066
+ result = api_instance.remove_contact_to_list(list_id, contact_emails)
1067
+ p result
1068
+ rescue SibApiV3Sdk::ApiError => e
1069
+ puts "Exception when calling ContactsApi->remove_contact_to_list: #{e}"
1070
+ end
1071
+ ```
1072
+
1073
+ ### Parameters
1074
+
1075
+ Name | Type | Description | Notes
1076
+ ------------- | ------------- | ------------- | -------------
1077
+ **list_id** | **String**| Id of the list |
1078
+ **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
1079
+
1080
+ ### Return type
1081
+
1082
+ [**PostContactInfo**](PostContactInfo.md)
1083
+
1084
+ ### Authorization
1085
+
1086
+ [api-key](../README.md#api-key)
1087
+
1088
+ ### HTTP request headers
1089
+
1090
+ - **Content-Type**: application/json
1091
+ - **Accept**: application/json
1092
+
1093
+
1094
+
1095
+ # **request_contact_export**
1096
+ > CreatedProcessId request_contact_export(request_contact_export)
1097
+
1098
+ Export contacts
1099
+
1100
+ It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv.
1101
+
1102
+ ### Example
1103
+ ```ruby
1104
+ # load the gem
1105
+ require 'sib-api-v3-sdk'
1106
+ # setup authorization
1107
+ SibApiV3Sdk.configure do |config|
1108
+ # Configure API key authorization: api-key
1109
+ config.api_key['api-key'] = 'YOUR API KEY'
1110
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1111
+ #config.api_key_prefix['api-key'] = 'Bearer'
1112
+ end
1113
+
1114
+ api_instance = SibApiV3Sdk::ContactsApi.new
1115
+
1116
+ request_contact_export = SibApiV3Sdk::RequestContactExport.new # RequestContactExport | Values to request a contact export
1117
+
1118
+
1119
+ begin
1120
+ #Export contacts
1121
+ result = api_instance.request_contact_export(request_contact_export)
1122
+ p result
1123
+ rescue SibApiV3Sdk::ApiError => e
1124
+ puts "Exception when calling ContactsApi->request_contact_export: #{e}"
1125
+ end
1126
+ ```
1127
+
1128
+ ### Parameters
1129
+
1130
+ Name | Type | Description | Notes
1131
+ ------------- | ------------- | ------------- | -------------
1132
+ **request_contact_export** | [**RequestContactExport**](RequestContactExport.md)| Values to request a contact export |
1133
+
1134
+ ### Return type
1135
+
1136
+ [**CreatedProcessId**](CreatedProcessId.md)
1137
+
1138
+ ### Authorization
1139
+
1140
+ [api-key](../README.md#api-key)
1141
+
1142
+ ### HTTP request headers
1143
+
1144
+ - **Content-Type**: application/json
1145
+ - **Accept**: application/json
1146
+
1147
+
1148
+
1149
+ # **update_contact**
1150
+ > update_contact(email, update_contact)
1151
+
1152
+ Updates a contact
1153
+
1154
+ ### Example
1155
+ ```ruby
1156
+ # load the gem
1157
+ require 'sib-api-v3-sdk'
1158
+ # setup authorization
1159
+ SibApiV3Sdk.configure do |config|
1160
+ # Configure API key authorization: api-key
1161
+ config.api_key['api-key'] = 'YOUR API KEY'
1162
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1163
+ #config.api_key_prefix['api-key'] = 'Bearer'
1164
+ end
1165
+
1166
+ api_instance = SibApiV3Sdk::ContactsApi.new
1167
+
1168
+ email = "email_example" # String | Email (urlencoded) of the contact
1169
+
1170
+ update_contact = SibApiV3Sdk::UpdateContact.new # UpdateContact | Values to update a contact
1171
+
1172
+
1173
+ begin
1174
+ #Updates a contact
1175
+ api_instance.update_contact(email, update_contact)
1176
+ rescue SibApiV3Sdk::ApiError => e
1177
+ puts "Exception when calling ContactsApi->update_contact: #{e}"
1178
+ end
1179
+ ```
1180
+
1181
+ ### Parameters
1182
+
1183
+ Name | Type | Description | Notes
1184
+ ------------- | ------------- | ------------- | -------------
1185
+ **email** | **String**| Email (urlencoded) of the contact |
1186
+ **update_contact** | [**UpdateContact**](UpdateContact.md)| Values to update a contact |
1187
+
1188
+ ### Return type
1189
+
1190
+ nil (empty response body)
1191
+
1192
+ ### Authorization
1193
+
1194
+ [api-key](../README.md#api-key)
1195
+
1196
+ ### HTTP request headers
1197
+
1198
+ - **Content-Type**: application/json
1199
+ - **Accept**: application/json
1200
+
1201
+
1202
+
1203
+ # **update_folder**
1204
+ > update_folder(folder_id, name)
1205
+
1206
+ Update a contact folder
1207
+
1208
+ ### Example
1209
+ ```ruby
1210
+ # load the gem
1211
+ require 'sib-api-v3-sdk'
1212
+ # setup authorization
1213
+ SibApiV3Sdk.configure do |config|
1214
+ # Configure API key authorization: api-key
1215
+ config.api_key['api-key'] = 'YOUR API KEY'
1216
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1217
+ #config.api_key_prefix['api-key'] = 'Bearer'
1218
+ end
1219
+
1220
+ api_instance = SibApiV3Sdk::ContactsApi.new
1221
+
1222
+ folder_id = "folder_id_example" # String | Id of the folder
1223
+
1224
+ name = SibApiV3Sdk::CreaUpdateFolder.new # CreaUpdateFolder | Name of the folder
1225
+
1226
+
1227
+ begin
1228
+ #Update a contact folder
1229
+ api_instance.update_folder(folder_id, name)
1230
+ rescue SibApiV3Sdk::ApiError => e
1231
+ puts "Exception when calling ContactsApi->update_folder: #{e}"
1232
+ end
1233
+ ```
1234
+
1235
+ ### Parameters
1236
+
1237
+ Name | Type | Description | Notes
1238
+ ------------- | ------------- | ------------- | -------------
1239
+ **folder_id** | **String**| Id of the folder |
1240
+ **name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder |
1241
+
1242
+ ### Return type
1243
+
1244
+ nil (empty response body)
1245
+
1246
+ ### Authorization
1247
+
1248
+ [api-key](../README.md#api-key)
1249
+
1250
+ ### HTTP request headers
1251
+
1252
+ - **Content-Type**: application/json
1253
+ - **Accept**: application/json
1254
+
1255
+
1256
+
1257
+ # **update_list**
1258
+ > update_list(list_id, update_list)
1259
+
1260
+ Update a list
1261
+
1262
+ ### Example
1263
+ ```ruby
1264
+ # load the gem
1265
+ require 'sib-api-v3-sdk'
1266
+ # setup authorization
1267
+ SibApiV3Sdk.configure do |config|
1268
+ # Configure API key authorization: api-key
1269
+ config.api_key['api-key'] = 'YOUR API KEY'
1270
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1271
+ #config.api_key_prefix['api-key'] = 'Bearer'
1272
+ end
1273
+
1274
+ api_instance = SibApiV3Sdk::ContactsApi.new
1275
+
1276
+ list_id = "list_id_example" # String | Id of the list
1277
+
1278
+ update_list = SibApiV3Sdk::UpdateList.new # UpdateList | Values to update a list
1279
+
1280
+
1281
+ begin
1282
+ #Update a list
1283
+ api_instance.update_list(list_id, update_list)
1284
+ rescue SibApiV3Sdk::ApiError => e
1285
+ puts "Exception when calling ContactsApi->update_list: #{e}"
1286
+ end
1287
+ ```
1288
+
1289
+ ### Parameters
1290
+
1291
+ Name | Type | Description | Notes
1292
+ ------------- | ------------- | ------------- | -------------
1293
+ **list_id** | **String**| Id of the list |
1294
+ **update_list** | [**UpdateList**](UpdateList.md)| Values to update a list |
1295
+
1296
+ ### Return type
1297
+
1298
+ nil (empty response body)
1299
+
1300
+ ### Authorization
1301
+
1302
+ [api-key](../README.md#api-key)
1303
+
1304
+ ### HTTP request headers
1305
+
1306
+ - **Content-Type**: application/json
1307
+ - **Accept**: application/json
1308
+
1309
+
1310
+