1 | <?php |
||
10 | class DeviantArt extends AbstractService |
||
11 | { |
||
12 | /** |
||
13 | * DeviantArt www url - used to build dialog urls |
||
14 | */ |
||
15 | const WWW_URL = 'https://www.deviantart.com/'; |
||
16 | |||
17 | /** |
||
18 | * Defined scopes |
||
19 | * |
||
20 | * If you don't think this is scary you should not be allowed on the web at all |
||
21 | * |
||
22 | * @link https://www.deviantart.com/developers/authentication |
||
23 | * @link https://www.deviantart.com/developers/http/v1/20150217 |
||
24 | */ |
||
25 | const SCOPE_FEED = 'feed'; |
||
26 | const SCOPE_BROWSE = 'browse'; |
||
27 | const SCOPE_COMMENT = 'comment.post'; |
||
28 | const SCOPE_STASH = 'stash'; |
||
29 | const SCOPE_USER = 'user'; |
||
30 | const SCOPE_USERMANAGE = 'user.manage'; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected function init() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function getAuthorizationEndpoint() |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function getAccessTokenEndpoint() |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | protected function parseAccessTokenResponse($responseBody) |
||
91 | } |
||
92 |