1 | <?php |
||
19 | class Box extends AbstractService |
||
20 | { |
||
21 | public function __construct( |
||
22 | CredentialsInterface $credentials, |
||
23 | ClientInterface $httpClient, |
||
24 | TokenStorageInterface $storage, |
||
25 | $scopes = array(), |
||
26 | UriInterface $baseApiUri = null |
||
27 | ) { |
||
28 | parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri, true); |
||
29 | |||
30 | if (null === $baseApiUri) { |
||
31 | $this->baseApiUri = new Uri('https://api.box.com/2.0/'); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function getAuthorizationEndpoint() |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function getAccessTokenEndpoint() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | protected function getAuthorizationMethod() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | protected function parseAccessTokenResponse($responseBody) |
||
88 | } |
||
89 |