1 | <?php |
||
27 | class Nest extends AbstractService |
||
28 | { |
||
29 | |||
30 | public function __construct( |
||
31 | CredentialsInterface $credentials, |
||
32 | ClientInterface $httpClient, |
||
33 | TokenStorageInterface $storage, |
||
34 | $scopes = array(), |
||
35 | UriInterface $baseApiUri = null |
||
36 | ) { |
||
37 | parent::__construct( |
||
38 | $credentials, |
||
39 | $httpClient, |
||
40 | $storage, |
||
41 | $scopes, |
||
42 | $baseApiUri, |
||
43 | true |
||
44 | ); |
||
45 | |||
46 | if (null === $baseApiUri) { |
||
47 | $this->baseApiUri = new Uri('https://developer-api.nest.com/'); |
||
48 | } |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getAuthorizationEndpoint() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getAccessTokenEndpoint() |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | protected function getAuthorizationMethod() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | protected function parseAccessTokenResponse($responseBody) |
||
106 | } |
||
107 |