1 | <?php |
||
15 | class Dailymotion extends AbstractService |
||
16 | { |
||
17 | /** |
||
18 | * Scopes |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | const SCOPE_EMAIL = 'email', |
||
23 | SCOPE_PROFILE = 'userinfo', |
||
24 | SCOPE_VIDEOS = 'manage_videos', |
||
25 | SCOPE_COMMENTS = 'manage_comments', |
||
26 | SCOPE_PLAYLIST = 'manage_playlists', |
||
27 | SCOPE_TILES = 'manage_tiles', |
||
28 | SCOPE_SUBSCRIPTIONS = 'manage_subscriptions', |
||
29 | SCOPE_FRIENDS = 'manage_friends', |
||
30 | SCOPE_FAVORITES = 'manage_favorites', |
||
31 | SCOPE_GROUPS = 'manage_groups'; |
||
32 | |||
33 | /** |
||
34 | * Dialog form factors |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | const DISPLAY_PAGE = 'page', |
||
39 | DISPLAY_POPUP = 'popup', |
||
40 | DISPLAY_MOBILE = 'mobile'; |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | protected function init() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getAuthorizationEndpoint() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getAccessTokenEndpoint() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | protected function getAuthorizationMethod() |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | protected function parseAccessTokenResponse($responseBody) |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | protected function getExtraOAuthHeaders() |
||
118 | } |
||
119 |