constant_contact_client 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 (406) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +56 -0
  3. data/Gemfile +9 -0
  4. data/Gemfile.lock +72 -0
  5. data/LICENSE +29 -0
  6. data/README.md +201 -0
  7. data/Rakefile +10 -0
  8. data/constant_contact_client.gemspec +39 -0
  9. data/docs/AccountServicesApi.md +593 -0
  10. data/docs/BulkActivitiesApi.md +1035 -0
  11. data/docs/ContactListsApi.md +461 -0
  12. data/docs/ContactTagsApi.md +382 -0
  13. data/docs/ContactsApi.md +701 -0
  14. data/docs/ContactsCustomFieldsApi.md +375 -0
  15. data/docs/ContactsReportingApi.md +244 -0
  16. data/docs/EmailCampaignsABTestsApi.md +227 -0
  17. data/docs/EmailCampaignsApi.md +826 -0
  18. data/docs/EmailReportingApi.md +925 -0
  19. data/docs/EmailSchedulingApi.md +447 -0
  20. data/docs/LandingPagesReportingApi.md +481 -0
  21. data/docs/SegmentsApi.md +452 -0
  22. data/lib/constant_contact_client/api/account_services_api.rb +546 -0
  23. data/lib/constant_contact_client/api/bulk_activities_api.rb +983 -0
  24. data/lib/constant_contact_client/api/contact_lists_api.rb +449 -0
  25. data/lib/constant_contact_client/api/contact_tags_api.rb +356 -0
  26. data/lib/constant_contact_client/api/contacts_api.rb +676 -0
  27. data/lib/constant_contact_client/api/contacts_custom_fields_api.rb +356 -0
  28. data/lib/constant_contact_client/api/contacts_reporting_api.rb +255 -0
  29. data/lib/constant_contact_client/api/email_campaigns_ab_tests_api.rb +220 -0
  30. data/lib/constant_contact_client/api/email_campaigns_api.rb +766 -0
  31. data/lib/constant_contact_client/api/email_reporting_api.rb +812 -0
  32. data/lib/constant_contact_client/api/email_scheduling_api.rb +418 -0
  33. data/lib/constant_contact_client/api/landing_pages_reporting_api.rb +436 -0
  34. data/lib/constant_contact_client/api/segments_api.rb +425 -0
  35. data/lib/constant_contact_client/api_client.rb +394 -0
  36. data/lib/constant_contact_client/api_error.rb +58 -0
  37. data/lib/constant_contact_client/configuration.rb +305 -0
  38. data/lib/constant_contact_client/models/ab_test_data.rb +256 -0
  39. data/lib/constant_contact_client/models/access_token_response.rb +265 -0
  40. data/lib/constant_contact_client/models/account_cancellation.rb +226 -0
  41. data/lib/constant_contact_client/models/account_email_create_response.rb +273 -0
  42. data/lib/constant_contact_client/models/account_email_input.rb +234 -0
  43. data/lib/constant_contact_client/models/account_physical_address.rb +409 -0
  44. data/lib/constant_contact_client/models/account_suspension.rb +289 -0
  45. data/lib/constant_contact_client/models/activities.rb +226 -0
  46. data/lib/constant_contact_client/models/activity.rb +316 -0
  47. data/lib/constant_contact_client/models/activity_delete_custom_fields.rb +297 -0
  48. data/lib/constant_contact_client/models/activity_delete_list_response.rb +276 -0
  49. data/lib/constant_contact_client/models/activity_delete_lists_response.rb +305 -0
  50. data/lib/constant_contact_client/models/activity_delete_status.rb +306 -0
  51. data/lib/constant_contact_client/models/activity_errors.rb +215 -0
  52. data/lib/constant_contact_client/models/activity_export_status.rb +306 -0
  53. data/lib/constant_contact_client/models/activity_generic.rb +299 -0
  54. data/lib/constant_contact_client/models/activity_generic_status.rb +225 -0
  55. data/lib/constant_contact_client/models/activity_import.rb +316 -0
  56. data/lib/constant_contact_client/models/activity_links.rb +223 -0
  57. data/lib/constant_contact_client/models/activity_lists_membership.rb +305 -0
  58. data/lib/constant_contact_client/models/activity_reference.rb +225 -0
  59. data/lib/constant_contact_client/models/activity_status.rb +275 -0
  60. data/lib/constant_contact_client/models/activity_status_export_link.rb +223 -0
  61. data/lib/constant_contact_client/models/activity_status_link.rb +214 -0
  62. data/lib/constant_contact_client/models/activity_tagging.rb +319 -0
  63. data/lib/constant_contact_client/models/activity_tagging_status.rb +226 -0
  64. data/lib/constant_contact_client/models/add_account_email_address201_response.rb +273 -0
  65. data/lib/constant_contact_client/models/add_account_email_address_request.rb +234 -0
  66. data/lib/constant_contact_client/models/api_error_schema_inner.rb +225 -0
  67. data/lib/constant_contact_client/models/authorization_error_schema.rb +225 -0
  68. data/lib/constant_contact_client/models/bounces_tracking_activities_page.rb +240 -0
  69. data/lib/constant_contact_client/models/bounces_tracking_activity.rb +347 -0
  70. data/lib/constant_contact_client/models/bulk_email_campaign_summaries_page.rb +249 -0
  71. data/lib/constant_contact_client/models/bulk_email_campaign_summaries_percents.rb +255 -0
  72. data/lib/constant_contact_client/models/bulk_email_campaign_summary.rb +272 -0
  73. data/lib/constant_contact_client/models/campaign_activity_stats_query_result_email.rb +229 -0
  74. data/lib/constant_contact_client/models/campaign_activity_stats_result_generic_stats_email_activity.rb +244 -0
  75. data/lib/constant_contact_client/models/campaign_activity_summary.rb +341 -0
  76. data/lib/constant_contact_client/models/campaign_stats_query_result_email.rb +229 -0
  77. data/lib/constant_contact_client/models/campaign_stats_result_generic_stats_email_percents_email.rb +243 -0
  78. data/lib/constant_contact_client/models/clicks_tracking_activities_page.rb +233 -0
  79. data/lib/constant_contact_client/models/clicks_tracking_activity.rb +364 -0
  80. data/lib/constant_contact_client/models/company_logo.rb +235 -0
  81. data/lib/constant_contact_client/models/contact_campaign_activities_summary.rb +250 -0
  82. data/lib/constant_contact_client/models/contact_create_or_update_input.rb +503 -0
  83. data/lib/constant_contact_client/models/contact_create_or_update_response.rb +225 -0
  84. data/lib/constant_contact_client/models/contact_custom_field.rb +259 -0
  85. data/lib/constant_contact_client/models/contact_delete.rb +267 -0
  86. data/lib/constant_contact_client/models/contact_list.rb +301 -0
  87. data/lib/constant_contact_client/models/contact_list_array.rb +235 -0
  88. data/lib/constant_contact_client/models/contact_list_put_post.rb +291 -0
  89. data/lib/constant_contact_client/models/contact_open_and_click_rates.rb +274 -0
  90. data/lib/constant_contact_client/models/contact_post_request.rb +575 -0
  91. data/lib/constant_contact_client/models/contact_put_request.rb +582 -0
  92. data/lib/constant_contact_client/models/contact_resource.rb +635 -0
  93. data/lib/constant_contact_client/models/contact_tracking_activities_page.rb +227 -0
  94. data/lib/constant_contact_client/models/contact_tracking_activity.rb +270 -0
  95. data/lib/constant_contact_client/models/contact_xref.rb +226 -0
  96. data/lib/constant_contact_client/models/contact_xrefs.rb +236 -0
  97. data/lib/constant_contact_client/models/contacts.rb +246 -0
  98. data/lib/constant_contact_client/models/contacts_counts.rb +265 -0
  99. data/lib/constant_contact_client/models/contacts_export.rb +300 -0
  100. data/lib/constant_contact_client/models/contacts_json_import.rb +281 -0
  101. data/lib/constant_contact_client/models/create_contact_request.rb +575 -0
  102. data/lib/constant_contact_client/models/create_contact_request_email_address.rb +252 -0
  103. data/lib/constant_contact_client/models/create_csv_import_activity201_response.rb +316 -0
  104. data/lib/constant_contact_client/models/create_csv_import_activity201_response_links.rb +214 -0
  105. data/lib/constant_contact_client/models/create_csv_import_activity201_response_status.rb +255 -0
  106. data/lib/constant_contact_client/models/create_delete_activity201_response.rb +306 -0
  107. data/lib/constant_contact_client/models/create_delete_activity201_response_links.rb +214 -0
  108. data/lib/constant_contact_client/models/create_delete_activity201_response_links_self.rb +215 -0
  109. data/lib/constant_contact_client/models/create_delete_activity201_response_status.rb +235 -0
  110. data/lib/constant_contact_client/models/create_delete_activity_request.rb +267 -0
  111. data/lib/constant_contact_client/models/create_email_campaign200_response.rb +306 -0
  112. data/lib/constant_contact_client/models/create_email_campaign200_response_campaign_activities_inner.rb +225 -0
  113. data/lib/constant_contact_client/models/create_email_campaign_request.rb +260 -0
  114. data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner.rb +402 -0
  115. data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner_physical_address_in_footer.rb +347 -0
  116. data/lib/constant_contact_client/models/create_export_activity201_response.rb +306 -0
  117. data/lib/constant_contact_client/models/create_export_activity201_response_status.rb +225 -0
  118. data/lib/constant_contact_client/models/create_export_activity_request.rb +300 -0
  119. data/lib/constant_contact_client/models/create_import_json_activity_request.rb +281 -0
  120. data/lib/constant_contact_client/models/create_import_json_activity_request_import_data_inner.rb +1315 -0
  121. data/lib/constant_contact_client/models/create_list_add_activity_request.rb +268 -0
  122. data/lib/constant_contact_client/models/create_list_add_activity_request_exclude.rb +217 -0
  123. data/lib/constant_contact_client/models/create_list_add_activity_request_source.rb +331 -0
  124. data/lib/constant_contact_client/models/create_list_delete_activity201_response.rb +305 -0
  125. data/lib/constant_contact_client/models/create_list_delete_activity201_response_links.rb +214 -0
  126. data/lib/constant_contact_client/models/create_list_delete_activity201_response_links_self.rb +215 -0
  127. data/lib/constant_contact_client/models/create_list_delete_activity201_response_status.rb +215 -0
  128. data/lib/constant_contact_client/models/create_list_delete_activity_request.rb +243 -0
  129. data/lib/constant_contact_client/models/create_list_remove_activity201_response.rb +305 -0
  130. data/lib/constant_contact_client/models/create_list_remove_activity201_response_status.rb +235 -0
  131. data/lib/constant_contact_client/models/create_list_remove_activity_request.rb +268 -0
  132. data/lib/constant_contact_client/models/create_list_remove_activity_request_exclude.rb +217 -0
  133. data/lib/constant_contact_client/models/create_list_remove_activity_request_source.rb +321 -0
  134. data/lib/constant_contact_client/models/create_or_update_contact200_response.rb +225 -0
  135. data/lib/constant_contact_client/models/create_or_update_contact_custom_field.rb +244 -0
  136. data/lib/constant_contact_client/models/create_or_update_contact_request.rb +503 -0
  137. data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb +244 -0
  138. data/lib/constant_contact_client/models/create_or_update_contact_request_street_address.rb +367 -0
  139. data/lib/constant_contact_client/models/create_resend_email_campaign201_response.rb +255 -0
  140. data/lib/constant_contact_client/models/create_resend_email_campaign_request.rb +242 -0
  141. data/lib/constant_contact_client/models/create_segment201_response.rb +274 -0
  142. data/lib/constant_contact_client/models/create_segment_request.rb +258 -0
  143. data/lib/constant_contact_client/models/create_tag_delete_activity_request.rb +243 -0
  144. data/lib/constant_contact_client/models/create_tag_remove_activity201_response.rb +319 -0
  145. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links.rb +223 -0
  146. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_results.rb +215 -0
  147. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_self.rb +214 -0
  148. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_status.rb +226 -0
  149. data/lib/constant_contact_client/models/create_tag_remove_activity_request.rb +268 -0
  150. data/lib/constant_contact_client/models/create_tag_remove_activity_request_exclude.rb +218 -0
  151. data/lib/constant_contact_client/models/create_tag_remove_activity_request_source.rb +319 -0
  152. data/lib/constant_contact_client/models/cross_reference.rb +235 -0
  153. data/lib/constant_contact_client/models/cross_reference_response.rb +217 -0
  154. data/lib/constant_contact_client/models/custom_field_id100.rb +243 -0
  155. data/lib/constant_contact_client/models/custom_field_input.rb +258 -0
  156. data/lib/constant_contact_client/models/custom_field_resource.rb +318 -0
  157. data/lib/constant_contact_client/models/custom_fields.rb +245 -0
  158. data/lib/constant_contact_client/models/customer.rb +352 -0
  159. data/lib/constant_contact_client/models/customer_put.rb +334 -0
  160. data/lib/constant_contact_client/models/delete_list202_response.rb +276 -0
  161. data/lib/constant_contact_client/models/delete_tag202_response.rb +299 -0
  162. data/lib/constant_contact_client/models/delete_tag202_response_activity_errors_inner.rb +215 -0
  163. data/lib/constant_contact_client/models/delete_tag202_response_links.rb +214 -0
  164. data/lib/constant_contact_client/models/delete_tag202_response_links_self.rb +215 -0
  165. data/lib/constant_contact_client/models/delete_tag202_response_status.rb +225 -0
  166. data/lib/constant_contact_client/models/device_flow_response.rb +265 -0
  167. data/lib/constant_contact_client/models/did_not_opens_tracking_activities_page.rb +233 -0
  168. data/lib/constant_contact_client/models/did_not_opens_tracking_activity.rb +320 -0
  169. data/lib/constant_contact_client/models/email_address.rb +351 -0
  170. data/lib/constant_contact_client/models/email_address_post.rb +252 -0
  171. data/lib/constant_contact_client/models/email_address_put.rb +341 -0
  172. data/lib/constant_contact_client/models/email_campaign.rb +306 -0
  173. data/lib/constant_contact_client/models/email_campaign_activity.rb +405 -0
  174. data/lib/constant_contact_client/models/email_campaign_activity_input.rb +402 -0
  175. data/lib/constant_contact_client/models/email_campaign_activity_preview.rb +285 -0
  176. data/lib/constant_contact_client/models/email_campaign_complete.rb +260 -0
  177. data/lib/constant_contact_client/models/email_campaign_name.rb +241 -0
  178. data/lib/constant_contact_client/models/email_campaigns.rb +294 -0
  179. data/lib/constant_contact_client/models/email_link_click_count.rb +265 -0
  180. data/lib/constant_contact_client/models/email_links.rb +227 -0
  181. data/lib/constant_contact_client/models/email_physical_address.rb +346 -0
  182. data/lib/constant_contact_client/models/email_schedule_input.rb +222 -0
  183. data/lib/constant_contact_client/models/email_test_send_input.rb +253 -0
  184. data/lib/constant_contact_client/models/emails_link.rb +214 -0
  185. data/lib/constant_contact_client/models/emails_paging_links.rb +214 -0
  186. data/lib/constant_contact_client/models/file_object.rb +384 -0
  187. data/lib/constant_contact_client/models/file_status_array_inner.rb +235 -0
  188. data/lib/constant_contact_client/models/forwards_tracking_activities_page.rb +233 -0
  189. data/lib/constant_contact_client/models/forwards_tracking_activity.rb +320 -0
  190. data/lib/constant_contact_client/models/get_ab_test_email_campaign200_response.rb +256 -0
  191. data/lib/constant_contact_client/models/get_account_details200_response.rb +352 -0
  192. data/lib/constant_contact_client/models/get_account_details200_response_company_logo.rb +236 -0
  193. data/lib/constant_contact_client/models/get_account_details200_response_physical_address.rb +409 -0
  194. data/lib/constant_contact_client/models/get_activity_by_id200_response.rb +316 -0
  195. data/lib/constant_contact_client/models/get_all_account_email_addresses200_response_inner.rb +317 -0
  196. data/lib/constant_contact_client/models/get_all_activities200_response.rb +226 -0
  197. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner.rb +316 -0
  198. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links.rb +223 -0
  199. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_results.rb +215 -0
  200. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_self.rb +215 -0
  201. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_status.rb +275 -0
  202. data/lib/constant_contact_client/models/get_all_activities200_response_links.rb +214 -0
  203. data/lib/constant_contact_client/models/get_all_activities200_response_links_next.rb +214 -0
  204. data/lib/constant_contact_client/models/get_all_contacts200_response.rb +246 -0
  205. data/lib/constant_contact_client/models/get_all_custom_fields200_response.rb +245 -0
  206. data/lib/constant_contact_client/models/get_all_email_campaigns200_response.rb +225 -0
  207. data/lib/constant_contact_client/models/get_all_email_campaigns200_response_campaigns_inner.rb +294 -0
  208. data/lib/constant_contact_client/models/get_all_email_campaigns200_response_links.rb +214 -0
  209. data/lib/constant_contact_client/models/get_all_lists200_response.rb +235 -0
  210. data/lib/constant_contact_client/models/get_all_segments200_response.rb +233 -0
  211. data/lib/constant_contact_client/models/get_all_segments200_response_links.rb +222 -0
  212. data/lib/constant_contact_client/models/get_all_segments200_response_links_next.rb +223 -0
  213. data/lib/constant_contact_client/models/get_all_segments200_response_segments_inner.rb +245 -0
  214. data/lib/constant_contact_client/models/get_all_tags200_response.rb +226 -0
  215. data/lib/constant_contact_client/models/get_all_tags200_response_links.rb +215 -0
  216. data/lib/constant_contact_client/models/get_all_tags200_response_links_next.rb +224 -0
  217. data/lib/constant_contact_client/models/get_all_tags200_response_links_next_next.rb +223 -0
  218. data/lib/constant_contact_client/models/get_bounces_report200_response.rb +240 -0
  219. data/lib/constant_contact_client/models/get_bounces_report200_response_links.rb +222 -0
  220. data/lib/constant_contact_client/models/get_bounces_report200_response_tracking_activities_inner.rb +347 -0
  221. data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response.rb +227 -0
  222. data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response_link_click_counts_inner.rb +265 -0
  223. data/lib/constant_contact_client/models/get_clicks_report200_response.rb +233 -0
  224. data/lib/constant_contact_client/models/get_clicks_report200_response_links.rb +222 -0
  225. data/lib/constant_contact_client/models/get_clicks_report200_response_tracking_activities_inner.rb +364 -0
  226. data/lib/constant_contact_client/models/get_contact_adds200_response.rb +240 -0
  227. data/lib/constant_contact_client/models/get_contact_adds200_response_tracking_activities_inner.rb +329 -0
  228. data/lib/constant_contact_client/models/get_contact_by_id200_response.rb +635 -0
  229. data/lib/constant_contact_client/models/get_contact_by_id200_response_custom_fields_inner.rb +259 -0
  230. data/lib/constant_contact_client/models/get_contact_by_id200_response_email_address.rb +351 -0
  231. data/lib/constant_contact_client/models/get_contact_by_id200_response_notes_inner.rb +255 -0
  232. data/lib/constant_contact_client/models/get_contact_by_id200_response_phone_numbers_inner.rb +294 -0
  233. data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel.rb +278 -0
  234. data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel_sms_channel_consents_inner.rb +285 -0
  235. data/lib/constant_contact_client/models/get_contact_by_id200_response_street_addresses_inner.rb +397 -0
  236. data/lib/constant_contact_client/models/get_contact_counts200_response.rb +265 -0
  237. data/lib/constant_contact_client/models/get_contact_id_xrefs200_response.rb +236 -0
  238. data/lib/constant_contact_client/models/get_contact_id_xrefs200_response_xrefs_inner.rb +226 -0
  239. data/lib/constant_contact_client/models/get_contact_open_click_rate_report200_response.rb +274 -0
  240. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response.rb +250 -0
  241. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_campaign_activities_inner.rb +341 -0
  242. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_links.rb +222 -0
  243. data/lib/constant_contact_client/models/get_contact_tracking_report200_response.rb +227 -0
  244. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links.rb +222 -0
  245. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links_next.rb +223 -0
  246. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_tracking_activities_inner.rb +270 -0
  247. data/lib/constant_contact_client/models/get_custom_field200_response.rb +318 -0
  248. data/lib/constant_contact_client/models/get_did_not_opens_report200_response.rb +233 -0
  249. data/lib/constant_contact_client/models/get_did_not_opens_report200_response_tracking_activities_inner.rb +320 -0
  250. data/lib/constant_contact_client/models/get_email_campaign_activity200_response.rb +405 -0
  251. data/lib/constant_contact_client/models/get_email_campaign_activity200_response_document_properties.rb +520 -0
  252. data/lib/constant_contact_client/models/get_email_campaign_activity200_response_physical_address_in_footer.rb +347 -0
  253. data/lib/constant_contact_client/models/get_email_campaign_activity_preview200_response.rb +285 -0
  254. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response.rb +229 -0
  255. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner.rb +244 -0
  256. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner_stats.rb +476 -0
  257. data/lib/constant_contact_client/models/get_email_campaign_activity_schedule200_response_inner.rb +215 -0
  258. data/lib/constant_contact_client/models/get_email_campaign_activity_send_history200_response_inner.rb +298 -0
  259. data/lib/constant_contact_client/models/get_email_campaign_report200_response.rb +249 -0
  260. data/lib/constant_contact_client/models/get_email_campaign_report200_response_aggregate_percents.rb +256 -0
  261. data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner.rb +272 -0
  262. data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner_unique_counts.rb +342 -0
  263. data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response.rb +217 -0
  264. data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response_xrefs_inner.rb +235 -0
  265. data/lib/constant_contact_client/models/get_email_opens_report200_response.rb +233 -0
  266. data/lib/constant_contact_client/models/get_email_opens_report200_response_tracking_activities_inner.rb +330 -0
  267. data/lib/constant_contact_client/models/get_email_sends_report200_response.rb +233 -0
  268. data/lib/constant_contact_client/models/get_email_sends_report200_response_links.rb +222 -0
  269. data/lib/constant_contact_client/models/get_email_sends_report200_response_tracking_activities_inner.rb +320 -0
  270. data/lib/constant_contact_client/models/get_email_stats_report200_response.rb +229 -0
  271. data/lib/constant_contact_client/models/get_email_stats_report200_response_errors_inner.rb +225 -0
  272. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner.rb +243 -0
  273. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_percents.rb +296 -0
  274. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_stats.rb +396 -0
  275. data/lib/constant_contact_client/models/get_forwards_report200_response.rb +233 -0
  276. data/lib/constant_contact_client/models/get_forwards_report200_response_tracking_activities_inner.rb +320 -0
  277. data/lib/constant_contact_client/models/get_list200_response.rb +301 -0
  278. data/lib/constant_contact_client/models/get_list_id_xrefs200_response.rb +236 -0
  279. data/lib/constant_contact_client/models/get_list_id_xrefs200_response_xrefs_inner.rb +226 -0
  280. data/lib/constant_contact_client/models/get_optouts_report200_response.rb +240 -0
  281. data/lib/constant_contact_client/models/get_optouts_report200_response_tracking_activities_inner.rb +330 -0
  282. data/lib/constant_contact_client/models/get_resend_email_campaign200_response_inner.rb +265 -0
  283. data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner.rb +255 -0
  284. data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner_history_details.rb +316 -0
  285. data/lib/constant_contact_client/models/get_tag200_response.rb +265 -0
  286. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response.rb +240 -0
  287. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links.rb +222 -0
  288. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links_next.rb +223 -0
  289. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner.rb +366 -0
  290. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner_sms_channel.rb +246 -0
  291. data/lib/constant_contact_client/models/get_unique_contact_opens200_response.rb +240 -0
  292. data/lib/constant_contact_client/models/get_unique_contact_opens200_response_tracking_activities_inner.rb +339 -0
  293. data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response.rb +240 -0
  294. data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response_tracking_activities_inner.rb +329 -0
  295. data/lib/constant_contact_client/models/get_unique_contact_updates200_response.rb +240 -0
  296. data/lib/constant_contact_client/models/get_unique_contact_updates200_response_tracking_activities_inner.rb +329 -0
  297. data/lib/constant_contact_client/models/get_user_privileges200_response_inner.rb +225 -0
  298. data/lib/constant_contact_client/models/headers_object.rb +225 -0
  299. data/lib/constant_contact_client/models/history_details.rb +316 -0
  300. data/lib/constant_contact_client/models/json_import_contact.rb +1315 -0
  301. data/lib/constant_contact_client/models/link.rb +214 -0
  302. data/lib/constant_contact_client/models/links.rb +221 -0
  303. data/lib/constant_contact_client/models/list_activity_add_contacts.rb +268 -0
  304. data/lib/constant_contact_client/models/list_activity_remove_contacts.rb +268 -0
  305. data/lib/constant_contact_client/models/list_id_list100.rb +243 -0
  306. data/lib/constant_contact_client/models/list_input.rb +263 -0
  307. data/lib/constant_contact_client/models/list_xref.rb +226 -0
  308. data/lib/constant_contact_client/models/list_xrefs.rb +236 -0
  309. data/lib/constant_contact_client/models/lpreporting_links.rb +221 -0
  310. data/lib/constant_contact_client/models/lpreporting_next.rb +222 -0
  311. data/lib/constant_contact_client/models/model_next.rb +222 -0
  312. data/lib/constant_contact_client/models/my_library_file_collection_inner.rb +384 -0
  313. data/lib/constant_contact_client/models/my_library_file_collection_inner_thumbnail.rb +235 -0
  314. data/lib/constant_contact_client/models/note.rb +255 -0
  315. data/lib/constant_contact_client/models/o_auth_error.rb +223 -0
  316. data/lib/constant_contact_client/models/opens_tracking_activities_page.rb +233 -0
  317. data/lib/constant_contact_client/models/opens_tracking_activity.rb +330 -0
  318. data/lib/constant_contact_client/models/optouts_tracking_activities_page.rb +240 -0
  319. data/lib/constant_contact_client/models/optouts_tracking_activity.rb +330 -0
  320. data/lib/constant_contact_client/models/p_contact_add_tracking_activities_page.rb +240 -0
  321. data/lib/constant_contact_client/models/p_contact_add_tracking_activity.rb +329 -0
  322. data/lib/constant_contact_client/models/p_contact_click_tracking_activities_page.rb +240 -0
  323. data/lib/constant_contact_client/models/p_contact_click_tracking_activity.rb +366 -0
  324. data/lib/constant_contact_client/models/p_contact_open_tracking_activity.rb +339 -0
  325. data/lib/constant_contact_client/models/p_contact_opens_tracking_activities_page.rb +240 -0
  326. data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activities_page.rb +240 -0
  327. data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activity.rb +329 -0
  328. data/lib/constant_contact_client/models/p_contact_update_tracking_activities_page.rb +240 -0
  329. data/lib/constant_contact_client/models/p_contact_update_tracking_activity.rb +329 -0
  330. data/lib/constant_contact_client/models/paged_email_campaign_response.rb +225 -0
  331. data/lib/constant_contact_client/models/pagination_links.rb +214 -0
  332. data/lib/constant_contact_client/models/pagination_links_next.rb +215 -0
  333. data/lib/constant_contact_client/models/paging_links.rb +214 -0
  334. data/lib/constant_contact_client/models/partner_account.rb +233 -0
  335. data/lib/constant_contact_client/models/partner_account_links.rb +215 -0
  336. data/lib/constant_contact_client/models/partner_account_operations_request.rb +286 -0
  337. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_headers_inner.rb +225 -0
  338. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_path_parameters_inner.rb +225 -0
  339. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_query_parameters_inner.rb +225 -0
  340. data/lib/constant_contact_client/models/partner_account_site_owner_list_inner.rb +265 -0
  341. data/lib/constant_contact_client/models/partners_link.rb +214 -0
  342. data/lib/constant_contact_client/models/patch_email_campaign_name_request.rb +241 -0
  343. data/lib/constant_contact_client/models/path_param_object.rb +225 -0
  344. data/lib/constant_contact_client/models/percents_email.rb +295 -0
  345. data/lib/constant_contact_client/models/phone_number.rb +294 -0
  346. data/lib/constant_contact_client/models/phone_number_put.rb +244 -0
  347. data/lib/constant_contact_client/models/plan_info.rb +236 -0
  348. data/lib/constant_contact_client/models/plan_tiers_object.rb +248 -0
  349. data/lib/constant_contact_client/models/plan_tiers_object_current_tiers_inner.rb +278 -0
  350. data/lib/constant_contact_client/models/post_custom_field_delete201_response.rb +297 -0
  351. data/lib/constant_contact_client/models/post_custom_field_delete_request.rb +243 -0
  352. data/lib/constant_contact_client/models/post_tag_request.rb +260 -0
  353. data/lib/constant_contact_client/models/provision.rb +723 -0
  354. data/lib/constant_contact_client/models/provision_response.rb +225 -0
  355. data/lib/constant_contact_client/models/put_tag_request.rb +250 -0
  356. data/lib/constant_contact_client/models/query_param_object.rb +225 -0
  357. data/lib/constant_contact_client/models/reporting_links.rb +221 -0
  358. data/lib/constant_contact_client/models/reporting_next.rb +222 -0
  359. data/lib/constant_contact_client/models/resend_to_non_openers_input.rb +242 -0
  360. data/lib/constant_contact_client/models/resend_to_non_openers_object.rb +255 -0
  361. data/lib/constant_contact_client/models/schedule_email_campaign_activity_request.rb +222 -0
  362. data/lib/constant_contact_client/models/segment_data.rb +258 -0
  363. data/lib/constant_contact_client/models/segment_detail.rb +274 -0
  364. data/lib/constant_contact_client/models/segment_master.rb +245 -0
  365. data/lib/constant_contact_client/models/segment_name.rb +222 -0
  366. data/lib/constant_contact_client/models/segments_dto.rb +233 -0
  367. data/lib/constant_contact_client/models/sends_tracking_activities_page.rb +233 -0
  368. data/lib/constant_contact_client/models/sends_tracking_activity.rb +320 -0
  369. data/lib/constant_contact_client/models/sms_channel_consent_details.rb +285 -0
  370. data/lib/constant_contact_client/models/sso_user.rb +439 -0
  371. data/lib/constant_contact_client/models/stats_email.rb +395 -0
  372. data/lib/constant_contact_client/models/stats_email_activity.rb +475 -0
  373. data/lib/constant_contact_client/models/stats_error.rb +225 -0
  374. data/lib/constant_contact_client/models/street_address.rb +397 -0
  375. data/lib/constant_contact_client/models/street_address_put.rb +367 -0
  376. data/lib/constant_contact_client/models/tag.rb +265 -0
  377. data/lib/constant_contact_client/models/tag_add_remove_contacts.rb +268 -0
  378. data/lib/constant_contact_client/models/tag_id_list500_limit.rb +243 -0
  379. data/lib/constant_contact_client/models/tag_post.rb +260 -0
  380. data/lib/constant_contact_client/models/tag_put.rb +250 -0
  381. data/lib/constant_contact_client/models/tags.rb +226 -0
  382. data/lib/constant_contact_client/models/tags_activity_links.rb +214 -0
  383. data/lib/constant_contact_client/models/tags_links.rb +223 -0
  384. data/lib/constant_contact_client/models/tags_paging_links.rb +214 -0
  385. data/lib/constant_contact_client/models/test_send_email_campaign_activity_request.rb +253 -0
  386. data/lib/constant_contact_client/models/tier_object.rb +278 -0
  387. data/lib/constant_contact_client/models/tracking_activity_sms_channel_dto.rb +245 -0
  388. data/lib/constant_contact_client/models/unique_email_counts.rb +341 -0
  389. data/lib/constant_contact_client/models/update_account_request.rb +334 -0
  390. data/lib/constant_contact_client/models/update_contact_request.rb +582 -0
  391. data/lib/constant_contact_client/models/update_contact_request_email_address.rb +341 -0
  392. data/lib/constant_contact_client/models/update_contact_request_phone_numbers_inner.rb +244 -0
  393. data/lib/constant_contact_client/models/update_contact_request_street_addresses_inner.rb +367 -0
  394. data/lib/constant_contact_client/models/update_custom_field_request.rb +258 -0
  395. data/lib/constant_contact_client/models/update_list200_response.rb +291 -0
  396. data/lib/constant_contact_client/models/update_list_request.rb +263 -0
  397. data/lib/constant_contact_client/models/update_segment_name_request.rb +222 -0
  398. data/lib/constant_contact_client/models/webhooks_subscription_body.rb +215 -0
  399. data/lib/constant_contact_client/models/webhooks_subscription_collection_inner.rb +245 -0
  400. data/lib/constant_contact_client/models/webhooks_subscription_put_resp.rb +225 -0
  401. data/lib/constant_contact_client/models/webhooks_subscription_response.rb +245 -0
  402. data/lib/constant_contact_client/models/webhooks_test_send.rb +245 -0
  403. data/lib/constant_contact_client/version.rb +15 -0
  404. data/lib/constant_contact_client.rb +417 -0
  405. data/spec/spec_helper.rb +111 -0
  406. metadata +488 -0
@@ -0,0 +1,701 @@
1
+ # ConstantContactClient::ContactsApi
2
+
3
+ All URIs are relative to *https://api.cc.email/v3*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | POST (create) a Contact |
8
+ | [**create_or_update_contact**](ContactsApi.md#create_or_update_contact) | **POST** /contacts/sign_up_form | Create or Update a Contact |
9
+ | [**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{contact_id} | DELETE a Contact |
10
+ | [**get_all_contacts**](ContactsApi.md#get_all_contacts) | **GET** /contacts | GET Contacts Collection |
11
+ | [**get_contact_by_id**](ContactsApi.md#get_contact_by_id) | **GET** /contacts/{contact_id} | GET a Contact |
12
+ | [**get_contact_counts**](ContactsApi.md#get_contact_counts) | **GET** /contacts/counts | GET Contact Consent Counts |
13
+ | [**get_contact_id_xrefs**](ContactsApi.md#get_contact_id_xrefs) | **GET** /contacts/contact_id_xrefs | GET a collection of V2 and V3 API contact IDs |
14
+ | [**get_sms_engagement_history**](ContactsApi.md#get_sms_engagement_history) | **GET** /contacts/sms_engagement_history/{contact_id} | GET SMS Engagement History for a Contact |
15
+ | [**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{contact_id} | PUT (update) a Contact |
16
+
17
+
18
+ ## create_contact
19
+
20
+ > <GetContactById200Response> create_contact(create_contact_request)
21
+
22
+ POST (create) a Contact
23
+
24
+ Creates a new contact resource; you must include the `create_source` property and at least one of the following properties when creating a new contact: `first_name`, `last_name`, or `email_address` (`email_address` must be unique for each contact).
25
+
26
+ ### Examples
27
+
28
+ ```ruby
29
+ require 'time'
30
+ require 'constant_contact_client'
31
+ # setup authorization
32
+ ConstantContactClient.configure do |config|
33
+ # Configure OAuth2 access token for authorization: oauth2_access_code
34
+ config.access_token = 'YOUR ACCESS TOKEN'
35
+
36
+ # Configure OAuth2 access token for authorization: oauth2_implicit
37
+ config.access_token = 'YOUR ACCESS TOKEN'
38
+ end
39
+
40
+ api_instance = ConstantContactClient::ContactsApi.new
41
+ create_contact_request = ConstantContactClient::CreateContactRequest.new # CreateContactRequest | The JSON payload defining the contact
42
+
43
+ begin
44
+ # POST (create) a Contact
45
+ result = api_instance.create_contact(create_contact_request)
46
+ p result
47
+ rescue ConstantContactClient::ApiError => e
48
+ puts "Error when calling ContactsApi->create_contact: #{e}"
49
+ end
50
+ ```
51
+
52
+ #### Using the create_contact_with_http_info variant
53
+
54
+ This returns an Array which contains the response data, status code and headers.
55
+
56
+ > <Array(<GetContactById200Response>, Integer, Hash)> create_contact_with_http_info(create_contact_request)
57
+
58
+ ```ruby
59
+ begin
60
+ # POST (create) a Contact
61
+ data, status_code, headers = api_instance.create_contact_with_http_info(create_contact_request)
62
+ p status_code # => 2xx
63
+ p headers # => { ... }
64
+ p data # => <GetContactById200Response>
65
+ rescue ConstantContactClient::ApiError => e
66
+ puts "Error when calling ContactsApi->create_contact_with_http_info: #{e}"
67
+ end
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+ | Name | Type | Description | Notes |
73
+ | ---- | ---- | ----------- | ----- |
74
+ | **create_contact_request** | [**CreateContactRequest**](CreateContactRequest.md) | The JSON payload defining the contact | |
75
+
76
+ ### Return type
77
+
78
+ [**GetContactById200Response**](GetContactById200Response.md)
79
+
80
+ ### Authorization
81
+
82
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: application/json
87
+ - **Accept**: application/json
88
+
89
+
90
+ ## create_or_update_contact
91
+
92
+ > <CreateOrUpdateContact200Response> create_or_update_contact(create_or_update_contact_request)
93
+
94
+ Create or Update a Contact
95
+
96
+ Use this method to create a new contact or update an existing contact. This method uses the `email_address` string value you include in the request body to determine if it should create an new contact or update an existing contact. Updates to existing contacts are partial updates. This method only updates the contact properties you include in the request body. Updates append new contact lists or custom fields to the existing `list_memberships` or `custom_fields` arrays. <div class=\"Msg\"><p class=\"note-text\">Only use this method when a contact gives you their explicit permission to send them emails. It is a violation of US and Canadian anti-spam laws, as well as a serious violation of the Constant Contact Terms of Service to use the Opt-in features of the API to opt a contact back in without his or her own action and consent.</p></div> When this method creates a new contact, it returns a 201 response code. When this method updates an existing contact, it returns a 200 response code. Updating a deleted contact restores the contact. The method automatically modifies the contact's `permission_to_send` and `opt_in_source` properties depending on the [Confirmed Opt-In](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/5533-obtain-permission-to-send-email-campaigns-to-your-contacts-by-using-confirmed-opt-in) Constant Contact account setting: If Confirmed Opt-in is _enabled_, this method automatically sets the `permission_to_send` property as pending\\_confirmation for new contacts. If Confirmed Opt-in is _disabled_, this method automatically sets the `permission_to_send` property as explicit and the `opt_in_source` property as `Contact` for new contacts. Updated contacts have their `permission_to_send` property set as explicit.
97
+
98
+ ### Examples
99
+
100
+ ```ruby
101
+ require 'time'
102
+ require 'constant_contact_client'
103
+ # setup authorization
104
+ ConstantContactClient.configure do |config|
105
+ # Configure OAuth2 access token for authorization: oauth2_access_code
106
+ config.access_token = 'YOUR ACCESS TOKEN'
107
+
108
+ # Configure OAuth2 access token for authorization: oauth2_implicit
109
+ config.access_token = 'YOUR ACCESS TOKEN'
110
+ end
111
+
112
+ api_instance = ConstantContactClient::ContactsApi.new
113
+ create_or_update_contact_request = ConstantContactClient::CreateOrUpdateContactRequest.new({email_address: 'jdodge@example.com', list_memberships: ['07936f78-662a-11eb-af0a-fa163e56c9b0']}) # CreateOrUpdateContactRequest | A JSON request body payload that contains the contact resource you are creating or updating. The request body must contain the `email_address` property and the `list_memberships` array.
114
+
115
+ begin
116
+ # Create or Update a Contact
117
+ result = api_instance.create_or_update_contact(create_or_update_contact_request)
118
+ p result
119
+ rescue ConstantContactClient::ApiError => e
120
+ puts "Error when calling ContactsApi->create_or_update_contact: #{e}"
121
+ end
122
+ ```
123
+
124
+ #### Using the create_or_update_contact_with_http_info variant
125
+
126
+ This returns an Array which contains the response data, status code and headers.
127
+
128
+ > <Array(<CreateOrUpdateContact200Response>, Integer, Hash)> create_or_update_contact_with_http_info(create_or_update_contact_request)
129
+
130
+ ```ruby
131
+ begin
132
+ # Create or Update a Contact
133
+ data, status_code, headers = api_instance.create_or_update_contact_with_http_info(create_or_update_contact_request)
134
+ p status_code # => 2xx
135
+ p headers # => { ... }
136
+ p data # => <CreateOrUpdateContact200Response>
137
+ rescue ConstantContactClient::ApiError => e
138
+ puts "Error when calling ContactsApi->create_or_update_contact_with_http_info: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ | Name | Type | Description | Notes |
145
+ | ---- | ---- | ----------- | ----- |
146
+ | **create_or_update_contact_request** | [**CreateOrUpdateContactRequest**](CreateOrUpdateContactRequest.md) | A JSON request body payload that contains the contact resource you are creating or updating. The request body must contain the &#x60;email_address&#x60; property and the &#x60;list_memberships&#x60; array. | |
147
+
148
+ ### Return type
149
+
150
+ [**CreateOrUpdateContact200Response**](CreateOrUpdateContact200Response.md)
151
+
152
+ ### Authorization
153
+
154
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: application/json
159
+ - **Accept**: application/json
160
+
161
+
162
+ ## delete_contact
163
+
164
+ > delete_contact(contact_id)
165
+
166
+ DELETE a Contact
167
+
168
+ Deletes the contact identified by the contact_id path parameter. Deleted contacts won't receive email from you, and they don't count as active contacts. Unlike unsubscribed contacts, deleted contacts can be revived, or added back to an account. Learn how to [revive deleted contacts](/api_guide/contacts_delete.html#revive).
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'constant_contact_client'
175
+ # setup authorization
176
+ ConstantContactClient.configure do |config|
177
+ # Configure OAuth2 access token for authorization: oauth2_access_code
178
+ config.access_token = 'YOUR ACCESS TOKEN'
179
+
180
+ # Configure OAuth2 access token for authorization: oauth2_implicit
181
+ config.access_token = 'YOUR ACCESS TOKEN'
182
+ end
183
+
184
+ api_instance = ConstantContactClient::ContactsApi.new
185
+ contact_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | Unique ID of contact to DELETE
186
+
187
+ begin
188
+ # DELETE a Contact
189
+ api_instance.delete_contact(contact_id)
190
+ rescue ConstantContactClient::ApiError => e
191
+ puts "Error when calling ContactsApi->delete_contact: #{e}"
192
+ end
193
+ ```
194
+
195
+ #### Using the delete_contact_with_http_info variant
196
+
197
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
198
+
199
+ > <Array(nil, Integer, Hash)> delete_contact_with_http_info(contact_id)
200
+
201
+ ```ruby
202
+ begin
203
+ # DELETE a Contact
204
+ data, status_code, headers = api_instance.delete_contact_with_http_info(contact_id)
205
+ p status_code # => 2xx
206
+ p headers # => { ... }
207
+ p data # => nil
208
+ rescue ConstantContactClient::ApiError => e
209
+ puts "Error when calling ContactsApi->delete_contact_with_http_info: #{e}"
210
+ end
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ | Name | Type | Description | Notes |
216
+ | ---- | ---- | ----------- | ----- |
217
+ | **contact_id** | **String** | Unique ID of contact to DELETE | |
218
+
219
+ ### Return type
220
+
221
+ nil (empty response body)
222
+
223
+ ### Authorization
224
+
225
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: Not defined
230
+ - **Accept**: Not defined
231
+
232
+
233
+ ## get_all_contacts
234
+
235
+ > <GetAllContacts200Response> get_all_contacts(opts)
236
+
237
+ GET Contacts Collection
238
+
239
+ Use this method to return a collection of contacts. Use the query parameters to search for contacts that match specific contact properties and subresourse properties as criteria. For example, you can search using the contact's `email` address, `lists` memberships, and by the date range that a contact was created or updated. Use the `limit` query parameter to limit the number of results returned per page. Use the `include` query parameter to include contact sub-resources in the response and `include_count` to include the total number of contacts that meet your specified search criteria. By default, this method returns all contacts that are not deleted. Use the `status` query parameter with the value `all` to return all contacts including deleted contacts.
240
+
241
+ ### Examples
242
+
243
+ ```ruby
244
+ require 'time'
245
+ require 'constant_contact_client'
246
+ # setup authorization
247
+ ConstantContactClient.configure do |config|
248
+ # Configure OAuth2 access token for authorization: oauth2_access_code
249
+ config.access_token = 'YOUR ACCESS TOKEN'
250
+
251
+ # Configure OAuth2 access token for authorization: oauth2_implicit
252
+ config.access_token = 'YOUR ACCESS TOKEN'
253
+ end
254
+
255
+ api_instance = ConstantContactClient::ContactsApi.new
256
+ opts = {
257
+ status: 'all', # String | Use the `status` query parameter to search for contacts by status. This parameter accepts one or more comma separated values: `all`, `active`, `deleted`, `not_set`, `pending_confirmation`, `temp_hold`, and `unsubscribed`.
258
+ email: 'xyz@example.com', # String | Use the `email` query parameter to search for a contact using a specific email address.
259
+ lists: '04fe9a-a579-43c5-bb1a-58ed29bf0a6a,04fe9a-a579-43c5-bb1a-58ed29bf0a6a,04fe9a-a579-43c5-bb1a-58ed29bf0a6a', # String | Use the `lists` query parameter to search for contacts that are members of one or more specified lists. Use a comma to separate multiple `list_id` values, up to a maximum of 25.
260
+ segment_id: '14', # String | Use to get contacts that meet the segment criteria for a single specified `segment_id`. This query parameter can only be combined with the limit query parameter. When using the `segment_id` query parameter, the V3 API may return a 202 response code instead of a 200 response. The 202 response code indicates that your request has been accepted, but not fully completed. Retry sending your API request to return the completed results and a 200 response code.
261
+ tags: 'fa85f64-5717-4562-b3fc-2c963f66afa6', # String | Use to get contact details for up to 50 specified tags. Use a comma to separate each `tag_id`.
262
+ updated_after: Time.parse('2022-01-01T16:37:59.091Z'), # Time | Use `updated_after` to search for contacts that have been updated after the date you specify. To search for updated contacts within a date range, specify both `updated_after` and `updated_before` dates. Accepts ISO-8601 formatted dates.
263
+ updated_before: Time.parse('2022-07-16T16:37:59.091Z'), # Time | Use `updated_before` to search for contacts that have been updated before a specified date. To search for updated contacts within a date range, specify both `updated_after` and `updated_before` dates. Accepts ISO-8601 formatted dates.
264
+ created_after: Time.parse('2021-01-01T16:37:59.091Z'), # Time | Use `created_after` to search for contacts created after a specified date. To search for contacts created within a date range, specify both `created_after` and `created_before` dates. Accepts ISO-8601 formatted dates.
265
+ created_before: Time.parse('2022-07-16T16:37:59.091Z'), # Time | Use `created_before` to search for contacts created before a specified date. To search for contacts created within a date range, specify both `created_after` and `created_before` dates. Accepts ISO-8601 formatted dates.
266
+ optout_after: Time.parse('2022-11-16T16:20:59.091Z'), # Time | Use `optout_after` to search for contacts that unsubscribed after a specified date.
267
+ optout_before: Time.parse('2022-11-16T16:20:59.091Z'), # Time | Use `optout_before` to search for contacts that unsubscribed before a specified date.
268
+ include: 'custom_fields', # String | Use `include` to specify which contact sub-resources to include in the response. Use a comma to separate multiple sub-resources. Valid values: `custom_fields`, `list_memberships`, `taggings`, `notes`,`phone_numbers`, `street_addresses`, `sms_channel`.
269
+ sms_status: 'all', # String | Use to get contacts by their SMS status. This parameter accepts one or more comma separated values: `all`, `explicit`, `unsubscribed`, `pending_confirmation`, `not_set`.
270
+ include_count: true, # Boolean | Set `include_count=true` to include the total number of contacts (`contacts_count`) that meet all search criteria in the response body.
271
+ limit: 25 # Integer | Specifies the number of results displayed per page of output in the response, from 1 - 500, default = 50.
272
+ }
273
+
274
+ begin
275
+ # GET Contacts Collection
276
+ result = api_instance.get_all_contacts(opts)
277
+ p result
278
+ rescue ConstantContactClient::ApiError => e
279
+ puts "Error when calling ContactsApi->get_all_contacts: #{e}"
280
+ end
281
+ ```
282
+
283
+ #### Using the get_all_contacts_with_http_info variant
284
+
285
+ This returns an Array which contains the response data, status code and headers.
286
+
287
+ > <Array(<GetAllContacts200Response>, Integer, Hash)> get_all_contacts_with_http_info(opts)
288
+
289
+ ```ruby
290
+ begin
291
+ # GET Contacts Collection
292
+ data, status_code, headers = api_instance.get_all_contacts_with_http_info(opts)
293
+ p status_code # => 2xx
294
+ p headers # => { ... }
295
+ p data # => <GetAllContacts200Response>
296
+ rescue ConstantContactClient::ApiError => e
297
+ puts "Error when calling ContactsApi->get_all_contacts_with_http_info: #{e}"
298
+ end
299
+ ```
300
+
301
+ ### Parameters
302
+
303
+ | Name | Type | Description | Notes |
304
+ | ---- | ---- | ----------- | ----- |
305
+ | **status** | **String** | Use the &#x60;status&#x60; query parameter to search for contacts by status. This parameter accepts one or more comma separated values: &#x60;all&#x60;, &#x60;active&#x60;, &#x60;deleted&#x60;, &#x60;not_set&#x60;, &#x60;pending_confirmation&#x60;, &#x60;temp_hold&#x60;, and &#x60;unsubscribed&#x60;. | [optional] |
306
+ | **email** | **String** | Use the &#x60;email&#x60; query parameter to search for a contact using a specific email address. | [optional] |
307
+ | **lists** | **String** | Use the &#x60;lists&#x60; query parameter to search for contacts that are members of one or more specified lists. Use a comma to separate multiple &#x60;list_id&#x60; values, up to a maximum of 25. | [optional] |
308
+ | **segment_id** | **String** | Use to get contacts that meet the segment criteria for a single specified &#x60;segment_id&#x60;. This query parameter can only be combined with the limit query parameter. When using the &#x60;segment_id&#x60; query parameter, the V3 API may return a 202 response code instead of a 200 response. The 202 response code indicates that your request has been accepted, but not fully completed. Retry sending your API request to return the completed results and a 200 response code. | [optional] |
309
+ | **tags** | **String** | Use to get contact details for up to 50 specified tags. Use a comma to separate each &#x60;tag_id&#x60;. | [optional] |
310
+ | **updated_after** | **Time** | Use &#x60;updated_after&#x60; to search for contacts that have been updated after the date you specify. To search for updated contacts within a date range, specify both &#x60;updated_after&#x60; and &#x60;updated_before&#x60; dates. Accepts ISO-8601 formatted dates. | [optional] |
311
+ | **updated_before** | **Time** | Use &#x60;updated_before&#x60; to search for contacts that have been updated before a specified date. To search for updated contacts within a date range, specify both &#x60;updated_after&#x60; and &#x60;updated_before&#x60; dates. Accepts ISO-8601 formatted dates. | [optional] |
312
+ | **created_after** | **Time** | Use &#x60;created_after&#x60; to search for contacts created after a specified date. To search for contacts created within a date range, specify both &#x60;created_after&#x60; and &#x60;created_before&#x60; dates. Accepts ISO-8601 formatted dates. | [optional] |
313
+ | **created_before** | **Time** | Use &#x60;created_before&#x60; to search for contacts created before a specified date. To search for contacts created within a date range, specify both &#x60;created_after&#x60; and &#x60;created_before&#x60; dates. Accepts ISO-8601 formatted dates. | [optional] |
314
+ | **optout_after** | **Time** | Use &#x60;optout_after&#x60; to search for contacts that unsubscribed after a specified date. | [optional] |
315
+ | **optout_before** | **Time** | Use &#x60;optout_before&#x60; to search for contacts that unsubscribed before a specified date. | [optional] |
316
+ | **include** | **String** | Use &#x60;include&#x60; to specify which contact sub-resources to include in the response. Use a comma to separate multiple sub-resources. Valid values: &#x60;custom_fields&#x60;, &#x60;list_memberships&#x60;, &#x60;taggings&#x60;, &#x60;notes&#x60;,&#x60;phone_numbers&#x60;, &#x60;street_addresses&#x60;, &#x60;sms_channel&#x60;. | [optional] |
317
+ | **sms_status** | **String** | Use to get contacts by their SMS status. This parameter accepts one or more comma separated values: &#x60;all&#x60;, &#x60;explicit&#x60;, &#x60;unsubscribed&#x60;, &#x60;pending_confirmation&#x60;, &#x60;not_set&#x60;. | [optional] |
318
+ | **include_count** | **Boolean** | Set &#x60;include_count&#x3D;true&#x60; to include the total number of contacts (&#x60;contacts_count&#x60;) that meet all search criteria in the response body. | [optional] |
319
+ | **limit** | **Integer** | Specifies the number of results displayed per page of output in the response, from 1 - 500, default &#x3D; 50. | [optional][default to 50] |
320
+
321
+ ### Return type
322
+
323
+ [**GetAllContacts200Response**](GetAllContacts200Response.md)
324
+
325
+ ### Authorization
326
+
327
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
328
+
329
+ ### HTTP request headers
330
+
331
+ - **Content-Type**: Not defined
332
+ - **Accept**: application/json
333
+
334
+
335
+ ## get_contact_by_id
336
+
337
+ > <GetContactById200Response> get_contact_by_id(contact_id, opts)
338
+
339
+ GET a Contact
340
+
341
+ This endpoint GETs a specific contact resource (contact_id). Use the `include` query parameter to add any of the available contact sub-resources to the response payload.
342
+
343
+ ### Examples
344
+
345
+ ```ruby
346
+ require 'time'
347
+ require 'constant_contact_client'
348
+ # setup authorization
349
+ ConstantContactClient.configure do |config|
350
+ # Configure OAuth2 access token for authorization: oauth2_access_code
351
+ config.access_token = 'YOUR ACCESS TOKEN'
352
+
353
+ # Configure OAuth2 access token for authorization: oauth2_implicit
354
+ config.access_token = 'YOUR ACCESS TOKEN'
355
+ end
356
+
357
+ api_instance = ConstantContactClient::ContactsApi.new
358
+ contact_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | Unique ID of contact to GET
359
+ opts = {
360
+ include: 'custom_fields' # String | Use `include` to specify which contact sub-resources to include in the response. Use a comma to separate multiple sub-resources. Valid values: `custom_fields`, `list_memberships`, `phone_numbers`, `street_addresses`, `notes`, `sms_channel`, and `taggings`.
361
+ }
362
+
363
+ begin
364
+ # GET a Contact
365
+ result = api_instance.get_contact_by_id(contact_id, opts)
366
+ p result
367
+ rescue ConstantContactClient::ApiError => e
368
+ puts "Error when calling ContactsApi->get_contact_by_id: #{e}"
369
+ end
370
+ ```
371
+
372
+ #### Using the get_contact_by_id_with_http_info variant
373
+
374
+ This returns an Array which contains the response data, status code and headers.
375
+
376
+ > <Array(<GetContactById200Response>, Integer, Hash)> get_contact_by_id_with_http_info(contact_id, opts)
377
+
378
+ ```ruby
379
+ begin
380
+ # GET a Contact
381
+ data, status_code, headers = api_instance.get_contact_by_id_with_http_info(contact_id, opts)
382
+ p status_code # => 2xx
383
+ p headers # => { ... }
384
+ p data # => <GetContactById200Response>
385
+ rescue ConstantContactClient::ApiError => e
386
+ puts "Error when calling ContactsApi->get_contact_by_id_with_http_info: #{e}"
387
+ end
388
+ ```
389
+
390
+ ### Parameters
391
+
392
+ | Name | Type | Description | Notes |
393
+ | ---- | ---- | ----------- | ----- |
394
+ | **contact_id** | **String** | Unique ID of contact to GET | |
395
+ | **include** | **String** | Use &#x60;include&#x60; to specify which contact sub-resources to include in the response. Use a comma to separate multiple sub-resources. Valid values: &#x60;custom_fields&#x60;, &#x60;list_memberships&#x60;, &#x60;phone_numbers&#x60;, &#x60;street_addresses&#x60;, &#x60;notes&#x60;, &#x60;sms_channel&#x60;, and &#x60;taggings&#x60;. | [optional] |
396
+
397
+ ### Return type
398
+
399
+ [**GetContactById200Response**](GetContactById200Response.md)
400
+
401
+ ### Authorization
402
+
403
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
404
+
405
+ ### HTTP request headers
406
+
407
+ - **Content-Type**: Not defined
408
+ - **Accept**: application/json
409
+
410
+
411
+ ## get_contact_counts
412
+
413
+ > <GetContactCounts200Response> get_contact_counts(opts)
414
+
415
+ GET Contact Consent Counts
416
+
417
+ Use to get the total contacts count for the account and the total contact-consent counts for each consent state. Optionally, to include the total number of contacts that subscribed within the last 30 days in the results, use `new_subscribers` in the `include` query parameter. To optimize open rates, reduce spam reports, and help grow your business, you must value your contact's consent to receive or to not receive your emails.
418
+
419
+ ### Examples
420
+
421
+ ```ruby
422
+ require 'time'
423
+ require 'constant_contact_client'
424
+ # setup authorization
425
+ ConstantContactClient.configure do |config|
426
+ # Configure OAuth2 access token for authorization: oauth2_access_code
427
+ config.access_token = 'YOUR ACCESS TOKEN'
428
+
429
+ # Configure OAuth2 access token for authorization: oauth2_implicit
430
+ config.access_token = 'YOUR ACCESS TOKEN'
431
+ end
432
+
433
+ api_instance = ConstantContactClient::ContactsApi.new
434
+ opts = {
435
+ include: 'new_subscriber' # String | Use to return the total number of contacts that subscribed within the last 30 days in the results.
436
+ }
437
+
438
+ begin
439
+ # GET Contact Consent Counts
440
+ result = api_instance.get_contact_counts(opts)
441
+ p result
442
+ rescue ConstantContactClient::ApiError => e
443
+ puts "Error when calling ContactsApi->get_contact_counts: #{e}"
444
+ end
445
+ ```
446
+
447
+ #### Using the get_contact_counts_with_http_info variant
448
+
449
+ This returns an Array which contains the response data, status code and headers.
450
+
451
+ > <Array(<GetContactCounts200Response>, Integer, Hash)> get_contact_counts_with_http_info(opts)
452
+
453
+ ```ruby
454
+ begin
455
+ # GET Contact Consent Counts
456
+ data, status_code, headers = api_instance.get_contact_counts_with_http_info(opts)
457
+ p status_code # => 2xx
458
+ p headers # => { ... }
459
+ p data # => <GetContactCounts200Response>
460
+ rescue ConstantContactClient::ApiError => e
461
+ puts "Error when calling ContactsApi->get_contact_counts_with_http_info: #{e}"
462
+ end
463
+ ```
464
+
465
+ ### Parameters
466
+
467
+ | Name | Type | Description | Notes |
468
+ | ---- | ---- | ----------- | ----- |
469
+ | **include** | **String** | Use to return the total number of contacts that subscribed within the last 30 days in the results. | [optional] |
470
+
471
+ ### Return type
472
+
473
+ [**GetContactCounts200Response**](GetContactCounts200Response.md)
474
+
475
+ ### Authorization
476
+
477
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
478
+
479
+ ### HTTP request headers
480
+
481
+ - **Content-Type**: Not defined
482
+ - **Accept**: application/json
483
+
484
+
485
+ ## get_contact_id_xrefs
486
+
487
+ > <GetContactIdXrefs200Response> get_contact_id_xrefs(sequence_ids)
488
+
489
+ GET a collection of V2 and V3 API contact IDs
490
+
491
+ <div class=\"Msg Msg--warning\"><p class=\"note-text\">Use this endpoint to migrate your locally stored V2 contact ids to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.</p></div> This GET call retrieves a collection of cross-referenced contact sequence IDs (`id` used in the V2 API) and UUIDs (`contact_id` used in the V3 API). This endpoint is intended for developers who have an existing V2 API integration, and are migrating their users to a new V3 API integration. The V2 and V3 APIs use different resource ID formats. Use the `sequence_ids` query parameter to specify a set of comma delimited V2 contacts ids to cross-referenced with their V3 `contact_ids`. See [Migrating to V3](/api_guide/migration_overview.html) to learn more.
492
+
493
+ ### Examples
494
+
495
+ ```ruby
496
+ require 'time'
497
+ require 'constant_contact_client'
498
+ # setup authorization
499
+ ConstantContactClient.configure do |config|
500
+ # Configure OAuth2 access token for authorization: oauth2_access_code
501
+ config.access_token = 'YOUR ACCESS TOKEN'
502
+
503
+ # Configure OAuth2 access token for authorization: oauth2_implicit
504
+ config.access_token = 'YOUR ACCESS TOKEN'
505
+ end
506
+
507
+ api_instance = ConstantContactClient::ContactsApi.new
508
+ sequence_ids = '1995998026,1882999944,1775099999' # String | Comma delimited list of V2 API contact `ids` to cross-reference with the V3 API `contact_id` value. Endpoint accepts a maximum of 500 ids at a time.
509
+
510
+ begin
511
+ # GET a collection of V2 and V3 API contact IDs
512
+ result = api_instance.get_contact_id_xrefs(sequence_ids)
513
+ p result
514
+ rescue ConstantContactClient::ApiError => e
515
+ puts "Error when calling ContactsApi->get_contact_id_xrefs: #{e}"
516
+ end
517
+ ```
518
+
519
+ #### Using the get_contact_id_xrefs_with_http_info variant
520
+
521
+ This returns an Array which contains the response data, status code and headers.
522
+
523
+ > <Array(<GetContactIdXrefs200Response>, Integer, Hash)> get_contact_id_xrefs_with_http_info(sequence_ids)
524
+
525
+ ```ruby
526
+ begin
527
+ # GET a collection of V2 and V3 API contact IDs
528
+ data, status_code, headers = api_instance.get_contact_id_xrefs_with_http_info(sequence_ids)
529
+ p status_code # => 2xx
530
+ p headers # => { ... }
531
+ p data # => <GetContactIdXrefs200Response>
532
+ rescue ConstantContactClient::ApiError => e
533
+ puts "Error when calling ContactsApi->get_contact_id_xrefs_with_http_info: #{e}"
534
+ end
535
+ ```
536
+
537
+ ### Parameters
538
+
539
+ | Name | Type | Description | Notes |
540
+ | ---- | ---- | ----------- | ----- |
541
+ | **sequence_ids** | **String** | Comma delimited list of V2 API contact &#x60;ids&#x60; to cross-reference with the V3 API &#x60;contact_id&#x60; value. Endpoint accepts a maximum of 500 ids at a time. | |
542
+
543
+ ### Return type
544
+
545
+ [**GetContactIdXrefs200Response**](GetContactIdXrefs200Response.md)
546
+
547
+ ### Authorization
548
+
549
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
550
+
551
+ ### HTTP request headers
552
+
553
+ - **Content-Type**: Not defined
554
+ - **Accept**: application/json
555
+
556
+
557
+ ## get_sms_engagement_history
558
+
559
+ > <Array<GetSmsEngagementHistory200ResponseInner>> get_sms_engagement_history(contact_id)
560
+
561
+ GET SMS Engagement History for a Contact
562
+
563
+ Use this method to return SMS engagement details for a contact, such as SMS consent and advertising frequency details.
564
+
565
+ ### Examples
566
+
567
+ ```ruby
568
+ require 'time'
569
+ require 'constant_contact_client'
570
+ # setup authorization
571
+ ConstantContactClient.configure do |config|
572
+ # Configure OAuth2 access token for authorization: oauth2_access_code
573
+ config.access_token = 'YOUR ACCESS TOKEN'
574
+
575
+ # Configure OAuth2 access token for authorization: oauth2_implicit
576
+ config.access_token = 'YOUR ACCESS TOKEN'
577
+ end
578
+
579
+ api_instance = ConstantContactClient::ContactsApi.new
580
+ contact_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | The contact's unique ID.
581
+
582
+ begin
583
+ # GET SMS Engagement History for a Contact
584
+ result = api_instance.get_sms_engagement_history(contact_id)
585
+ p result
586
+ rescue ConstantContactClient::ApiError => e
587
+ puts "Error when calling ContactsApi->get_sms_engagement_history: #{e}"
588
+ end
589
+ ```
590
+
591
+ #### Using the get_sms_engagement_history_with_http_info variant
592
+
593
+ This returns an Array which contains the response data, status code and headers.
594
+
595
+ > <Array(<Array<GetSmsEngagementHistory200ResponseInner>>, Integer, Hash)> get_sms_engagement_history_with_http_info(contact_id)
596
+
597
+ ```ruby
598
+ begin
599
+ # GET SMS Engagement History for a Contact
600
+ data, status_code, headers = api_instance.get_sms_engagement_history_with_http_info(contact_id)
601
+ p status_code # => 2xx
602
+ p headers # => { ... }
603
+ p data # => <Array<GetSmsEngagementHistory200ResponseInner>>
604
+ rescue ConstantContactClient::ApiError => e
605
+ puts "Error when calling ContactsApi->get_sms_engagement_history_with_http_info: #{e}"
606
+ end
607
+ ```
608
+
609
+ ### Parameters
610
+
611
+ | Name | Type | Description | Notes |
612
+ | ---- | ---- | ----------- | ----- |
613
+ | **contact_id** | **String** | The contact&#39;s unique ID. | |
614
+
615
+ ### Return type
616
+
617
+ [**Array&lt;GetSmsEngagementHistory200ResponseInner&gt;**](GetSmsEngagementHistory200ResponseInner.md)
618
+
619
+ ### Authorization
620
+
621
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
622
+
623
+ ### HTTP request headers
624
+
625
+ - **Content-Type**: Not defined
626
+ - **Accept**: application/json
627
+
628
+
629
+ ## update_contact
630
+
631
+ > <GetContactById200Response> update_contact(contact_id, update_contact_request)
632
+
633
+ PUT (update) a Contact
634
+
635
+ The PUT method updates an existing contact. You must include the `update_source` property in the PUT request payload. To restore a deleted contact you must specify the `update_source` as `Account`. When updating any resource using PUT, all properties are updated, overwriting all previous values. Any properties left blank or not included in the request are overwritten with null value - however this does not apply to contact subresources. Add or change any of the subresources by including them in the PUT request payload. Omitted subresources are not overwritten with null. If the contact being updated is deleted, the contact will be revived.
636
+
637
+ ### Examples
638
+
639
+ ```ruby
640
+ require 'time'
641
+ require 'constant_contact_client'
642
+ # setup authorization
643
+ ConstantContactClient.configure do |config|
644
+ # Configure OAuth2 access token for authorization: oauth2_access_code
645
+ config.access_token = 'YOUR ACCESS TOKEN'
646
+
647
+ # Configure OAuth2 access token for authorization: oauth2_implicit
648
+ config.access_token = 'YOUR ACCESS TOKEN'
649
+ end
650
+
651
+ api_instance = ConstantContactClient::ContactsApi.new
652
+ contact_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | Unique ID of contact to update
653
+ update_contact_request = ConstantContactClient::UpdateContactRequest.new({update_source: 'Account'}) # UpdateContactRequest | JSON payload defining the contact object, with updates. Any properties left blank or not included in the PUT payload are overwritten with null value - does not apply to contact subresources.
654
+
655
+ begin
656
+ # PUT (update) a Contact
657
+ result = api_instance.update_contact(contact_id, update_contact_request)
658
+ p result
659
+ rescue ConstantContactClient::ApiError => e
660
+ puts "Error when calling ContactsApi->update_contact: #{e}"
661
+ end
662
+ ```
663
+
664
+ #### Using the update_contact_with_http_info variant
665
+
666
+ This returns an Array which contains the response data, status code and headers.
667
+
668
+ > <Array(<GetContactById200Response>, Integer, Hash)> update_contact_with_http_info(contact_id, update_contact_request)
669
+
670
+ ```ruby
671
+ begin
672
+ # PUT (update) a Contact
673
+ data, status_code, headers = api_instance.update_contact_with_http_info(contact_id, update_contact_request)
674
+ p status_code # => 2xx
675
+ p headers # => { ... }
676
+ p data # => <GetContactById200Response>
677
+ rescue ConstantContactClient::ApiError => e
678
+ puts "Error when calling ContactsApi->update_contact_with_http_info: #{e}"
679
+ end
680
+ ```
681
+
682
+ ### Parameters
683
+
684
+ | Name | Type | Description | Notes |
685
+ | ---- | ---- | ----------- | ----- |
686
+ | **contact_id** | **String** | Unique ID of contact to update | |
687
+ | **update_contact_request** | [**UpdateContactRequest**](UpdateContactRequest.md) | JSON payload defining the contact object, with updates. Any properties left blank or not included in the PUT payload are overwritten with null value - does not apply to contact subresources. | |
688
+
689
+ ### Return type
690
+
691
+ [**GetContactById200Response**](GetContactById200Response.md)
692
+
693
+ ### Authorization
694
+
695
+ [oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
696
+
697
+ ### HTTP request headers
698
+
699
+ - **Content-Type**: application/json
700
+ - **Accept**: application/json
701
+