Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Tracking
    • Exceptions
    • Services
  • PHP

Classes

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

Class BaseService

Super class for all services

Direct known subclasses

Ctct\Services\AccountService, Ctct\Services\ActivityService, Ctct\Services\CampaignScheduleService, Ctct\Services\CampaignTrackingService, Ctct\Services\ContactService, Ctct\Services\ContactTrackingService, Ctct\Services\EmailMarketingService, Ctct\Services\ListService
Abstract
Namespace: Ctct\Services
Package: Services
Author: Constant Contact
Located at Ctct/Services/BaseService.php
Methods summary
public
# __construct( Ctct\Util\RestClientInterface $apiKey, mixed $rest_client = null )

Constructor with the option to to supply an alternative rest client to be used

Constructor with the option to to supply an alternative rest client to be used

Parameters

$apiKey
Ctct\Util\RestClientInterface
- RestClientInterface implementation to be used in the service
$rest_client
public string
# buildUrl( mixed $url, mixed $queryParams = null )

Build a url from the base url and query parameters array

Build a url from the base url and query parameters array

Returns

string
public static Ctct\Util\RestClientInterface
# getRestClient( )

Get the rest client being used by the service

Get the rest client being used by the service

Returns

Ctct\Util\RestClientInterface
- RestClientInterface implementation being used
protected static array
# getHeaders( mixed $accessToken )

Helper function to return required headers for making an http request with constant contact

Helper function to return required headers for making an http request with constant contact

Parameters

$accessToken
mixed
$accessToken - OAuth2 access token to be placed into the Authorization header

Returns

array
- authorization headers
Properties summary
public static mixed $rest_client
#
  • RestClient
  • RestClient
protected string $apiKey
#

ApiKey for the application

ApiKey for the application

Appconnect PHP SDK API documentation generated by ApiGen 2.8.0