Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

constant_contact_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constant_contact_client

  • 1.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

constant_contact_client

ConstantContactClient - the Ruby gem for the Constant Contact API v3

Swagger build version 3.0.2475

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.109
  • Package version: 1.2.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build constant_contact_client.gemspec

Then either install the gem locally:

gem install ./constant_contact_client-1.2.0.gem

Finally add this to the Gemfile:

gem 'constant_contact_client', '~> 1.2.0'

Or install from rubygems:

gem install constant_contact_client`

Getting Started

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

# Load the gem
require 'constant_contact_client'

# Setup authorization
ConstantContactClient.configure do |config|
  # Configure OAuth2 access token for authorization: oauth2_access_code
  config.access_token = 'YOUR ACCESS TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } 

  # Configure OAuth2 access token for authorization: oauth2_implicit
  config.access_token = 'YOUR ACCESS TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } 
end

api_instance = ConstantContactClient::AccountServicesApi.new
add_account_email_address_request = ConstantContactClient::AddAccountEmailAddressRequest.new # AddAccountEmailAddressRequest | A JSON request payload containing the new email address you want to add to the Constant Contact account.

begin
  #POST Add an Account Email Address
  result = api_instance.add_account_email_address(add_account_email_address_request)
  p result
rescue ConstantContactClient::ApiError => e
  puts "Exception when calling AccountServicesApi->add_account_email_address: #{e}"
end

Documentation for Authorization

Authentication schemes defined for the API:

oauth2_implicit

oauth2_access_code

Documentation for API Endpoints

All URIs are relative to https://api.cc.email/v3

ClassMethodHTTP requestDescription
ConstantContactClient::AccountServicesApiadd_account_email_addressPOST /account/emailsPOST Add an Account Email Address
ConstantContactClient::AccountServicesApiadd_physical_addressPOST /account/summary/physical_addressPOST the Physical Address for the Account
ConstantContactClient::AccountServicesApiget_account_detailsGET /account/summaryGET a Summary of Account Details
ConstantContactClient::AccountServicesApiget_account_physical_addressGET /account/summary/physical_addressGET the Physical Address for the Account
ConstantContactClient::AccountServicesApiget_all_account_email_addressesGET /account/emailsGET a Collection of Account Email Addresses
ConstantContactClient::AccountServicesApiget_user_privilegesGET /account/user/privilegesGET User Privileges
ConstantContactClient::AccountServicesApiupdate_accountPUT /account/summaryPUT (update) Account Details
ConstantContactClient::AccountServicesApiupdate_account_physical_addressPUT /account/summary/physical_addressPUT (update) the Physical Address for an Account
ConstantContactClient::BulkActivitiesApicreate_csv_import_activityPOST /activities/contacts_file_importImport Contacts using a CSV File
ConstantContactClient::BulkActivitiesApicreate_delete_activityPOST /activities/contact_deleteDelete Contacts in Bulk
ConstantContactClient::BulkActivitiesApicreate_export_activityPOST /activities/contact_exportsExport Contacts to a File
ConstantContactClient::BulkActivitiesApicreate_import_json_activityPOST /activities/contacts_json_importImport Contacts using a JSON Payload
ConstantContactClient::BulkActivitiesApicreate_list_add_activityPOST /activities/add_list_membershipsAdd Contacts to Lists
ConstantContactClient::BulkActivitiesApicreate_list_delete_activityPOST /activities/list_deleteDelete Contact Lists
ConstantContactClient::BulkActivitiesApicreate_list_remove_activityPOST /activities/remove_list_membershipsRemove Contacts from Lists
ConstantContactClient::BulkActivitiesApicreate_tag_add_contact_activityPOST /activities/contacts_taggings_addAdd Tags to Contacts
ConstantContactClient::BulkActivitiesApicreate_tag_delete_activityPOST /activities/contacts_tags_deleteDelete Tags
ConstantContactClient::BulkActivitiesApicreate_tag_remove_activityPOST /activities/contacts_taggings_removeRemove Tags from Contacts
ConstantContactClient::BulkActivitiesApiget_activity_by_idGET /activities/{activity_id}GET an Activity Status
ConstantContactClient::BulkActivitiesApiget_all_activitiesGET /activitiesGET Activity Status Collection
ConstantContactClient::BulkActivitiesApiget_csv_export_fileGET /contact_exports/{file_export_id}Retrieve Exported Contacts File
ConstantContactClient::BulkActivitiesApipost_custom_field_deletePOST /activities/custom_fields_deleteDelete Custom Fields
ConstantContactClient::ContactListsApicreate_listPOST /contact_listsPOST (create) a List
ConstantContactClient::ContactListsApidelete_listDELETE /contact_lists/{list_id}DELETE a List
ConstantContactClient::ContactListsApiget_all_listsGET /contact_listsGET Lists Collection
ConstantContactClient::ContactListsApiget_listGET /contact_lists/{list_id}GET a List
ConstantContactClient::ContactListsApiget_list_id_xrefsGET /contact_lists/list_id_xrefsGET a collection of V2 and V3 API List IDs
ConstantContactClient::ContactListsApiupdate_listPUT /contact_lists/{list_id}PUT (update) a List
ConstantContactClient::ContactTagsApidelete_tagDELETE /contact_tags/{tag_id}DELETE a Tag
ConstantContactClient::ContactTagsApiget_all_tagsGET /contact_tagsGET Details for All Tags
ConstantContactClient::ContactTagsApiget_tagGET /contact_tags/{tag_id}GET Tag Details
ConstantContactClient::ContactTagsApipost_tagPOST /contact_tagsPOST (Create) a Tag
ConstantContactClient::ContactTagsApiput_tagPUT /contact_tags/{tag_id}PUT (Update) a Tag
ConstantContactClient::ContactsApicreate_contactPOST /contactsPOST (create) a Contact
ConstantContactClient::ContactsApicreate_or_update_contactPOST /contacts/sign_up_formCreate or Update a Contact
ConstantContactClient::ContactsApidelete_contactDELETE /contacts/{contact_id}DELETE a Contact
ConstantContactClient::ContactsApiget_all_contactsGET /contactsGET Contacts Collection
ConstantContactClient::ContactsApiget_contact_by_idGET /contacts/{contact_id}GET a Contact
ConstantContactClient::ContactsApiget_contact_countsGET /contacts/countsGET Contact Consent Counts
ConstantContactClient::ContactsApiget_contact_id_xrefsGET /contacts/contact_id_xrefsGET a collection of V2 and V3 API contact IDs
ConstantContactClient::ContactsApiget_sms_engagement_historyGET /contacts/sms_engagement_history/{contact_id}GET SMS Engagement History for a Contact
ConstantContactClient::ContactsApiupdate_contactPUT /contacts/{contact_id}PUT (update) a Contact
ConstantContactClient::ContactsCustomFieldsApicreate_custom_fieldsPOST /contact_custom_fieldsPOST (create) a custom_field
ConstantContactClient::ContactsCustomFieldsApidelete_custom_fieldDELETE /contact_custom_fields/{custom_field_id}DELETE a custom_field
ConstantContactClient::ContactsCustomFieldsApiget_all_custom_fieldsGET /contact_custom_fieldsGET custom_fields Collection
ConstantContactClient::ContactsCustomFieldsApiget_custom_fieldGET /contact_custom_fields/{custom_field_id}GET a custom_field
ConstantContactClient::ContactsCustomFieldsApiupdate_custom_fieldPUT /contact_custom_fields/{custom_field_id}PUT (update) a custom_field
ConstantContactClient::ContactsReportingApiget_contact_open_click_rate_reportGET /reports/contact_reports/{contact_id}/open_and_click_ratesGET Average Open and Click Rates
ConstantContactClient::ContactsReportingApiget_contact_tracking_count_reportGET /reports/contact_reports/{contact_id}/activity_summaryGET Contact Action Summary
ConstantContactClient::ContactsReportingApiget_contact_tracking_reportGET /reports/contact_reports/{contact_id}/activity_detailsGET Contact Activity Details
ConstantContactClient::EmailCampaignsApicreate_email_campaignPOST /emailsPOST (Create) a New Email Campaign
ConstantContactClient::EmailCampaignsApicreate_resend_email_campaignPOST /emails/activities/{campaign_activity_id}/non_opener_resendsPOST a Resend to Non-openers Campaign Activity
ConstantContactClient::EmailCampaignsApidelete_email_campaignDELETE /emails/{campaign_id}DELETE an Email Campaign
ConstantContactClient::EmailCampaignsApidelete_resend_email_campaignDELETE /emails/activities/{campaign_activity_id}/non_opener_resends/{resend_request_id}DELETE a Resend to Non Openers Activity
ConstantContactClient::EmailCampaignsApiget_all_email_campaignsGET /emailsGET a Collection of Email Campaigns
ConstantContactClient::EmailCampaignsApiget_email_campaign_activityGET /emails/activities/{campaign_activity_id}GET a Single Email Campaign Activity
ConstantContactClient::EmailCampaignsApiget_email_campaign_by_idGET /emails/{campaign_id}GET Details About a Single Email Campaign
ConstantContactClient::EmailCampaignsApiget_email_campaign_xrefsGET /emails/campaign_id_xrefsGET a Collection of V2 and V3 API Email Campaign Identifiers
ConstantContactClient::EmailCampaignsApiget_resend_email_campaignGET /emails/activities/{campaign_activity_id}/non_opener_resendsGET Details for a Resend to Non-openers Campaign Activity
ConstantContactClient::EmailCampaignsApipatch_email_campaign_namePATCH /emails/{campaign_id}PATCH (Update) an Email Campaign Name
ConstantContactClient::EmailCampaignsApiupdate_email_campaign_activityPUT /emails/activities/{campaign_activity_id}PUT (Update) An Email Campaign Activity
ConstantContactClient::EmailCampaignsABTestsApicreate_ab_test_email_campaignPOST /emails/activities/{campaign_activity_id}/abtestPOST (Create) an A/B Test for an Email Campaign Activity
ConstantContactClient::EmailCampaignsABTestsApidelete_ab_test_email_campaignDELETE /emails/activities/{campaign_activity_id}/abtestDELETE an A/B Test for an Email Campaign Activity
ConstantContactClient::EmailCampaignsABTestsApiget_ab_test_email_campaignGET /emails/activities/{campaign_activity_id}/abtestGET A/B Test Details for an Email Campaign Activity
ConstantContactClient::EmailReportingApiget_bounces_reportGET /reports/email_reports/{campaign_activity_id}/tracking/bouncesGET an Email Bounces Report
ConstantContactClient::EmailReportingApiget_campaign_activity_link_reportGET /reports/email_reports/{campaign_activity_id}/linksGET an Email Links Report
ConstantContactClient::EmailReportingApiget_clicks_reportGET /reports/email_reports/{campaign_activity_id}/tracking/clicksGET an Email Clicks Report
ConstantContactClient::EmailReportingApiget_did_not_opens_reportGET /reports/email_reports/{campaign_activity_id}/tracking/didnotopensGET an Email Did Not Opens Report
ConstantContactClient::EmailReportingApiget_email_campaign_activity_reportGET /reports/stats/email_campaign_activities/{campaign_activity_ids}GET an Email Campaign Activity Stats Report
ConstantContactClient::EmailReportingApiget_email_campaign_reportGET /reports/summary_reports/email_campaign_summariesGET an Email Campaigns Summary Report
ConstantContactClient::EmailReportingApiget_email_opens_reportGET /reports/email_reports/{campaign_activity_id}/tracking/opensGET an Email Opens Report
ConstantContactClient::EmailReportingApiget_email_sends_reportGET /reports/email_reports/{campaign_activity_id}/tracking/sendsGET an Email Sends Report
ConstantContactClient::EmailReportingApiget_email_stats_reportGET /reports/stats/email_campaigns/{campaign_ids}GET an Email Campaign Stats Report
ConstantContactClient::EmailReportingApiget_forwards_reportGET /reports/email_reports/{campaign_activity_id}/tracking/forwardsGET an Email Forwards Report
ConstantContactClient::EmailReportingApiget_optouts_reportGET /reports/email_reports/{campaign_activity_id}/tracking/optoutsGET an Email Opt-outs Report
ConstantContactClient::EmailReportingApiget_unique_opens_reportGET /reports/email_reports/{campaign_activity_id}/tracking/unique_opensGET an Email Unique Opens Report
ConstantContactClient::EmailSchedulingApiget_email_campaign_activity_previewGET /emails/activities/{campaign_activity_id}/previewsGET the HTML Preview of an Email Campaign Activity
ConstantContactClient::EmailSchedulingApiget_email_campaign_activity_scheduleGET /emails/activities/{campaign_activity_id}/schedulesGET an Email Campaign Activity Schedule
ConstantContactClient::EmailSchedulingApiget_email_campaign_activity_send_historyGET /emails/activities/{campaign_activity_id}/send_historyGET the Send History of an Email Campaign Activity
ConstantContactClient::EmailSchedulingApischedule_email_campaign_activityPOST /emails/activities/{campaign_activity_id}/schedulesPOST (Create) an Email Campaign Activity Schedule
ConstantContactClient::EmailSchedulingApitest_send_email_campaign_activityPOST /emails/activities/{campaign_activity_id}/testsPOST Test Send an Email Campaign Activity
ConstantContactClient::EmailSchedulingApiunschedule_email_campaign_activityDELETE /emails/activities/{campaign_activity_id}/schedulesDELETE an Email Campaign Activity Schedule
ConstantContactClient::LandingPagesReportingApiget_contact_addsGET /reports/landing_pages/campaign_details/{campaign_activity_id}/p_unique_contact_addsGET a Unique Contacts Adds Landing Page Report
ConstantContactClient::LandingPagesReportingApiget_contact_opensGET /reports/landing_pages/campaign_details/{campaign_activity_id}/p_contact_opensGET a Contacts Opens Landing Page Report
ConstantContactClient::LandingPagesReportingApiget_unique_contact_clicksGET /reports/landing_pages/campaign_details/{campaign_activity_id}/p_unique_contact_clicksGET a Unique Contacts Clicks Landing Page Report
ConstantContactClient::LandingPagesReportingApiget_unique_contact_opensGET /reports/landing_pages/campaign_details/{campaign_activity_id}/p_unique_contact_opensGET a Unique Contacts Opens Landing Page Report
ConstantContactClient::LandingPagesReportingApiget_unique_contact_sms_opt_insGET /reports/landing_pages/campaign_details/{campaign_activity_id}/p_unique_contact_sms_optinsGET a Unique Contacts SMS Opt-In Landing Page Report
ConstantContactClient::LandingPagesReportingApiget_unique_contact_updatesGET /reports/landing_pages/campaign_details/{campaign_activity_id}/p_unique_contact_updatesGET a Unique Contacts Updates Landing Page Report
ConstantContactClient::SegmentsApicreate_segmentPOST /segmentsPOST (create) a Segment
ConstantContactClient::SegmentsApidelete_segmentDELETE /segments/{segment_id}DELETE a Segment
ConstantContactClient::SegmentsApiget_all_segmentsGET /segmentsGET all Segments
ConstantContactClient::SegmentsApiget_segment_by_idGET /segments/{segment_id}GET a Segment's Details
ConstantContactClient::SegmentsApiupdate_segmentPUT /segments/{segment_id}PUT (update) a Segment
ConstantContactClient::SegmentsApiupdate_segment_namePATCH /segments/{segment_id}/namePATCH (rename) a Segment

FAQs

Package last updated on 07 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc