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 ContactTrackingService

Performs all actions pertaining to Contact Tracking

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

Get bounces for a given contact

Get bounces for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). next - the next link returned from a previous paginated call. May only be used by itself.

Returns

Ctct\Components\ResultSet
  • Containing a results array of Ctct\Components\Tracking\BounceActivity

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\ResultSet
# getClicks( string $accessToken, string $contactId, array $params = array() )

Get clicks for a given contact

Get clicks for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). next - the next link returned from a previous paginated call. May only be used by itself.

Returns

Ctct\Components\ResultSet
  • Containing a results array of Ctct\Components\Tracking\ClickActivity

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\ResultSet
# getForwards( string $accessToken, string $contactId, array $params = array() )

Get forwards for a given contact

Get forwards for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). next - the next link returned from a previous paginated call. May only be used by itself.

Returns

Ctct\Components\ResultSet
  • Containing a results array of Ctct\Components\Tracking\ForwardActivity

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\ResultSet
# getOpens( string $accessToken, string $contactId, array $params = array() )

Get opens for a given contact

Get opens for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). next - the next link returned from a previous paginated call. May only be used by itself.

Returns

Ctct\Components\ResultSet
  • Containing a results array of Ctct\Components\Tracking\OpenActivity

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\ResultSet
# getSends( string $accessToken, string $contactId, array $params = array() )

Get sends for a given contact

Get sends for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). next - the next link returned from a previous paginated call. May only be used by itself.

Returns

Ctct\Components\ResultSet
  • Containing a results array of Ctct\Components\Tracking\SendActivity

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\ResultSet
# getUnsubscribes( string $accessToken, string $contactId, array $params = array() )

Get unsubscribes for a given contact

Get unsubscribes for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id
$params
  • associative array of query parameters and values to append to the request. Allowed parameters include: limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). next - the next link returned from a previous paginated call. May only be used by itself.

Returns

Ctct\Components\ResultSet
  • Containing a results array of Ctct\Components\Tracking\UnsubscribeActivity

Throws

Ctct\Exceptions\CtctException
public Ctct\Components\Tracking\TrackingSummary
# getSummary( string $accessToken, string $contactId )

Get a summary of reporting data for a given contact

Get a summary of reporting data for a given contact

Parameters

$accessToken
  • Constant Contact OAuth2 access token
$contactId
  • Contact id

Returns

Ctct\Components\Tracking\TrackingSummary

Throws

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