Ctct\Services\EmailMarketingService
Performs all actions pertaining to Constant Contact Campaigns
- Author: Constant Contact
Synopsis
class EmailMarketingService
extends BaseService
{
- // Inherited members from BaseService
- public $restClient $restClient;
- protected $apiKey;
- // methods
- public Campaign addCampaign()
- public ResultSet getCampaigns()
- public Campaign getCampaign()
- public boolean deleteCampaign()
- public Campaign updateCampaign()
- // Inherited methods from BaseService
- public void __construct()
- public string buildUrl()
- public RestClientInterface getRestClient()
- public void setRestClient()
- protected static array getHeaders()
Hierarchy
Extends
Members
protected
- $apiKey
—
string
ApiKey for the application
public
- $restClient
—
Ctct\Services\$restClient
RestClient Implementation to use for HTTP requests
Methods
public
- addCampaign() — Create a new campaign
- deleteCampaign() — Delete an email campaign
- getCampaign() — Get campaign details for a specific campaign
- getCampaigns() — Get a set of campaigns
- updateCampaign() — Update a specific email campaign
Inherited from Ctct\Services\BaseService
protected
- getHeaders() — Helper function to return required headers for making an http request with constant contact
public
- buildUrl() — Build a url from the base url and query parameters array
- getRestClient() — Get the rest client being used by the service
- setRestClient()