1 | <?php |
||
13 | class Vkontakte extends AbstractService |
||
14 | { |
||
15 | /** |
||
16 | * Defined scopes. |
||
17 | * |
||
18 | * @see http://vk.com/dev/permissions |
||
19 | */ |
||
20 | const SCOPE_EMAIL = 'email'; |
||
21 | const SCOPE_NOTIFY = 'notify'; |
||
22 | const SCOPE_FRIENDS = 'friends'; |
||
23 | const SCOPE_PHOTOS = 'photos'; |
||
24 | const SCOPE_AUDIO = 'audio'; |
||
25 | const SCOPE_VIDEO = 'video'; |
||
26 | const SCOPE_DOCS = 'docs'; |
||
27 | const SCOPE_NOTES = 'notes'; |
||
28 | const SCOPE_PAGES = 'pages'; |
||
29 | const SCOPE_APP_LINK = ''; |
||
30 | const SCOPE_STATUS = 'status'; |
||
31 | const SCOPE_OFFERS = 'offers'; |
||
32 | const SCOPE_QUESTIONS = 'questions'; |
||
33 | const SCOPE_WALL = 'wall'; |
||
34 | const SCOPE_GROUPS = 'groups'; |
||
35 | const SCOPE_MESSAGES = 'messages'; |
||
36 | const SCOPE_NOTIFICATIONS = 'notifications'; |
||
37 | const SCOPE_STATS = 'stats'; |
||
38 | const SCOPE_ADS = 'ads'; |
||
39 | const SCOPE_OFFLINE = 'offline'; |
||
40 | const SCOPE_NOHTTPS = 'nohttps'; |
||
41 | |||
42 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getAuthorizationEndpoint() |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getAccessTokenEndpoint() |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | protected function parseAccessTokenResponse($responseBody) |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | protected function getAuthorizationMethod() |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function requestAccessToken($code, $state = null) |
||
138 | } |
||
139 |