1 | <?php |
||
9 | class Vkontakte extends AbstractService |
||
10 | { |
||
11 | /** |
||
12 | * Defined scopes |
||
13 | * |
||
14 | * @link http://vk.com/dev/permissions |
||
15 | */ |
||
16 | const SCOPE_EMAIL = 'email'; |
||
17 | const SCOPE_NOTIFY = 'notify'; |
||
18 | const SCOPE_FRIENDS = 'friends'; |
||
19 | const SCOPE_PHOTOS = 'photos'; |
||
20 | const SCOPE_AUDIO = 'audio'; |
||
21 | const SCOPE_VIDEO = 'video'; |
||
22 | const SCOPE_DOCS = 'docs'; |
||
23 | const SCOPE_NOTES = 'notes'; |
||
24 | const SCOPE_PAGES = 'pages'; |
||
25 | const SCOPE_APP_LINK = ''; |
||
26 | const SCOPE_STATUS = 'status'; |
||
27 | const SCOPE_OFFERS = 'offers'; |
||
28 | const SCOPE_QUESTIONS = 'questions'; |
||
29 | const SCOPE_WALL = 'wall'; |
||
30 | const SCOPE_GROUPS = 'groups'; |
||
31 | const SCOPE_MESSAGES = 'messages'; |
||
32 | const SCOPE_NOTIFICATIONS = 'notifications'; |
||
33 | const SCOPE_STATS = 'stats'; |
||
34 | const SCOPE_ADS = 'ads'; |
||
35 | const SCOPE_OFFLINE = 'offline'; |
||
36 | const SCOPE_NOHTTPS = 'nohttps'; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | protected function init() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getAuthorizationEndpoint() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getAccessTokenEndpoint() |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | protected function parseAccessTokenResponse($responseBody) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | protected function getAuthorizationMethod() |
||
101 | } |
||
102 |