1 | <?php |
||
20 | class CleverReach extends AbstractService |
||
21 | { |
||
22 | /** |
||
23 | * default scope |
||
24 | */ |
||
25 | const SCOPE_BASIC = 'basic'; |
||
26 | |||
27 | /** |
||
28 | * scope for read access |
||
29 | */ |
||
30 | const SCOPE_READ = 'read'; |
||
31 | |||
32 | /** |
||
33 | * scope for write access |
||
34 | */ |
||
35 | const SCOPE_WRITE = 'write'; |
||
36 | |||
37 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getAuthorizationEndpoint() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getAccessTokenEndpoint(){ |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | protected function getAuthorizationMethod() |
||
73 | |||
74 | /** |
||
75 | * Used to configure response type -- we want JSON, default is query string format |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | protected function getExtraOAuthHeaders() |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | protected function parseAccessTokenResponse($responseBody) |
||
104 | } |