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 AccountService

Performs all actions pertaining to scheduling Constant Contact Account's

Ctct\Services\BaseService
Extended by Ctct\Services\AccountService
Namespace: Ctct\Services
Package: Services
Author: Constant Contact
Located at Services/AccountService.php
Methods summary
public array
# getVerifiedEmailAddresses( string $accessToken, array $params = array() )

Get all verified email addresses associated with an account

Get all verified email addresses associated with an account

Parameters

$accessToken
  • Constant Contact OAuth2 Access Token
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: status - Status to filter results by. Must be one of ALL, CONFIRMED, or UNCONFIRMED.

Returns

array
of VerifiedEmailAddress

Throws

Ctct\Exceptions\CtctException
public array
# createVerifiedEmailAddress( string $accessToken, string $emailAddress )

Create a new verified email address. This will also prompt the account to send a verification email to the address.

Create a new verified email address. This will also prompt the account to send a verification email to the address.

Parameters

$accessToken
  • Constant Contact OAuth2 Access Token
$emailAddress
  • email address to create

Returns

array
  • array of VerifiedEmailAddress created

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\Account\AccountInfo
# getAccountInfo( string $accessToken )

Get account info associated with an access token

Get account info associated with an access token

Parameters

$accessToken
  • Constant Contact OAuth2 Access Token

Returns

Ctct\Components\Account\AccountInfo

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\Account\AccountInfo
# updateAccountInfo( string $accessToken, Ctct\Components\Account\AccountInfo $accountInfo )

Update information of the account.

Update information of the account.

Parameters

$accessToken
  • Constant Contact OAuth2 Access Token
$accountInfo
  • Updated AccountInfo

Returns

Ctct\Components\Account\AccountInfo

Throws

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