1 | <?php |
||
19 | class Dailymotion extends AbstractService |
||
20 | { |
||
21 | /** |
||
22 | * Scopes |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | const SCOPE_EMAIL = 'email', |
||
27 | SCOPE_PROFILE = 'userinfo', |
||
28 | SCOPE_VIDEOS = 'manage_videos', |
||
29 | SCOPE_COMMENTS = 'manage_comments', |
||
30 | SCOPE_PLAYLIST = 'manage_playlists', |
||
31 | SCOPE_TILES = 'manage_tiles', |
||
32 | SCOPE_SUBSCRIPTIONS = 'manage_subscriptions', |
||
33 | SCOPE_FRIENDS = 'manage_friends', |
||
34 | SCOPE_FAVORITES = 'manage_favorites', |
||
35 | SCOPE_GROUPS = 'manage_groups'; |
||
36 | |||
37 | /** |
||
38 | * Dialog form factors |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | const DISPLAY_PAGE = 'page', |
||
43 | DISPLAY_POPUP = 'popup', |
||
44 | DISPLAY_MOBILE = 'mobile'; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function __construct( |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getAuthorizationEndpoint() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getAccessTokenEndpoint() |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | protected function getAuthorizationMethod() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | protected function parseAccessTokenResponse($responseBody) |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | protected function getExtraOAuthHeaders() |
||
129 | } |
||
130 |