1: <?php
2: namespace Ctct;
3:
4: use Ctct\Services\AccountService;
5: use Ctct\Services\ContactService;
6: use Ctct\Services\LibraryService;
7: use Ctct\Services\ListService;
8: use Ctct\Services\EmailMarketingService;
9: use Ctct\Services\CampaignScheduleService;
10: use Ctct\Services\CampaignTrackingService;
11: use Ctct\Services\ContactTrackingService;
12: use Ctct\Services\ActivityService;
13:
14: 15: 16: 17: 18: 19: 20: 21:
22: class ConstantContact
23: {
24: 25: 26: 27:
28: public $contactService;
29:
30: 31: 32: 33:
34: public $emailMarketingService;
35:
36: 37: 38: 39:
40: public $listService;
41:
42: 43: 44: 45:
46: public $activityService;
47:
48: 49: 50: 51:
52: public $campaignTrackingService;
53:
54: 55: 56: 57:
58: public $contactTrackingService;
59:
60: 61: 62: 63:
64: public $campaignScheduleService;
65:
66: 67: 68: 69:
70: public $accountService;
71:
72: 73: 74: 75:
76: public $libraryService;
77:
78: 79: 80: 81: 82:
83: public function __construct($apiKey)
84: {
85: $this->contactService = new ContactService($apiKey);
86: $this->emailMarketingService = new EmailMarketingService($apiKey);
87: $this->activityService = new ActivityService($apiKey);
88: $this->campaignTrackingService = new CampaignTrackingService($apiKey);
89: $this->contactTrackingService = new ContactTrackingService($apiKey);
90: $this->campaignScheduleService = new CampaignScheduleService($apiKey);
91: $this->listService = new ListService($apiKey);
92: $this->accountService = new AccountService($apiKey);
93: $this->libraryService = new LibraryService($apiKey);
94: }
95: }
96: