1 | <?php |
||
7 | class Connection |
||
8 | { |
||
9 | /** |
||
10 | * The base url for the Pushbullet API |
||
11 | * |
||
12 | * @var string $base_url |
||
13 | */ |
||
14 | protected $base_url = 'https://api.pushbullet.com/v2/'; |
||
15 | |||
16 | |||
17 | /** |
||
18 | * The pre-configured Guzzle client |
||
19 | * |
||
20 | * @var \GuzzleHttp\Client |
||
21 | */ |
||
22 | protected $client; |
||
23 | |||
24 | 27 | public function __construct($access_token, Client $client = null, array $config = []) |
|
28 | |||
29 | /** |
||
30 | * @return \GuzzleHttp\Client |
||
31 | */ |
||
32 | 27 | public function client() |
|
36 | |||
37 | protected function getClientParams($access_token, array $config = []) |
||
57 | } |
||
58 |