1 | <?php |
||
19 | class ActiveCampaign |
||
20 | { |
||
21 | use MakesHttpRequests, |
||
22 | ManagesAccounts, |
||
23 | ManagesAccountContacts, |
||
24 | ManagesAccountCustomFields, |
||
25 | ManagesAutomations, |
||
26 | ManagesContacts, |
||
27 | ManagesTags, |
||
28 | ManagesContactTags, |
||
29 | ManagesContactAutomations, |
||
30 | ManagesCustomFields, |
||
31 | ManagesOrganizations, |
||
|
|||
32 | ManagesEvents, |
||
33 | ManagesLists; |
||
34 | |||
35 | /** |
||
36 | * The ActiveCampaign base url. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | public $apiUrl; |
||
41 | |||
42 | /** |
||
43 | * The ActiveCampaign API token. |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | public $apiKey; |
||
48 | |||
49 | /** |
||
50 | * The Guzzle HTTP Client instance. |
||
51 | * |
||
52 | * @var \GuzzleHttp\Client |
||
53 | */ |
||
54 | public $guzzle; |
||
55 | |||
56 | /** |
||
57 | * Create a new ActiveCampaign instance. |
||
58 | * |
||
59 | * @param string $apiUrl |
||
60 | * @param string $apiKey |
||
61 | * @param \GuzzleHttp\Client $guzzle |
||
62 | */ |
||
63 | public function __construct($apiUrl, $apiKey, HttpClient $guzzle = null) |
||
78 | |||
79 | /** |
||
80 | * Transform the items of the collection to the given class. |
||
81 | * |
||
82 | * @param array $collection |
||
83 | * @param string $class |
||
84 | * @param string $key |
||
85 | * @param array $extraData |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | protected function transformCollection($collection, $class, $key = '', $extraData = []) |
||
95 | } |
||
96 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.