| 1 | <?php |
||
| 12 | class BarenoteClient |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Transport |
||
| 16 | */ |
||
| 17 | private $transport; |
||
| 18 | private $endpoints = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * BarenoteClient constructor. |
||
| 22 | * @param string $host |
||
| 23 | */ |
||
| 24 | public function __construct(string $host) |
||
| 32 | |||
| 33 | public function authenticate(string $username, string $password): Token |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return Authentication |
||
| 44 | */ |
||
| 45 | private function getAuthenticationEndpoint() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return Notes |
||
| 52 | */ |
||
| 53 | public function getNotesEndpoint() |
||
| 57 | } |