Overview

Namespaces

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

Classes

  • Ctct\Auth\CtctOAuth2
  • Ctct\Auth\SessionDataStore
  • Ctct\Components\Account\AccountInfo
  • Ctct\Components\Account\VerifiedEmailAddress
  • Ctct\Components\Activities\Activity
  • Ctct\Components\Activities\ActivityError
  • Ctct\Components\Activities\AddContacts
  • Ctct\Components\Activities\AddContactsImportData
  • Ctct\Components\Activities\ExportContacts
  • Ctct\Components\Component
  • Ctct\Components\Contacts\Address
  • Ctct\Components\Contacts\Contact
  • Ctct\Components\Contacts\ContactList
  • Ctct\Components\Contacts\CustomField
  • Ctct\Components\Contacts\EmailAddress
  • Ctct\Components\Contacts\Note
  • Ctct\Components\EmailMarketing\Campaign
  • Ctct\Components\EmailMarketing\ClickThroughDetails
  • Ctct\Components\EmailMarketing\MessageFooter
  • Ctct\Components\EmailMarketing\Schedule
  • Ctct\Components\EmailMarketing\TestSend
  • Ctct\Components\Library\File
  • Ctct\Components\Library\FileUploadStatus
  • Ctct\Components\Library\Folder
  • Ctct\Components\Library\Thumbnail
  • Ctct\Components\ResultSet
  • Ctct\Components\Tracking\BounceActivity
  • Ctct\Components\Tracking\ClickActivity
  • Ctct\Components\Tracking\ForwardActivity
  • Ctct\Components\Tracking\OpenActivity
  • Ctct\Components\Tracking\SendActivity
  • Ctct\Components\Tracking\TrackingActivity
  • Ctct\Components\Tracking\TrackingSummary
  • Ctct\Components\Tracking\UnsubscribeActivity
  • Ctct\ConstantContact
  • Ctct\Services\AccountService
  • Ctct\Services\ActivityService
  • Ctct\Services\BaseService
  • Ctct\Services\CampaignScheduleService
  • Ctct\Services\CampaignTrackingService
  • Ctct\Services\ContactService
  • Ctct\Services\ContactTrackingService
  • Ctct\Services\EmailMarketingService
  • Ctct\Services\LibraryService
  • Ctct\Services\ListService
  • Ctct\SplClassLoader
  • Ctct\Util\Config
  • Ctct\WebHooks\CTCTWebhookUtil

Interfaces

  • Ctct\Auth\CtctDataStore

Exceptions

  • Ctct\Exceptions\CtctException
  • Ctct\Exceptions\IllegalArgumentException
  • Ctct\Exceptions\OAuth2Exception
  • Overview
  • Namespace
  • Class
  1: <?php
  2: namespace Ctct\Components\Account;
  3: 
  4: use Ctct\Components\Component;
  5: 
  6: /**
  7:  * Represents account info associated with an access token in Constant Contact
  8:  *
  9:  * @package        Components
 10:  * @subpackage     Account
 11:  * @author         ewaltman
 12:  */
 13: class AccountInfo extends Component
 14: {
 15:     /**
 16:      * Website associated with the account
 17:      * @var string
 18:      */
 19:     public $website;
 20: 
 21:     /**
 22:      * Name of organization associated with the account
 23:      * @var string
 24:      */
 25:     public $organization_name;
 26: 
 27:     /**
 28:      * Time zone used with the account
 29:      * @var string
 30:      */
 31:     public $time_zone;
 32: 
 33:     /**
 34:      * First name of the account user
 35:      * @var string
 36:      */
 37:     public $first_name;
 38: 
 39:     /**
 40:      * Last name of the account user
 41:      * @var string
 42:      */
 43:     public $last_name;
 44: 
 45:     /**
 46:      * Email address associated with the account
 47:      * @var string
 48:      */
 49:     public $email;
 50: 
 51:     /**
 52:      * Phone number associated with the account
 53:      * @var string
 54:      */
 55:     public $phone;
 56: 
 57:     /**
 58:      * URL of the company logo associated with the account
 59:      * @var string
 60:      */
 61:     public $company_logo;
 62: 
 63:     /**
 64:      * Country code associated with the account
 65:      * @var string
 66:      */
 67:     public $country_code;
 68: 
 69:     /**
 70:      * State code associated with the account
 71:      * @var string
 72:      */
 73:     public $state_code;
 74: 
 75:     /**
 76:      * Array of organization addresses associated with the account
 77:      * @var array
 78:      */
 79:     public $organization_addresses;
 80: 
 81:     /**
 82:      * Factory method to create an AccountInfo object from an array
 83:      * @param array $props - associative array of initial properties to set
 84:      * @return AccountInfo
 85:      */
 86:     public static function create(array $props)
 87:     {
 88:         $accountInfo = new AccountInfo();
 89:         $accountInfo->website = parent::getValue($props, "website");
 90:         $accountInfo->organization_name = parent::getValue($props, "organization_name");
 91:         $accountInfo->time_zone = parent::getValue($props, "time_zone");
 92:         $accountInfo->first_name = parent::getValue($props, "first_name");
 93:         $accountInfo->last_name = parent::getValue($props, "last_name");
 94:         $accountInfo->email = parent::getValue($props, "email");
 95:         $accountInfo->phone = parent::getValue($props, "phone");
 96:         $accountInfo->company_logo = parent::getValue($props, "company_logo");
 97:         $accountInfo->country_code = parent::getValue($props, "country_code");
 98:         $accountInfo->state_code = parent::getValue($props, "state_code");
 99:         $accountInfo->organization_addresses = parent::getValue($props, "organization_addresses");
100: 
101:         return $accountInfo;
102:     }
103: 
104:     public function toJson() {
105:         return json_encode($this);
106:     }
107: }
108: 
API documentation generated by ApiGen