1 | <?php |
||
16 | class PilotApiClient |
||
17 | { |
||
18 | /** |
||
19 | * Pilot API URI |
||
20 | */ |
||
21 | const BASE_URI = 'http://www.pilotsolution.com.ar/api/webhooks/welcome.php'; |
||
22 | |||
23 | private $appKey; |
||
24 | private $debug; |
||
25 | private $guzzleClient; |
||
26 | |||
27 | /** |
||
28 | * PilotApi constructor. |
||
29 | * @param array $config |
||
30 | */ |
||
31 | 9 | public function __construct(array $config = []) |
|
47 | |||
48 | /** |
||
49 | * Stores a lead |
||
50 | * |
||
51 | * @param LeadData $lead_data |
||
52 | * @param string $notification_email |
||
53 | * |
||
54 | * @throws InvalidArgumentException |
||
55 | * |
||
56 | * @return mixed |
||
57 | */ |
||
58 | 4 | public function storeLead(LeadData $lead_data, $notification_email = '') |
|
84 | |||
85 | /** |
||
86 | * @return GuzzleClient |
||
87 | */ |
||
88 | 7 | public function getGuzzleClient() |
|
92 | |||
93 | /** |
||
94 | * @param $app_key |
||
95 | * |
||
96 | * @return $this |
||
97 | */ |
||
98 | 6 | public function setAppKey($app_key) |
|
103 | |||
104 | /** |
||
105 | * @return mixed |
||
106 | */ |
||
107 | 6 | public function getAppKey() |
|
114 | } |
||
115 |