1 | <?php |
||
8 | class Client |
||
9 | { |
||
10 | /** |
||
11 | * Contains cURL instance. |
||
12 | */ |
||
13 | public $ch; |
||
14 | |||
15 | /** |
||
16 | * Contains the authentication string. |
||
17 | */ |
||
18 | protected $secret_token; |
||
19 | |||
20 | protected $grant_token; |
||
21 | |||
22 | /** |
||
23 | * __construct function. |
||
24 | * |
||
25 | * Instantiate object |
||
26 | * |
||
27 | * @param string $secret_token |
||
28 | * @param string $grant_token |
||
29 | * |
||
30 | * @throws Exception |
||
31 | */ |
||
32 | 4 | public function __construct($secret_token = '', $grant_token = '') |
|
54 | |||
55 | /** |
||
56 | * Shutdown function. |
||
57 | * |
||
58 | * Closes the current cURL connection |
||
59 | */ |
||
60 | public function shutdown() |
||
66 | |||
67 | /** |
||
68 | * authenticate function. |
||
69 | * |
||
70 | * Create a cURL instance with authentication headers |
||
71 | */ |
||
72 | 4 | protected function authenticate() |
|
99 | } |
||
100 |