1 | <?php |
||
14 | class QuickBooks extends AbstractService |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function __construct( |
||
20 | CredentialsInterface $credentials, |
||
21 | ClientInterface $httpClient, |
||
22 | TokenStorageInterface $storage, |
||
23 | SignatureInterface $signature, |
||
24 | UriInterface $baseApiUri = null |
||
25 | ) { |
||
26 | parent::__construct( |
||
27 | $credentials, |
||
28 | $httpClient, |
||
29 | $storage, |
||
30 | $signature, |
||
31 | $baseApiUri |
||
32 | ); |
||
33 | |||
34 | if (null === $baseApiUri) { |
||
35 | $this->baseApiUri = new Uri('https://quickbooks.api.intuit.com/'); |
||
36 | } |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getRequestTokenEndpoint() |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getAuthorizationEndpoint() |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getAccessTokenEndpoint() |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | protected function parseRequestTokenResponse($responseBody) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | protected function parseAccessTokenResponse($responseBody) |
||
107 | |||
108 | /** |
||
109 | * {@inheritDoc} |
||
110 | */ |
||
111 | public function request( |
||
120 | } |
||
121 |