1 | <?php |
||
23 | class Deezer extends AbstractService |
||
24 | { |
||
25 | /** |
||
26 | * Defined scopes |
||
27 | * http://developers.deezer.com/api/permissions |
||
28 | */ |
||
29 | const SCOPE_BASIC_ACCESS = 'basic_access'; // Access users basic information |
||
30 | const SCOPE_EMAIL = 'email'; // Get the user's email |
||
31 | const SCOPE_OFFLINE_ACCESS = 'offline_access'; // Access user data any time |
||
32 | const SCOPE_MANAGE_LIBRARY = 'manage_library'; // Manage users' library |
||
33 | const SCOPE_MANAGE_COMMUNITY = 'manage_community'; // Manage users' friends |
||
34 | const SCOPE_DELETE_LIBRARY = 'delete_library'; // Delete library items |
||
35 | const SCOPE_LISTENING_HISTORY = 'listening_history'; // Access the user's listening history |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | protected function init() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getAuthorizationEndpoint() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getAccessTokenEndpoint() |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | protected function getAuthorizationMethod() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | protected function parseAccessTokenResponse($responseBody) |
||
108 | } |
||
109 |