1 | <?php |
||
14 | class PilotApiClient |
||
15 | { |
||
16 | /** |
||
17 | * Pilot API URI |
||
18 | */ |
||
19 | const BASE_URI = 'http://www.pilotsolution.com.ar/api/webhooks/welcome.php'; |
||
20 | |||
21 | private $appKey; |
||
22 | private $debug; |
||
23 | private $guzzleClient; |
||
24 | |||
25 | /** |
||
26 | * PilotApi constructor. |
||
27 | * @param array $config |
||
28 | */ |
||
29 | 8 | public function __construct(array $config = []) |
|
43 | |||
44 | /** |
||
45 | * Stores a lead |
||
46 | * |
||
47 | * @param LeadData $lead_data |
||
48 | * @param string $notification_email |
||
49 | * |
||
50 | * @throws InvalidArgumentException |
||
51 | * |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 4 | public function storeLead(LeadData $lead_data, $notification_email = '') |
|
88 | |||
89 | /** |
||
90 | * @return GuzzleClient |
||
91 | */ |
||
92 | 6 | public function getGuzzleClient() |
|
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | 1 | public function setAppKey($app_key) |
|
109 | } |
||
110 |