Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Library
      • Tracking
    • Exceptions
    • Services
    • Util
    • WebHooks

Classes

  • AccountService
  • ActivityService
  • BaseService
  • CampaignScheduleService
  • CampaignTrackingService
  • ContactService
  • ContactTrackingService
  • EmailMarketingService
  • LibraryService
  • ListService
  • Overview
  • Namespace
  • Class

Class CampaignScheduleService

Performs all actions pertaining to scheduling Constant Contact Campaigns

Ctct\Services\BaseService
Extended by Ctct\Services\CampaignScheduleService
Namespace: Ctct\Services
Package: Services
Author: Constant Contact
Located at Services/CampaignScheduleService.php
Methods summary
public Ctct\Components\EmailMarketing\Schedule
# addSchedule( string $accessToken, integer $campaignId, Ctct\Components\EmailMarketing\Schedule $schedule )

Create a new schedule for a campaign

Create a new schedule for a campaign

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$campaignId
  • Campaign id to be scheduled
$schedule
  • Schedule to be created

Returns

Ctct\Components\EmailMarketing\Schedule

Throws

Ctct\Exceptions\CtctException
public array
# getSchedules( string $accessToken, integer $campaignId )

Get a list of schedules for a campaign

Get a list of schedules for a campaign

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$campaignId
  • Campaign id to be scheduled

Returns

array

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\EmailMarketing\Schedule
# getSchedule( string $accessToken, integer $campaignId, integer $scheduleId )

Get a specific schedule for a campaign

Get a specific schedule for a campaign

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$campaignId
  • Campaign id to be get a schedule for
$scheduleId
  • Schedule id to retrieve

Returns

Ctct\Components\EmailMarketing\Schedule

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\EmailMarketing\Schedule
# updateSchedule( string $accessToken, integer $campaignId, Ctct\Components\EmailMarketing\Schedule $schedule )

Update a specific schedule for a campaign

Update a specific schedule for a campaign

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$campaignId
  • Campaign id to be scheduled
$schedule
  • Schedule to retrieve

Returns

Ctct\Components\EmailMarketing\Schedule

Throws

Ctct\Exceptions\CtctException
public True
# deleteSchedule( string $accessToken, integer $campaignId, integer $scheduleId )

Delete a specific schedule for a campaign

Delete a specific schedule for a campaign

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$campaignId
  • Campaign id
$scheduleId
  • Schedule id to delete

Returns

True
if successful

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\EmailMarketing\TestSend
# sendTest( string $accessToken, integer $campaignId, Ctct\Components\EmailMarketing\TestSend $testSend )

Send a test send of a campaign

Send a test send of a campaign

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$campaignId
  • Id of campaign to send test of
$testSend
  • Test send details

Returns

Ctct\Components\EmailMarketing\TestSend

Throws

Ctct\Exceptions\CtctException
Methods inherited from Ctct\Services\BaseService
__construct(), convertException(), createBaseRequest(), getClient()
API documentation generated by ApiGen