1 | <?php |
||
25 | class PassportClient extends AbstractServiceClient |
||
26 | { |
||
27 | |||
28 | public $serviceDomain = 'login.yandex.ru/info'; |
||
29 | |||
30 | /** |
||
31 | * @param $token |
||
32 | * @return \Yandex\Passport\PassportModel |
||
33 | * @throws \Yandex\Common\Exception\UnauthorizedException |
||
34 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
35 | */ |
||
36 | 6 | public function getInfo($token) |
|
49 | |||
50 | |||
51 | /** |
||
52 | * Sends a request |
||
53 | * |
||
54 | * @param string $method HTTP method |
||
55 | * @param string $uri URI object or string. |
||
56 | * @param array $options Request options to apply. |
||
57 | * |
||
58 | * @return Response |
||
59 | * |
||
60 | * @throws UnauthorizedException |
||
61 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
62 | */ |
||
63 | protected function sendRequest($method, $uri, array $options = []) |
||
80 | } |
||
81 |