1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace SpotifyApiConnect\Application\SpotifyWebApiPhp; |
5
|
|
|
|
6
|
|
|
use SpotifyWebAPI\SpotifyWebAPI as BaseSpotifyWebAPI; |
7
|
|
|
|
8
|
|
|
class SpotifyWebApi extends BaseSpotifyWebAPI implements SpotifyWebApiInterface |
9
|
|
|
{ |
10
|
|
|
public function addUserPlaylistTracks($userId, $playlistId, $tracks, $options = []) |
11
|
|
|
{ |
12
|
|
|
return parent::addUserPlaylistTracks($userId, $playlistId, $tracks, $options); |
13
|
|
|
} |
14
|
|
|
|
15
|
|
|
public function deleteUserPlaylistTracks($userId, $playlistId, $tracks, $snapshotId = '') |
16
|
|
|
{ |
17
|
|
|
return parent::deleteUserPlaylistTracks($userId, $playlistId, $tracks, $snapshotId); |
18
|
|
|
} |
19
|
|
|
|
20
|
|
|
public function getUserPlaylist($userId, $playlistId, $options = []) |
21
|
|
|
{ |
22
|
|
|
return parent::getUserPlaylist($userId, $playlistId, $options); |
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
public function getUserPlaylists($userId, $options = []) |
26
|
|
|
{ |
27
|
|
|
return parent::getUserPlaylists($userId, $options); |
28
|
|
|
} |
29
|
|
|
|
30
|
|
|
public function getUserPlaylistTracks($userId, $playlistId, $options = []) |
31
|
|
|
{ |
32
|
|
|
return parent::getUserPlaylistTracks($userId, $playlistId, $options); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
public function search($query, $type, $options = []) |
36
|
|
|
{ |
37
|
|
|
return parent::search($query, $type, $options); |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
public function setAccessToken($accessToken) |
41
|
|
|
{ |
42
|
|
|
parent::setAccessToken($accessToken); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
} |