1 | <?php |
||
27 | class Wrike extends AbstractService |
||
28 | { |
||
29 | /** |
||
30 | * Defined scopes |
||
31 | * https://developers.wrike.com/documentation/oauth2 |
||
32 | */ |
||
33 | const SCOPE_DEFAULT = 'Default'; |
||
34 | const SCOPE_READ = 'wsReadOnly'; |
||
35 | const SCOPE_READ_WRITE = 'wsReadWrite'; |
||
36 | const SCOPE_WORKFLOW_READ = 'amReadOnlyWorkflow'; |
||
37 | const SCOPE_WORKFLOW_READ_WRITE = 'amReadWriteWorkflow'; |
||
38 | const SCOPE_INVITATION_READ = 'amReadOnlyInvitation'; |
||
39 | const SCOPE_INVITATION_READ_WRITE = 'amReadWriteInvitation'; |
||
40 | const SCOPE_GROUP_READ = 'amReadOnlyGroup'; |
||
41 | const SCOPE_GROUP_READ_WRITE = 'amReadWriteGroup'; |
||
42 | const SCOPE_USER_READ = 'amReadOnlyUser'; |
||
43 | const SCOPE_USER_READ_WRITE = 'amReadWriteUser'; |
||
44 | |||
45 | |||
46 | public function __construct( |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function getAuthorizationEndpoint() |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function getAccessTokenEndpoint() |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | protected function parseAccessTokenResponse($responseBody) |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | protected function getApiVersionString() |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | protected function getScopesDelimiter() |
||
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | protected function getAuthorizationMethod() |
||
139 | } |
||
140 |