| 1 | package Net::Async::Spotify::API::Generated::Library; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 2 | our $VERSION = '0.002'; # VERSION | |||||||||||
| 7 | 2 | our $AUTHORITY = 'cpan:VNEALV'; # AUTHORITY | |||||||||||
| 8 | |||||||||||||
| 9 | 2 | ▶ | use mro; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 2 | ▶ | use parent qw(Net::Async::Spotify::API::Base); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | |||||||||||||
| 12 | 2 | ▶ | use Future::AsyncAwait; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | =encoding utf8 | ||||||||||||
| 15 | |||||||||||||
| 16 | =head1 NAME | ||||||||||||
| 17 | |||||||||||||
| 18 | Net::Async::Spotify::API::Generated::Library - Package representing Spotify Library API | ||||||||||||
| 19 | |||||||||||||
| 20 | =head1 DESCRIPTION | ||||||||||||
| 21 | |||||||||||||
| 22 | Autogenerated module. | ||||||||||||
| 23 | Based on https://developer.spotify.com/documentation/web-api/reference/#reference-index | ||||||||||||
| 24 | Check C<crawl-api-doc.pl> for more information. | ||||||||||||
| 25 | |||||||||||||
| 26 | =head1 METHODS | ||||||||||||
| 27 | |||||||||||||
| 28 | =cut | ||||||||||||
| 29 | |||||||||||||
| 30 | 0 | ▶ | sub mapping { shift->{mapping} } | ||||||||||
|
Subroutine
mapping: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 31 | |||||||||||||
| 32 | =head2 check_users_saved_albums | ||||||||||||
| 33 | |||||||||||||
| 34 | check_users_saved_albums - Check User's Saved Albums | ||||||||||||
| 35 | |||||||||||||
| 36 | Check if one or more albums is already saved in the current Spotify user’s ‘Your Music’ library. | ||||||||||||
| 37 | |||||||||||||
| 38 | with Request details being: | ||||||||||||
| 39 | |||||||||||||
| 40 | =head3 header | ||||||||||||
| 41 | |||||||||||||
| 42 | =over 4 | ||||||||||||
| 43 | |||||||||||||
| 44 | =item Authorization | ||||||||||||
| 45 | |||||||||||||
| 46 | Type: string | Required: required | ||||||||||||
| 47 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-read scope must have been authorized by the user. | ||||||||||||
| 48 | |||||||||||||
| 49 | =back | ||||||||||||
| 50 | |||||||||||||
| 51 | =head3 query_parameter | ||||||||||||
| 52 | |||||||||||||
| 53 | =over 4 | ||||||||||||
| 54 | |||||||||||||
| 55 | =item ids | ||||||||||||
| 56 | |||||||||||||
| 57 | Type: string | Required: required | ||||||||||||
| 58 | A comma-separated list of the Spotify IDs for the albums. Maximum: 50 IDs. | ||||||||||||
| 59 | |||||||||||||
| 60 | =back | ||||||||||||
| 61 | |||||||||||||
| 62 | and Response Objects being: | ||||||||||||
| 63 | |||||||||||||
| 64 | - error object | ||||||||||||
| 65 | |||||||||||||
| 66 | |||||||||||||
| 67 | On success, the HTTP status code in the response header is 200 OK and the response body contains a JSON array of true or false values, in the same order in which the ids were specified. | ||||||||||||
| 68 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 69 | |||||||||||||
| 70 | =cut | ||||||||||||
| 71 | |||||||||||||
| 72 | 0 | ▶ | async sub check_users_saved_albums { | ||||||||||
|
Subroutine
check_users_saved_albums: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 73 | 0 | my ($self, %args) = @_; | |||||||||||
| 74 | |||||||||||||
| 75 | 0 | my $mapping = $self->mapping; | |||||||||||
| 76 | 0 | ▶ | my $request->{method} = $mapping->{check_users_saved_albums}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_albums"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"check_users_saved_albums"}{"method"} // "GET"
$mapping->{"check_users_saved_albums"}{"method"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_albums"}{"method"}
| |||||||||||||
| 77 | 0 | ▶ | $request->{uri} = $mapping->{check_users_saved_albums}{uri} // 'https://api.spotify.com/v1/me/albums/contains'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_albums"}{"uri"} // "https://api.spotify.com/v1/me/albums/contains"
MC/DC0%0/1
$mapping->{"check_users_saved_albums"}{"uri"} // "https://api.spotify.com/v1/me/albums/contains"
$mapping->{"check_users_saved_albums"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_albums"}{"uri"}
| |||||||||||||
| 78 | $request->{param} = $mapping->{check_users_saved_albums}{param} // { | ||||||||||||
| 79 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_albums"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"check_users_saved_albums"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"check_users_saved_albums"}{"param"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_albums"}{"param"}
| |||||||||||||
| 80 | 'Authorization' => { | ||||||||||||
| 81 | type => 'string', | ||||||||||||
| 82 | required => 'required', | ||||||||||||
| 83 | }, | ||||||||||||
| 84 | }, | ||||||||||||
| 85 | query_parameter => { | ||||||||||||
| 86 | 'ids' => { | ||||||||||||
| 87 | type => 'string', | ||||||||||||
| 88 | required => 'required', | ||||||||||||
| 89 | }, | ||||||||||||
| 90 | }, | ||||||||||||
| 91 | }; | ||||||||||||
| 92 | my $response_objs = $mapping->{check_users_saved_albums}{response} // [ | ||||||||||||
| 93 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_albums"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"check_users_saved_albums"}{"response"} // ["error object"]
$mapping->{"check_users_saved_albums"}{"response"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_albums"}{"response"}
| |||||||||||||
| 94 | |||||||||||||
| 95 | ]; | ||||||||||||
| 96 | |||||||||||||
| 97 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 98 | 2 | } | |||||||||||
| 99 | |||||||||||||
| 100 | =head2 check_users_saved_episodes | ||||||||||||
| 101 | |||||||||||||
| 102 | check_users_saved_episodes - Check User's Saved Episodes | ||||||||||||
| 103 | |||||||||||||
| 104 | Check if one or more episodes is already saved in the current Spotify user’s ‘Your Episodes’ library. | ||||||||||||
| 105 | This API endpoint is in beta and could change without warning. Please share any feedback that you have, or issues that you discover, in our developer community forum.. | ||||||||||||
| 106 | |||||||||||||
| 107 | with Request details being: | ||||||||||||
| 108 | |||||||||||||
| 109 | =head3 header | ||||||||||||
| 110 | |||||||||||||
| 111 | =over 4 | ||||||||||||
| 112 | |||||||||||||
| 113 | =item Authorization | ||||||||||||
| 114 | |||||||||||||
| 115 | Type: string | Required: required | ||||||||||||
| 116 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-read scope must have been authorized by the user. | ||||||||||||
| 117 | |||||||||||||
| 118 | =back | ||||||||||||
| 119 | |||||||||||||
| 120 | =head3 query_parameter | ||||||||||||
| 121 | |||||||||||||
| 122 | =over 4 | ||||||||||||
| 123 | |||||||||||||
| 124 | =item ids | ||||||||||||
| 125 | |||||||||||||
| 126 | Type: string | Required: required | ||||||||||||
| 127 | A comma-separated list of the Spotify IDs for the episodes. Maximum: 50 IDs. | ||||||||||||
| 128 | |||||||||||||
| 129 | =back | ||||||||||||
| 130 | |||||||||||||
| 131 | and Response Objects being: | ||||||||||||
| 132 | |||||||||||||
| 133 | - error object | ||||||||||||
| 134 | |||||||||||||
| 135 | |||||||||||||
| 136 | On success, the HTTP status code in the response header is 200 OK and the response body contains a JSON array of true or false values, in the same order in which the ids were specified. | ||||||||||||
| 137 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 138 | |||||||||||||
| 139 | =cut | ||||||||||||
| 140 | |||||||||||||
| 141 | 0 | ▶ | async sub check_users_saved_episodes { | ||||||||||
|
Subroutine
check_users_saved_episodes: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 142 | 0 | my ($self, %args) = @_; | |||||||||||
| 143 | |||||||||||||
| 144 | 0 | my $mapping = $self->mapping; | |||||||||||
| 145 | 0 | ▶ | my $request->{method} = $mapping->{check_users_saved_episodes}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_episodes"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"check_users_saved_episodes"}{"method"} // "GET"
$mapping->{"check_users_saved_episodes"}{"method"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_episodes"}{"method"}
| |||||||||||||
| 146 | 0 | ▶ | $request->{uri} = $mapping->{check_users_saved_episodes}{uri} // 'https://api.spotify.com/v1/me/episodes/contains'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_episodes"}{"uri"} // "https://api.spotify.com/v1/me/episodes/contains"
MC/DC0%0/1
$mapping->{"check_users_saved_episodes"}{"uri"} // "https://api.spotify.com/v1/me/episodes/contains"
$mapping->{"check_users_saved_episodes"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_episodes"}{"uri"}
| |||||||||||||
| 147 | $request->{param} = $mapping->{check_users_saved_episodes}{param} // { | ||||||||||||
| 148 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_episodes"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"check_users_saved_episodes"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"check_users_saved_episodes"}{"param"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_episodes"}{"param"}
| |||||||||||||
| 149 | 'Authorization' => { | ||||||||||||
| 150 | type => 'string', | ||||||||||||
| 151 | required => 'required', | ||||||||||||
| 152 | }, | ||||||||||||
| 153 | }, | ||||||||||||
| 154 | query_parameter => { | ||||||||||||
| 155 | 'ids' => { | ||||||||||||
| 156 | type => 'string', | ||||||||||||
| 157 | required => 'required', | ||||||||||||
| 158 | }, | ||||||||||||
| 159 | }, | ||||||||||||
| 160 | }; | ||||||||||||
| 161 | my $response_objs = $mapping->{check_users_saved_episodes}{response} // [ | ||||||||||||
| 162 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_episodes"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"check_users_saved_episodes"}{"response"} // ["error object"]
$mapping->{"check_users_saved_episodes"}{"response"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_episodes"}{"response"}
| |||||||||||||
| 163 | |||||||||||||
| 164 | ]; | ||||||||||||
| 165 | |||||||||||||
| 166 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 167 | 2 | } | |||||||||||
| 168 | |||||||||||||
| 169 | =head2 check_users_saved_shows | ||||||||||||
| 170 | |||||||||||||
| 171 | check_users_saved_shows - Check User's Saved Shows | ||||||||||||
| 172 | |||||||||||||
| 173 | Check if one or more shows is already saved in the current Spotify user’s library. | ||||||||||||
| 174 | |||||||||||||
| 175 | with Request details being: | ||||||||||||
| 176 | |||||||||||||
| 177 | =head3 header | ||||||||||||
| 178 | |||||||||||||
| 179 | =over 4 | ||||||||||||
| 180 | |||||||||||||
| 181 | =item Authorization | ||||||||||||
| 182 | |||||||||||||
| 183 | Type: string | Required: required | ||||||||||||
| 184 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The access token must have been isued on behalf of the user. The user-library-read scope must have been authorised by the user. | ||||||||||||
| 185 | |||||||||||||
| 186 | =back | ||||||||||||
| 187 | |||||||||||||
| 188 | =head3 query_parameter | ||||||||||||
| 189 | |||||||||||||
| 190 | =over 4 | ||||||||||||
| 191 | |||||||||||||
| 192 | =item ids | ||||||||||||
| 193 | |||||||||||||
| 194 | Type: string | Required: required | ||||||||||||
| 195 | A comma-separated list of the Spotify IDs for the shows. Maximum: 50 ids. | ||||||||||||
| 196 | |||||||||||||
| 197 | =back | ||||||||||||
| 198 | |||||||||||||
| 199 | and Response Objects being: | ||||||||||||
| 200 | |||||||||||||
| 201 | - error object | ||||||||||||
| 202 | |||||||||||||
| 203 | |||||||||||||
| 204 | On success, the HTTP status code in the response header is 200 OK and the response body contains a JSON array of trueor false values, in the same order in which the ids were specified. On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 205 | |||||||||||||
| 206 | =cut | ||||||||||||
| 207 | |||||||||||||
| 208 | 0 | ▶ | async sub check_users_saved_shows { | ||||||||||
|
Subroutine
check_users_saved_shows: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 209 | 0 | my ($self, %args) = @_; | |||||||||||
| 210 | |||||||||||||
| 211 | 0 | my $mapping = $self->mapping; | |||||||||||
| 212 | 0 | ▶ | my $request->{method} = $mapping->{check_users_saved_shows}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_shows"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"check_users_saved_shows"}{"method"} // "GET"
$mapping->{"check_users_saved_shows"}{"method"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_shows"}{"method"}
| |||||||||||||
| 213 | 0 | ▶ | $request->{uri} = $mapping->{check_users_saved_shows}{uri} // 'https://api.spotify.com/v1/me/shows/contains'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_shows"}{"uri"} // "https://api.spotify.com/v1/me/shows/contains"
MC/DC0%0/1
$mapping->{"check_users_saved_shows"}{"uri"} // "https://api.spotify.com/v1/me/shows/contains"
$mapping->{"check_users_saved_shows"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_shows"}{"uri"}
| |||||||||||||
| 214 | $request->{param} = $mapping->{check_users_saved_shows}{param} // { | ||||||||||||
| 215 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_shows"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"check_users_saved_shows"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"check_users_saved_shows"}{"param"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_shows"}{"param"}
| |||||||||||||
| 216 | 'Authorization' => { | ||||||||||||
| 217 | type => 'string', | ||||||||||||
| 218 | required => 'required', | ||||||||||||
| 219 | }, | ||||||||||||
| 220 | }, | ||||||||||||
| 221 | query_parameter => { | ||||||||||||
| 222 | 'ids' => { | ||||||||||||
| 223 | type => 'string', | ||||||||||||
| 224 | required => 'required', | ||||||||||||
| 225 | }, | ||||||||||||
| 226 | }, | ||||||||||||
| 227 | }; | ||||||||||||
| 228 | my $response_objs = $mapping->{check_users_saved_shows}{response} // [ | ||||||||||||
| 229 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_shows"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"check_users_saved_shows"}{"response"} // ["error object"]
$mapping->{"check_users_saved_shows"}{"response"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_shows"}{"response"}
| |||||||||||||
| 230 | |||||||||||||
| 231 | ]; | ||||||||||||
| 232 | |||||||||||||
| 233 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 234 | 2 | } | |||||||||||
| 235 | |||||||||||||
| 236 | =head2 check_users_saved_tracks | ||||||||||||
| 237 | |||||||||||||
| 238 | check_users_saved_tracks - Check User's Saved Tracks | ||||||||||||
| 239 | |||||||||||||
| 240 | Check if one or more tracks is already saved in the current Spotify user’s ‘Your Music’ library. | ||||||||||||
| 241 | |||||||||||||
| 242 | with Request details being: | ||||||||||||
| 243 | |||||||||||||
| 244 | =head3 header | ||||||||||||
| 245 | |||||||||||||
| 246 | =over 4 | ||||||||||||
| 247 | |||||||||||||
| 248 | =item Authorization | ||||||||||||
| 249 | |||||||||||||
| 250 | Type: string | Required: required | ||||||||||||
| 251 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-read scope must have been authorized by the user. | ||||||||||||
| 252 | |||||||||||||
| 253 | =back | ||||||||||||
| 254 | |||||||||||||
| 255 | =head3 query_parameter | ||||||||||||
| 256 | |||||||||||||
| 257 | =over 4 | ||||||||||||
| 258 | |||||||||||||
| 259 | =item ids | ||||||||||||
| 260 | |||||||||||||
| 261 | Type: string | Required: required | ||||||||||||
| 262 | A comma-separated list of the Spotify IDs for the tracks. Maximum: 50 IDs. | ||||||||||||
| 263 | |||||||||||||
| 264 | =back | ||||||||||||
| 265 | |||||||||||||
| 266 | and Response Objects being: | ||||||||||||
| 267 | |||||||||||||
| 268 | - error object | ||||||||||||
| 269 | |||||||||||||
| 270 | |||||||||||||
| 271 | On success, the HTTP status code in the response header is 200 OK and the response body contains a JSON array of true or false values, in the same order in which the ids were specified. | ||||||||||||
| 272 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 273 | |||||||||||||
| 274 | =cut | ||||||||||||
| 275 | |||||||||||||
| 276 | 0 | ▶ | async sub check_users_saved_tracks { | ||||||||||
|
Subroutine
check_users_saved_tracks: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 277 | 0 | my ($self, %args) = @_; | |||||||||||
| 278 | |||||||||||||
| 279 | 0 | my $mapping = $self->mapping; | |||||||||||
| 280 | 0 | ▶ | my $request->{method} = $mapping->{check_users_saved_tracks}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_tracks"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"check_users_saved_tracks"}{"method"} // "GET"
$mapping->{"check_users_saved_tracks"}{"method"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_tracks"}{"method"}
| |||||||||||||
| 281 | 0 | ▶ | $request->{uri} = $mapping->{check_users_saved_tracks}{uri} // 'https://api.spotify.com/v1/me/tracks/contains'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_tracks"}{"uri"} // "https://api.spotify.com/v1/me/tracks/contains"
MC/DC0%0/1
$mapping->{"check_users_saved_tracks"}{"uri"} // "https://api.spotify.com/v1/me/tracks/contains"
$mapping->{"check_users_saved_tracks"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_tracks"}{"uri"}
| |||||||||||||
| 282 | $request->{param} = $mapping->{check_users_saved_tracks}{param} // { | ||||||||||||
| 283 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_tracks"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"check_users_saved_tracks"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"check_users_saved_tracks"}{"param"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_tracks"}{"param"}
| |||||||||||||
| 284 | 'Authorization' => { | ||||||||||||
| 285 | type => 'string', | ||||||||||||
| 286 | required => 'required', | ||||||||||||
| 287 | }, | ||||||||||||
| 288 | }, | ||||||||||||
| 289 | query_parameter => { | ||||||||||||
| 290 | 'ids' => { | ||||||||||||
| 291 | type => 'string', | ||||||||||||
| 292 | required => 'required', | ||||||||||||
| 293 | }, | ||||||||||||
| 294 | }, | ||||||||||||
| 295 | }; | ||||||||||||
| 296 | my $response_objs = $mapping->{check_users_saved_tracks}{response} // [ | ||||||||||||
| 297 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"check_users_saved_tracks"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"check_users_saved_tracks"}{"response"} // ["error object"]
$mapping->{"check_users_saved_tracks"}{"response"}
Truth table0%0/2
A
A= $mapping->{"check_users_saved_tracks"}{"response"}
| |||||||||||||
| 298 | |||||||||||||
| 299 | ]; | ||||||||||||
| 300 | |||||||||||||
| 301 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 302 | 2 | } | |||||||||||
| 303 | |||||||||||||
| 304 | =head2 get_users_saved_albums | ||||||||||||
| 305 | |||||||||||||
| 306 | get_users_saved_albums - Get User's Saved Albums | ||||||||||||
| 307 | |||||||||||||
| 308 | Get a list of the albums saved in the current Spotify user’s ‘Your Music’ library. | ||||||||||||
| 309 | |||||||||||||
| 310 | with Request details being: | ||||||||||||
| 311 | |||||||||||||
| 312 | =head3 header | ||||||||||||
| 313 | |||||||||||||
| 314 | =over 4 | ||||||||||||
| 315 | |||||||||||||
| 316 | =item Authorization | ||||||||||||
| 317 | |||||||||||||
| 318 | Type: string | Required: required | ||||||||||||
| 319 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-read scope must have been authorized by the user. | ||||||||||||
| 320 | |||||||||||||
| 321 | =back | ||||||||||||
| 322 | |||||||||||||
| 323 | =head3 query_parameter | ||||||||||||
| 324 | |||||||||||||
| 325 | =over 4 | ||||||||||||
| 326 | |||||||||||||
| 327 | =item limit | ||||||||||||
| 328 | |||||||||||||
| 329 | Type: integer | Required: optional | ||||||||||||
| 330 | The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. | ||||||||||||
| 331 | |||||||||||||
| 332 | =item market | ||||||||||||
| 333 | |||||||||||||
| 334 | Type: string | Required: optional | ||||||||||||
| 335 | An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. | ||||||||||||
| 336 | |||||||||||||
| 337 | =item offset | ||||||||||||
| 338 | |||||||||||||
| 339 | Type: integer | Required: optional | ||||||||||||
| 340 | The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. | ||||||||||||
| 341 | |||||||||||||
| 342 | =back | ||||||||||||
| 343 | |||||||||||||
| 344 | and Response Objects being: | ||||||||||||
| 345 | |||||||||||||
| 346 | - album object | ||||||||||||
| 347 | - error object | ||||||||||||
| 348 | |||||||||||||
| 349 | |||||||||||||
| 350 | On success, the HTTP status code in the response header is 200 OK and the response body contains an array of saved album objects (wrapped in a paging object) in JSON format. Each album object is accompanied by a timestamp (added_at) to show when it was added. There is also an etag in the header that can be used in future conditional requests.On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 351 | |||||||||||||
| 352 | =cut | ||||||||||||
| 353 | |||||||||||||
| 354 | 0 | ▶ | async sub get_users_saved_albums { | ||||||||||
|
Subroutine
get_users_saved_albums: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 355 | 0 | my ($self, %args) = @_; | |||||||||||
| 356 | |||||||||||||
| 357 | 0 | my $mapping = $self->mapping; | |||||||||||
| 358 | 0 | ▶ | my $request->{method} = $mapping->{get_users_saved_albums}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_albums"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_users_saved_albums"}{"method"} // "GET"
$mapping->{"get_users_saved_albums"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_albums"}{"method"}
| |||||||||||||
| 359 | 0 | ▶ | $request->{uri} = $mapping->{get_users_saved_albums}{uri} // 'https://api.spotify.com/v1/me/albums'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_albums"}{"uri"} // "https://api.spotify.com/v1/me/albums"
MC/DC0%0/1
$mapping->{"get_users_saved_albums"}{"uri"} // "https://api.spotify.com/v1/me/albums"
$mapping->{"get_users_saved_albums"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_albums"}{"uri"}
| |||||||||||||
| 360 | $request->{param} = $mapping->{get_users_saved_albums}{param} // { | ||||||||||||
| 361 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_albums"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
MC/DC0%0/1
$mapping->{"get_users_saved_albums"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
$mapping->{"get_users_saved_albums"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_albums"}{"param"}
| |||||||||||||
| 362 | 'Authorization' => { | ||||||||||||
| 363 | type => 'string', | ||||||||||||
| 364 | required => 'required', | ||||||||||||
| 365 | }, | ||||||||||||
| 366 | }, | ||||||||||||
| 367 | query_parameter => { | ||||||||||||
| 368 | 'limit' => { | ||||||||||||
| 369 | type => 'integer', | ||||||||||||
| 370 | required => 'optional', | ||||||||||||
| 371 | }, | ||||||||||||
| 372 | 'market' => { | ||||||||||||
| 373 | type => 'string', | ||||||||||||
| 374 | required => 'optional', | ||||||||||||
| 375 | }, | ||||||||||||
| 376 | 'offset' => { | ||||||||||||
| 377 | type => 'integer', | ||||||||||||
| 378 | required => 'optional', | ||||||||||||
| 379 | }, | ||||||||||||
| 380 | }, | ||||||||||||
| 381 | }; | ||||||||||||
| 382 | my $response_objs = $mapping->{get_users_saved_albums}{response} // [ | ||||||||||||
| 383 | 0 | ▶ | 'album object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_albums"}{"response"} // ["album object", "error object"]
MC/DC0%0/1
$mapping->{"get_users_saved_albums"}{"response"} // ["album object", "error object"]
$mapping->{"get_users_saved_albums"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_albums"}{"response"}
| |||||||||||||
| 384 | 'error object', | ||||||||||||
| 385 | |||||||||||||
| 386 | ]; | ||||||||||||
| 387 | |||||||||||||
| 388 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 389 | 2 | } | |||||||||||
| 390 | |||||||||||||
| 391 | =head2 get_users_saved_episodes | ||||||||||||
| 392 | |||||||||||||
| 393 | get_users_saved_episodes - Get User's Saved Episodes | ||||||||||||
| 394 | |||||||||||||
| 395 | Get a list of the episodes saved in the current Spotify user’s library. | ||||||||||||
| 396 | This API endpoint is in beta and could change without warning. Please share any feedback that you have, or issues that you discover, in our developer community forum. | ||||||||||||
| 397 | |||||||||||||
| 398 | with Request details being: | ||||||||||||
| 399 | |||||||||||||
| 400 | =head3 header | ||||||||||||
| 401 | |||||||||||||
| 402 | =over 4 | ||||||||||||
| 403 | |||||||||||||
| 404 | =item Authorization | ||||||||||||
| 405 | |||||||||||||
| 406 | Type: string | Required: required | ||||||||||||
| 407 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-read scope must have been authorized by the user. | ||||||||||||
| 408 | |||||||||||||
| 409 | =back | ||||||||||||
| 410 | |||||||||||||
| 411 | =head3 query_parameter | ||||||||||||
| 412 | |||||||||||||
| 413 | =over 4 | ||||||||||||
| 414 | |||||||||||||
| 415 | =item limit | ||||||||||||
| 416 | |||||||||||||
| 417 | Type: integer | Required: optional | ||||||||||||
| 418 | The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. | ||||||||||||
| 419 | |||||||||||||
| 420 | =item market | ||||||||||||
| 421 | |||||||||||||
| 422 | Type: string | Required: optional | ||||||||||||
| 423 | An ISO 3166-1 alpha-2 country code. | ||||||||||||
| 424 | If a country code is specified, only episodes that are available in that market will be returned. | ||||||||||||
| 425 | If a valid user access token is specified in the request header, the country associated with | ||||||||||||
| 426 | the user account will take priority over this parameter. | ||||||||||||
| 427 | Note: If neither market or user country are provided, the content is considered unavailable for the client. | ||||||||||||
| 428 | Users can view the country that is associated with their account in the account settings. | ||||||||||||
| 429 | |||||||||||||
| 430 | =item offset | ||||||||||||
| 431 | |||||||||||||
| 432 | Type: integer | Required: optional | ||||||||||||
| 433 | The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. | ||||||||||||
| 434 | |||||||||||||
| 435 | =back | ||||||||||||
| 436 | |||||||||||||
| 437 | and Response Objects being: | ||||||||||||
| 438 | |||||||||||||
| 439 | - episode object | ||||||||||||
| 440 | |||||||||||||
| 441 | |||||||||||||
| 442 | On success, the HTTP status code in the response header is 200 OK and the response body contains an array of saved episode objects (wrapped in a paging object) in JSON format. On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 443 | |||||||||||||
| 444 | =cut | ||||||||||||
| 445 | |||||||||||||
| 446 | 0 | ▶ | async sub get_users_saved_episodes { | ||||||||||
|
Subroutine
get_users_saved_episodes: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 447 | 0 | my ($self, %args) = @_; | |||||||||||
| 448 | |||||||||||||
| 449 | 0 | my $mapping = $self->mapping; | |||||||||||
| 450 | 0 | ▶ | my $request->{method} = $mapping->{get_users_saved_episodes}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_episodes"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_users_saved_episodes"}{"method"} // "GET"
$mapping->{"get_users_saved_episodes"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_episodes"}{"method"}
| |||||||||||||
| 451 | 0 | ▶ | $request->{uri} = $mapping->{get_users_saved_episodes}{uri} // 'https://api.spotify.com/v1/me/episodes'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_episodes"}{"uri"} // "https://api.spotify.com/v1/me/episodes"
MC/DC0%0/1
$mapping->{"get_users_saved_episodes"}{"uri"} // "https://api.spotify.com/v1/me/episodes"
$mapping->{"get_users_saved_episodes"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_episodes"}{"uri"}
| |||||||||||||
| 452 | $request->{param} = $mapping->{get_users_saved_episodes}{param} // { | ||||||||||||
| 453 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_episodes"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
MC/DC0%0/1
$mapping->{"get_users_saved_episodes"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
$mapping->{"get_users_saved_episodes"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_episodes"}{"param"}
| |||||||||||||
| 454 | 'Authorization' => { | ||||||||||||
| 455 | type => 'string', | ||||||||||||
| 456 | required => 'required', | ||||||||||||
| 457 | }, | ||||||||||||
| 458 | }, | ||||||||||||
| 459 | query_parameter => { | ||||||||||||
| 460 | 'limit' => { | ||||||||||||
| 461 | type => 'integer', | ||||||||||||
| 462 | required => 'optional', | ||||||||||||
| 463 | }, | ||||||||||||
| 464 | 'market' => { | ||||||||||||
| 465 | type => 'string', | ||||||||||||
| 466 | required => 'optional', | ||||||||||||
| 467 | }, | ||||||||||||
| 468 | 'offset' => { | ||||||||||||
| 469 | type => 'integer', | ||||||||||||
| 470 | required => 'optional', | ||||||||||||
| 471 | }, | ||||||||||||
| 472 | }, | ||||||||||||
| 473 | }; | ||||||||||||
| 474 | my $response_objs = $mapping->{get_users_saved_episodes}{response} // [ | ||||||||||||
| 475 | 0 | ▶ | 'episode object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_episodes"}{"response"} // ["episode object"]
MC/DC0%0/1
$mapping->{"get_users_saved_episodes"}{"response"} // ["episode object"]
$mapping->{"get_users_saved_episodes"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_episodes"}{"response"}
| |||||||||||||
| 476 | |||||||||||||
| 477 | ]; | ||||||||||||
| 478 | |||||||||||||
| 479 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 480 | 2 | } | |||||||||||
| 481 | |||||||||||||
| 482 | =head2 get_users_saved_shows | ||||||||||||
| 483 | |||||||||||||
| 484 | get_users_saved_shows - Get User's Saved Shows | ||||||||||||
| 485 | |||||||||||||
| 486 | Get a list of shows saved in the current Spotify user’s library. Optional parameters can be used to limit the number of shows returned. | ||||||||||||
| 487 | |||||||||||||
| 488 | with Request details being: | ||||||||||||
| 489 | |||||||||||||
| 490 | =head3 header | ||||||||||||
| 491 | |||||||||||||
| 492 | =over 4 | ||||||||||||
| 493 | |||||||||||||
| 494 | =item Authorization | ||||||||||||
| 495 | |||||||||||||
| 496 | Type: string | Required: required | ||||||||||||
| 497 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The access token must have been isued on behalf of the user. The user-library-read scope must have been authorised by the user. | ||||||||||||
| 498 | |||||||||||||
| 499 | =back | ||||||||||||
| 500 | |||||||||||||
| 501 | =head3 query_parameter | ||||||||||||
| 502 | |||||||||||||
| 503 | =over 4 | ||||||||||||
| 504 | |||||||||||||
| 505 | =item limit | ||||||||||||
| 506 | |||||||||||||
| 507 | Type: integer | Required: optional | ||||||||||||
| 508 | The maximum number of shows to return. Default: 20. Minimum: 1. Maximum: 50 | ||||||||||||
| 509 | |||||||||||||
| 510 | =item offset | ||||||||||||
| 511 | |||||||||||||
| 512 | Type: integer | Required: optional | ||||||||||||
| 513 | The index of the first show to return. Default: 0 (the first object). Use with limit to get the next set of shows. | ||||||||||||
| 514 | |||||||||||||
| 515 | =back | ||||||||||||
| 516 | |||||||||||||
| 517 | and Response Objects being: | ||||||||||||
| 518 | |||||||||||||
| 519 | - show object | ||||||||||||
| 520 | |||||||||||||
| 521 | |||||||||||||
| 522 | On success, the HTTP status code in the response header is 200 OK and the response body contains an array of saved show objects (wrapped in a paging object) in JSON format. | ||||||||||||
| 523 | If the current user has no shows saved, the response will be an empty array. If a show is unavailable in the given market it is filtered out. The total field in the paging object represents the number of all items, filtered or not, and thus might be larger than the actual total number of observable items. | ||||||||||||
| 524 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 525 | |||||||||||||
| 526 | =cut | ||||||||||||
| 527 | |||||||||||||
| 528 | 0 | ▶ | async sub get_users_saved_shows { | ||||||||||
|
Subroutine
get_users_saved_shows: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 529 | 0 | my ($self, %args) = @_; | |||||||||||
| 530 | |||||||||||||
| 531 | 0 | my $mapping = $self->mapping; | |||||||||||
| 532 | 0 | ▶ | my $request->{method} = $mapping->{get_users_saved_shows}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_shows"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_users_saved_shows"}{"method"} // "GET"
$mapping->{"get_users_saved_shows"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_shows"}{"method"}
| |||||||||||||
| 533 | 0 | ▶ | $request->{uri} = $mapping->{get_users_saved_shows}{uri} // 'https://api.spotify.com/v1/me/shows'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_shows"}{"uri"} // "https://api.spotify.com/v1/me/shows"
MC/DC0%0/1
$mapping->{"get_users_saved_shows"}{"uri"} // "https://api.spotify.com/v1/me/shows"
$mapping->{"get_users_saved_shows"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_shows"}{"uri"}
| |||||||||||||
| 534 | $request->{param} = $mapping->{get_users_saved_shows}{param} // { | ||||||||||||
| 535 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_shows"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
MC/DC0%0/1
$mapping->{"get_users_saved_shows"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
$mapping->{"get_users_saved_shows"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_shows"}{"param"}
| |||||||||||||
| 536 | 'Authorization' => { | ||||||||||||
| 537 | type => 'string', | ||||||||||||
| 538 | required => 'required', | ||||||||||||
| 539 | }, | ||||||||||||
| 540 | }, | ||||||||||||
| 541 | query_parameter => { | ||||||||||||
| 542 | 'limit' => { | ||||||||||||
| 543 | type => 'integer', | ||||||||||||
| 544 | required => 'optional', | ||||||||||||
| 545 | }, | ||||||||||||
| 546 | 'offset' => { | ||||||||||||
| 547 | type => 'integer', | ||||||||||||
| 548 | required => 'optional', | ||||||||||||
| 549 | }, | ||||||||||||
| 550 | }, | ||||||||||||
| 551 | }; | ||||||||||||
| 552 | my $response_objs = $mapping->{get_users_saved_shows}{response} // [ | ||||||||||||
| 553 | 0 | ▶ | 'show object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_shows"}{"response"} // ["show object"]
MC/DC0%0/1
$mapping->{"get_users_saved_shows"}{"response"} // ["show object"]
$mapping->{"get_users_saved_shows"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_shows"}{"response"}
| |||||||||||||
| 554 | |||||||||||||
| 555 | ]; | ||||||||||||
| 556 | |||||||||||||
| 557 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 558 | 2 | } | |||||||||||
| 559 | |||||||||||||
| 560 | =head2 get_users_saved_tracks | ||||||||||||
| 561 | |||||||||||||
| 562 | get_users_saved_tracks - Get User's Saved Tracks | ||||||||||||
| 563 | |||||||||||||
| 564 | Get a list of the songs saved in the current Spotify user’s ‘Your Music’ library. | ||||||||||||
| 565 | |||||||||||||
| 566 | with Request details being: | ||||||||||||
| 567 | |||||||||||||
| 568 | =head3 header | ||||||||||||
| 569 | |||||||||||||
| 570 | =over 4 | ||||||||||||
| 571 | |||||||||||||
| 572 | =item Authorization | ||||||||||||
| 573 | |||||||||||||
| 574 | Type: string | Required: required | ||||||||||||
| 575 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-read scope must have been authorized by the user. | ||||||||||||
| 576 | |||||||||||||
| 577 | =back | ||||||||||||
| 578 | |||||||||||||
| 579 | =head3 query_parameter | ||||||||||||
| 580 | |||||||||||||
| 581 | =over 4 | ||||||||||||
| 582 | |||||||||||||
| 583 | =item limit | ||||||||||||
| 584 | |||||||||||||
| 585 | Type: integer | Required: optional | ||||||||||||
| 586 | The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. | ||||||||||||
| 587 | |||||||||||||
| 588 | =item market | ||||||||||||
| 589 | |||||||||||||
| 590 | Type: string | Required: optional | ||||||||||||
| 591 | An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. | ||||||||||||
| 592 | |||||||||||||
| 593 | =item offset | ||||||||||||
| 594 | |||||||||||||
| 595 | Type: integer | Required: optional | ||||||||||||
| 596 | The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. | ||||||||||||
| 597 | |||||||||||||
| 598 | =back | ||||||||||||
| 599 | |||||||||||||
| 600 | and Response Objects being: | ||||||||||||
| 601 | |||||||||||||
| 602 | - track object | ||||||||||||
| 603 | |||||||||||||
| 604 | |||||||||||||
| 605 | On success, the HTTP status code in the response header is 200 OK and the response body contains an array of saved track objects (wrapped in a paging object) in JSON format. On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 606 | |||||||||||||
| 607 | =cut | ||||||||||||
| 608 | |||||||||||||
| 609 | 0 | ▶ | async sub get_users_saved_tracks { | ||||||||||
|
Subroutine
get_users_saved_tracks: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 610 | 0 | my ($self, %args) = @_; | |||||||||||
| 611 | |||||||||||||
| 612 | 0 | my $mapping = $self->mapping; | |||||||||||
| 613 | 0 | ▶ | my $request->{method} = $mapping->{get_users_saved_tracks}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_tracks"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_users_saved_tracks"}{"method"} // "GET"
$mapping->{"get_users_saved_tracks"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_tracks"}{"method"}
| |||||||||||||
| 614 | 0 | ▶ | $request->{uri} = $mapping->{get_users_saved_tracks}{uri} // 'https://api.spotify.com/v1/me/tracks'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_tracks"}{"uri"} // "https://api.spotify.com/v1/me/tracks"
MC/DC0%0/1
$mapping->{"get_users_saved_tracks"}{"uri"} // "https://api.spotify.com/v1/me/tracks"
$mapping->{"get_users_saved_tracks"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_tracks"}{"uri"}
| |||||||||||||
| 615 | $request->{param} = $mapping->{get_users_saved_tracks}{param} // { | ||||||||||||
| 616 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_tracks"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
MC/DC0%0/1
$mapping->{"get_users_saved_tracks"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
$mapping->{"get_users_saved_tracks"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_tracks"}{"param"}
| |||||||||||||
| 617 | 'Authorization' => { | ||||||||||||
| 618 | type => 'string', | ||||||||||||
| 619 | required => 'required', | ||||||||||||
| 620 | }, | ||||||||||||
| 621 | }, | ||||||||||||
| 622 | query_parameter => { | ||||||||||||
| 623 | 'limit' => { | ||||||||||||
| 624 | type => 'integer', | ||||||||||||
| 625 | required => 'optional', | ||||||||||||
| 626 | }, | ||||||||||||
| 627 | 'market' => { | ||||||||||||
| 628 | type => 'string', | ||||||||||||
| 629 | required => 'optional', | ||||||||||||
| 630 | }, | ||||||||||||
| 631 | 'offset' => { | ||||||||||||
| 632 | type => 'integer', | ||||||||||||
| 633 | required => 'optional', | ||||||||||||
| 634 | }, | ||||||||||||
| 635 | }, | ||||||||||||
| 636 | }; | ||||||||||||
| 637 | my $response_objs = $mapping->{get_users_saved_tracks}{response} // [ | ||||||||||||
| 638 | 0 | ▶ | 'track object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_users_saved_tracks"}{"response"} // ["track object"]
MC/DC0%0/1
$mapping->{"get_users_saved_tracks"}{"response"} // ["track object"]
$mapping->{"get_users_saved_tracks"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_users_saved_tracks"}{"response"}
| |||||||||||||
| 639 | |||||||||||||
| 640 | ]; | ||||||||||||
| 641 | |||||||||||||
| 642 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 643 | 2 | } | |||||||||||
| 644 | |||||||||||||
| 645 | =head2 remove_albums_user | ||||||||||||
| 646 | |||||||||||||
| 647 | remove_albums_user - Remove Albums for Current User | ||||||||||||
| 648 | |||||||||||||
| 649 | Remove one or more albums from the current user’s ‘Your Music’ library. | ||||||||||||
| 650 | |||||||||||||
| 651 | with Request details being: | ||||||||||||
| 652 | |||||||||||||
| 653 | =head3 header | ||||||||||||
| 654 | |||||||||||||
| 655 | =over 4 | ||||||||||||
| 656 | |||||||||||||
| 657 | =item Authorization | ||||||||||||
| 658 | |||||||||||||
| 659 | Type: string | Required: required | ||||||||||||
| 660 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details.Modification of the current user’s “Your Music” collection requires authorization of the user-library-modify scope. | ||||||||||||
| 661 | |||||||||||||
| 662 | =item Content-Type | ||||||||||||
| 663 | |||||||||||||
| 664 | Type: string | Required: optional | ||||||||||||
| 665 | Required if the IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 666 | |||||||||||||
| 667 | =back | ||||||||||||
| 668 | |||||||||||||
| 669 | =head3 json_body_parameter | ||||||||||||
| 670 | |||||||||||||
| 671 | =over 4 | ||||||||||||
| 672 | |||||||||||||
| 673 | =item ids | ||||||||||||
| 674 | |||||||||||||
| 675 | Type: array[string] | Required: optional | ||||||||||||
| 676 | A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 677 | |||||||||||||
| 678 | =back | ||||||||||||
| 679 | |||||||||||||
| 680 | =head3 query_parameter | ||||||||||||
| 681 | |||||||||||||
| 682 | =over 4 | ||||||||||||
| 683 | |||||||||||||
| 684 | =item ids | ||||||||||||
| 685 | |||||||||||||
| 686 | Type: string | Required: required | ||||||||||||
| 687 | A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M. Maximum: 50 IDs. | ||||||||||||
| 688 | |||||||||||||
| 689 | =back | ||||||||||||
| 690 | |||||||||||||
| 691 | and Response Objects being: | ||||||||||||
| 692 | |||||||||||||
| 693 | - error object | ||||||||||||
| 694 | |||||||||||||
| 695 | |||||||||||||
| 696 | On success, the HTTP status code in the response header is 200 Success. On error, the header status code is an error code and the response body contains an error object. Trying to remove an album when you do not have the user’s authorization returns error 403 Forbidden.Try in our Web Console | ||||||||||||
| 697 | |||||||||||||
| 698 | =cut | ||||||||||||
| 699 | |||||||||||||
| 700 | 0 | ▶ | async sub remove_albums_user { | ||||||||||
|
Subroutine
remove_albums_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 701 | 0 | my ($self, %args) = @_; | |||||||||||
| 702 | |||||||||||||
| 703 | 0 | my $mapping = $self->mapping; | |||||||||||
| 704 | 0 | ▶ | my $request->{method} = $mapping->{remove_albums_user}{method} // 'DELETE'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_albums_user"}{"method"} // "DELETE"
MC/DC0%0/1
$mapping->{"remove_albums_user"}{"method"} // "DELETE"
$mapping->{"remove_albums_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"remove_albums_user"}{"method"}
| |||||||||||||
| 705 | 0 | ▶ | $request->{uri} = $mapping->{remove_albums_user}{uri} // 'https://api.spotify.com/v1/me/albums'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_albums_user"}{"uri"} // "https://api.spotify.com/v1/me/albums"
MC/DC0%0/1
$mapping->{"remove_albums_user"}{"uri"} // "https://api.spotify.com/v1/me/albums"
$mapping->{"remove_albums_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"remove_albums_user"}{"uri"}
| |||||||||||||
| 706 | $request->{param} = $mapping->{remove_albums_user}{param} // { | ||||||||||||
| 707 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"remove_albums_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"remove_albums_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"remove_albums_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"remove_albums_user"}{"param"}
| |||||||||||||
| 708 | 'Authorization' => { | ||||||||||||
| 709 | type => 'string', | ||||||||||||
| 710 | required => 'required', | ||||||||||||
| 711 | }, | ||||||||||||
| 712 | 'Content-Type' => { | ||||||||||||
| 713 | type => 'string', | ||||||||||||
| 714 | required => 'optional', | ||||||||||||
| 715 | }, | ||||||||||||
| 716 | }, | ||||||||||||
| 717 | json_body_parameter => { | ||||||||||||
| 718 | 'ids' => { | ||||||||||||
| 719 | type => 'array[string]', | ||||||||||||
| 720 | required => 'optional', | ||||||||||||
| 721 | }, | ||||||||||||
| 722 | }, | ||||||||||||
| 723 | query_parameter => { | ||||||||||||
| 724 | 'ids' => { | ||||||||||||
| 725 | type => 'string', | ||||||||||||
| 726 | required => 'required', | ||||||||||||
| 727 | }, | ||||||||||||
| 728 | }, | ||||||||||||
| 729 | }; | ||||||||||||
| 730 | my $response_objs = $mapping->{remove_albums_user}{response} // [ | ||||||||||||
| 731 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"remove_albums_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"remove_albums_user"}{"response"} // ["error object"]
$mapping->{"remove_albums_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"remove_albums_user"}{"response"}
| |||||||||||||
| 732 | |||||||||||||
| 733 | ]; | ||||||||||||
| 734 | |||||||||||||
| 735 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 736 | 2 | } | |||||||||||
| 737 | |||||||||||||
| 738 | =head2 remove_episodes_user | ||||||||||||
| 739 | |||||||||||||
| 740 | remove_episodes_user - Remove User's Saved Episodes | ||||||||||||
| 741 | |||||||||||||
| 742 | Remove one or more episodes from the current user’s library. | ||||||||||||
| 743 | This API endpoint is in beta and could change without warning. Please share any feedback that you have, or issues that you discover, in our developer community forum. | ||||||||||||
| 744 | |||||||||||||
| 745 | with Request details being: | ||||||||||||
| 746 | |||||||||||||
| 747 | =head3 header | ||||||||||||
| 748 | |||||||||||||
| 749 | =over 4 | ||||||||||||
| 750 | |||||||||||||
| 751 | =item Authorization | ||||||||||||
| 752 | |||||||||||||
| 753 | Type: string | Required: required | ||||||||||||
| 754 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details.Modification of the current user’s collection requires authorization of the user-library-modify scope. | ||||||||||||
| 755 | |||||||||||||
| 756 | =item Content-Type | ||||||||||||
| 757 | |||||||||||||
| 758 | Type: string | Required: optional | ||||||||||||
| 759 | Required if the IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 760 | |||||||||||||
| 761 | =back | ||||||||||||
| 762 | |||||||||||||
| 763 | =head3 json_body_parameter | ||||||||||||
| 764 | |||||||||||||
| 765 | =over 4 | ||||||||||||
| 766 | |||||||||||||
| 767 | =item ids | ||||||||||||
| 768 | |||||||||||||
| 769 | Type: array[string] | Required: optional | ||||||||||||
| 770 | A JSON array of the Spotify IDs. A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 771 | |||||||||||||
| 772 | =back | ||||||||||||
| 773 | |||||||||||||
| 774 | =head3 query_parameter | ||||||||||||
| 775 | |||||||||||||
| 776 | =over 4 | ||||||||||||
| 777 | |||||||||||||
| 778 | =item ids | ||||||||||||
| 779 | |||||||||||||
| 780 | Type: string | Required: required | ||||||||||||
| 781 | A comma-separated list of the Spotify IDs. Maximum: 50 IDs. | ||||||||||||
| 782 | |||||||||||||
| 783 | =back | ||||||||||||
| 784 | |||||||||||||
| 785 | and Response Objects being: | ||||||||||||
| 786 | |||||||||||||
| 787 | - error object | ||||||||||||
| 788 | |||||||||||||
| 789 | |||||||||||||
| 790 | On success, the HTTP status code in the response header is 200 Success. On error, the header status code is an error code and the response body contains an error object. Trying to remove an episode when you do not have the user’s authorization returns error 403 Forbidden.Try in our Web Console | ||||||||||||
| 791 | |||||||||||||
| 792 | =cut | ||||||||||||
| 793 | |||||||||||||
| 794 | 0 | ▶ | async sub remove_episodes_user { | ||||||||||
|
Subroutine
remove_episodes_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 795 | 0 | my ($self, %args) = @_; | |||||||||||
| 796 | |||||||||||||
| 797 | 0 | my $mapping = $self->mapping; | |||||||||||
| 798 | 0 | ▶ | my $request->{method} = $mapping->{remove_episodes_user}{method} // 'DELETE'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_episodes_user"}{"method"} // "DELETE"
MC/DC0%0/1
$mapping->{"remove_episodes_user"}{"method"} // "DELETE"
$mapping->{"remove_episodes_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"remove_episodes_user"}{"method"}
| |||||||||||||
| 799 | 0 | ▶ | $request->{uri} = $mapping->{remove_episodes_user}{uri} // 'https://api.spotify.com/v1/me/episodes'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_episodes_user"}{"uri"} // "https://api.spotify.com/v1/me/episodes"
MC/DC0%0/1
$mapping->{"remove_episodes_user"}{"uri"} // "https://api.spotify.com/v1/me/episodes"
$mapping->{"remove_episodes_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"remove_episodes_user"}{"uri"}
| |||||||||||||
| 800 | $request->{param} = $mapping->{remove_episodes_user}{param} // { | ||||||||||||
| 801 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"remove_episodes_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"remove_episodes_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"remove_episodes_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"remove_episodes_user"}{"param"}
| |||||||||||||
| 802 | 'Authorization' => { | ||||||||||||
| 803 | type => 'string', | ||||||||||||
| 804 | required => 'required', | ||||||||||||
| 805 | }, | ||||||||||||
| 806 | 'Content-Type' => { | ||||||||||||
| 807 | type => 'string', | ||||||||||||
| 808 | required => 'optional', | ||||||||||||
| 809 | }, | ||||||||||||
| 810 | }, | ||||||||||||
| 811 | json_body_parameter => { | ||||||||||||
| 812 | 'ids' => { | ||||||||||||
| 813 | type => 'array[string]', | ||||||||||||
| 814 | required => 'optional', | ||||||||||||
| 815 | }, | ||||||||||||
| 816 | }, | ||||||||||||
| 817 | query_parameter => { | ||||||||||||
| 818 | 'ids' => { | ||||||||||||
| 819 | type => 'string', | ||||||||||||
| 820 | required => 'required', | ||||||||||||
| 821 | }, | ||||||||||||
| 822 | }, | ||||||||||||
| 823 | }; | ||||||||||||
| 824 | my $response_objs = $mapping->{remove_episodes_user}{response} // [ | ||||||||||||
| 825 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"remove_episodes_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"remove_episodes_user"}{"response"} // ["error object"]
$mapping->{"remove_episodes_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"remove_episodes_user"}{"response"}
| |||||||||||||
| 826 | |||||||||||||
| 827 | ]; | ||||||||||||
| 828 | |||||||||||||
| 829 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 830 | 2 | } | |||||||||||
| 831 | |||||||||||||
| 832 | =head2 remove_shows_user | ||||||||||||
| 833 | |||||||||||||
| 834 | remove_shows_user - Remove User's Saved Shows | ||||||||||||
| 835 | |||||||||||||
| 836 | Delete one or more shows from current Spotify user’s library. | ||||||||||||
| 837 | |||||||||||||
| 838 | with Request details being: | ||||||||||||
| 839 | |||||||||||||
| 840 | =head3 header | ||||||||||||
| 841 | |||||||||||||
| 842 | =over 4 | ||||||||||||
| 843 | |||||||||||||
| 844 | =item Authorization | ||||||||||||
| 845 | |||||||||||||
| 846 | Type: string | Required: required | ||||||||||||
| 847 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The access token must have been issued on behalf of the user. The user-library-modify scope must have been authorized by the user. | ||||||||||||
| 848 | |||||||||||||
| 849 | =back | ||||||||||||
| 850 | |||||||||||||
| 851 | =head3 query_parameter | ||||||||||||
| 852 | |||||||||||||
| 853 | =over 4 | ||||||||||||
| 854 | |||||||||||||
| 855 | =item ids | ||||||||||||
| 856 | |||||||||||||
| 857 | Type: string | Required: required | ||||||||||||
| 858 | A comma-separated list of Spotify IDs for the shows to be deleted from the user’s library. | ||||||||||||
| 859 | |||||||||||||
| 860 | =item market | ||||||||||||
| 861 | |||||||||||||
| 862 | Type: string | Required: optional | ||||||||||||
| 863 | An ISO 3166-1 alpha-2 country code. | ||||||||||||
| 864 | If a country code is specified, only shows that are available in that market will be removed. | ||||||||||||
| 865 | If a valid user access token is specified in the request header, the country associated with | ||||||||||||
| 866 | the user account will take priority over this parameter. | ||||||||||||
| 867 | Note: If neither market or user country are provided, the content is considered unavailable for the client. | ||||||||||||
| 868 | Users can view the country that is associated with their account in the account settings. | ||||||||||||
| 869 | |||||||||||||
| 870 | =back | ||||||||||||
| 871 | |||||||||||||
| 872 | and Response Objects being: | ||||||||||||
| 873 | |||||||||||||
| 874 | - error object | ||||||||||||
| 875 | |||||||||||||
| 876 | |||||||||||||
| 877 | On success, the HTTP status code in the response header is 200 OK. | ||||||||||||
| 878 | On error, the header status code is an error code and the response body contains an error object. A 403 Forbidden while trying to add a show when you do not have the user’s authorisation.Try in our Web Console | ||||||||||||
| 879 | |||||||||||||
| 880 | =cut | ||||||||||||
| 881 | |||||||||||||
| 882 | 0 | ▶ | async sub remove_shows_user { | ||||||||||
|
Subroutine
remove_shows_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 883 | 0 | my ($self, %args) = @_; | |||||||||||
| 884 | |||||||||||||
| 885 | 0 | my $mapping = $self->mapping; | |||||||||||
| 886 | 0 | ▶ | my $request->{method} = $mapping->{remove_shows_user}{method} // 'DELETE'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_shows_user"}{"method"} // "DELETE"
MC/DC0%0/1
$mapping->{"remove_shows_user"}{"method"} // "DELETE"
$mapping->{"remove_shows_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"remove_shows_user"}{"method"}
| |||||||||||||
| 887 | 0 | ▶ | $request->{uri} = $mapping->{remove_shows_user}{uri} // 'https://api.spotify.com/v1/me/shows'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_shows_user"}{"uri"} // "https://api.spotify.com/v1/me/shows"
MC/DC0%0/1
$mapping->{"remove_shows_user"}{"uri"} // "https://api.spotify.com/v1/me/shows"
$mapping->{"remove_shows_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"remove_shows_user"}{"uri"}
| |||||||||||||
| 888 | $request->{param} = $mapping->{remove_shows_user}{param} // { | ||||||||||||
| 889 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"remove_shows_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}, "market", {"type", "string", "required", "optional"}}}
MC/DC0%0/1
$mapping->{"remove_shows_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}, "market", {"type", "string", "required", "optional"}}}
$mapping->{"remove_shows_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"remove_shows_user"}{"param"}
| |||||||||||||
| 890 | 'Authorization' => { | ||||||||||||
| 891 | type => 'string', | ||||||||||||
| 892 | required => 'required', | ||||||||||||
| 893 | }, | ||||||||||||
| 894 | }, | ||||||||||||
| 895 | query_parameter => { | ||||||||||||
| 896 | 'ids' => { | ||||||||||||
| 897 | type => 'string', | ||||||||||||
| 898 | required => 'required', | ||||||||||||
| 899 | }, | ||||||||||||
| 900 | 'market' => { | ||||||||||||
| 901 | type => 'string', | ||||||||||||
| 902 | required => 'optional', | ||||||||||||
| 903 | }, | ||||||||||||
| 904 | }, | ||||||||||||
| 905 | }; | ||||||||||||
| 906 | my $response_objs = $mapping->{remove_shows_user}{response} // [ | ||||||||||||
| 907 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"remove_shows_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"remove_shows_user"}{"response"} // ["error object"]
$mapping->{"remove_shows_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"remove_shows_user"}{"response"}
| |||||||||||||
| 908 | |||||||||||||
| 909 | ]; | ||||||||||||
| 910 | |||||||||||||
| 911 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 912 | 2 | } | |||||||||||
| 913 | |||||||||||||
| 914 | =head2 remove_tracks_user | ||||||||||||
| 915 | |||||||||||||
| 916 | remove_tracks_user - Remove User's Saved Tracks | ||||||||||||
| 917 | |||||||||||||
| 918 | Remove one or more tracks from the current user’s ‘Your Music’ library. | ||||||||||||
| 919 | |||||||||||||
| 920 | with Request details being: | ||||||||||||
| 921 | |||||||||||||
| 922 | =head3 header | ||||||||||||
| 923 | |||||||||||||
| 924 | =over 4 | ||||||||||||
| 925 | |||||||||||||
| 926 | =item Authorization | ||||||||||||
| 927 | |||||||||||||
| 928 | Type: string | Required: required | ||||||||||||
| 929 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details.Modification of the current user’s “Your Music” collection requires authorization of the user-library-modify scope. | ||||||||||||
| 930 | |||||||||||||
| 931 | =item Content-Type | ||||||||||||
| 932 | |||||||||||||
| 933 | Type: string | Required: optional | ||||||||||||
| 934 | Required if the IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 935 | |||||||||||||
| 936 | =back | ||||||||||||
| 937 | |||||||||||||
| 938 | =head3 json_body_parameter | ||||||||||||
| 939 | |||||||||||||
| 940 | =over 4 | ||||||||||||
| 941 | |||||||||||||
| 942 | =item ids | ||||||||||||
| 943 | |||||||||||||
| 944 | Type: array[string] | Required: optional | ||||||||||||
| 945 | A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 946 | |||||||||||||
| 947 | =back | ||||||||||||
| 948 | |||||||||||||
| 949 | =head3 query_parameter | ||||||||||||
| 950 | |||||||||||||
| 951 | =over 4 | ||||||||||||
| 952 | |||||||||||||
| 953 | =item ids | ||||||||||||
| 954 | |||||||||||||
| 955 | Type: string | Required: required | ||||||||||||
| 956 | A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M. Maximum: 50 IDs. | ||||||||||||
| 957 | |||||||||||||
| 958 | =back | ||||||||||||
| 959 | |||||||||||||
| 960 | and Response Objects being: | ||||||||||||
| 961 | |||||||||||||
| 962 | - error object | ||||||||||||
| 963 | |||||||||||||
| 964 | |||||||||||||
| 965 | On success, the HTTP status code in the response header is 200 Success. On error, the header status code is an error code and the response body contains an error object. Trying to remove an album when you do not have the user’s authorization returns error 403 Forbidden.Try in our Web Console | ||||||||||||
| 966 | |||||||||||||
| 967 | =cut | ||||||||||||
| 968 | |||||||||||||
| 969 | 0 | ▶ | async sub remove_tracks_user { | ||||||||||
|
Subroutine
remove_tracks_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 970 | 0 | my ($self, %args) = @_; | |||||||||||
| 971 | |||||||||||||
| 972 | 0 | my $mapping = $self->mapping; | |||||||||||
| 973 | 0 | ▶ | my $request->{method} = $mapping->{remove_tracks_user}{method} // 'DELETE'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_tracks_user"}{"method"} // "DELETE"
MC/DC0%0/1
$mapping->{"remove_tracks_user"}{"method"} // "DELETE"
$mapping->{"remove_tracks_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"remove_tracks_user"}{"method"}
| |||||||||||||
| 974 | 0 | ▶ | $request->{uri} = $mapping->{remove_tracks_user}{uri} // 'https://api.spotify.com/v1/me/tracks'; | ||||||||||
|
Condition0%0/2
$mapping->{"remove_tracks_user"}{"uri"} // "https://api.spotify.com/v1/me/tracks"
MC/DC0%0/1
$mapping->{"remove_tracks_user"}{"uri"} // "https://api.spotify.com/v1/me/tracks"
$mapping->{"remove_tracks_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"remove_tracks_user"}{"uri"}
| |||||||||||||
| 975 | $request->{param} = $mapping->{remove_tracks_user}{param} // { | ||||||||||||
| 976 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"remove_tracks_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"remove_tracks_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"remove_tracks_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"remove_tracks_user"}{"param"}
| |||||||||||||
| 977 | 'Authorization' => { | ||||||||||||
| 978 | type => 'string', | ||||||||||||
| 979 | required => 'required', | ||||||||||||
| 980 | }, | ||||||||||||
| 981 | 'Content-Type' => { | ||||||||||||
| 982 | type => 'string', | ||||||||||||
| 983 | required => 'optional', | ||||||||||||
| 984 | }, | ||||||||||||
| 985 | }, | ||||||||||||
| 986 | json_body_parameter => { | ||||||||||||
| 987 | 'ids' => { | ||||||||||||
| 988 | type => 'array[string]', | ||||||||||||
| 989 | required => 'optional', | ||||||||||||
| 990 | }, | ||||||||||||
| 991 | }, | ||||||||||||
| 992 | query_parameter => { | ||||||||||||
| 993 | 'ids' => { | ||||||||||||
| 994 | type => 'string', | ||||||||||||
| 995 | required => 'required', | ||||||||||||
| 996 | }, | ||||||||||||
| 997 | }, | ||||||||||||
| 998 | }; | ||||||||||||
| 999 | my $response_objs = $mapping->{remove_tracks_user}{response} // [ | ||||||||||||
| 1000 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"remove_tracks_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"remove_tracks_user"}{"response"} // ["error object"]
$mapping->{"remove_tracks_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"remove_tracks_user"}{"response"}
| |||||||||||||
| 1001 | |||||||||||||
| 1002 | ]; | ||||||||||||
| 1003 | |||||||||||||
| 1004 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 1005 | 2 | } | |||||||||||
| 1006 | |||||||||||||
| 1007 | =head2 save_albums_user | ||||||||||||
| 1008 | |||||||||||||
| 1009 | save_albums_user - Save Albums for Current User | ||||||||||||
| 1010 | |||||||||||||
| 1011 | Save one or more albums to the current user’s ‘Your Music’ library. | ||||||||||||
| 1012 | |||||||||||||
| 1013 | with Request details being: | ||||||||||||
| 1014 | |||||||||||||
| 1015 | =head3 header | ||||||||||||
| 1016 | |||||||||||||
| 1017 | =over 4 | ||||||||||||
| 1018 | |||||||||||||
| 1019 | =item Authorization | ||||||||||||
| 1020 | |||||||||||||
| 1021 | Type: string | Required: required | ||||||||||||
| 1022 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details.Modification of the current user’s “Your Music” collection requires authorization of the user-library-modify scope. | ||||||||||||
| 1023 | |||||||||||||
| 1024 | =item Content-Type | ||||||||||||
| 1025 | |||||||||||||
| 1026 | Type: string | Required: optional | ||||||||||||
| 1027 | Required if the IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 1028 | |||||||||||||
| 1029 | =back | ||||||||||||
| 1030 | |||||||||||||
| 1031 | =head3 json_body_parameter | ||||||||||||
| 1032 | |||||||||||||
| 1033 | =over 4 | ||||||||||||
| 1034 | |||||||||||||
| 1035 | =item ids | ||||||||||||
| 1036 | |||||||||||||
| 1037 | Type: array[string] | Required: optional | ||||||||||||
| 1038 | A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 1039 | |||||||||||||
| 1040 | =back | ||||||||||||
| 1041 | |||||||||||||
| 1042 | =head3 query_parameter | ||||||||||||
| 1043 | |||||||||||||
| 1044 | =over 4 | ||||||||||||
| 1045 | |||||||||||||
| 1046 | =item ids | ||||||||||||
| 1047 | |||||||||||||
| 1048 | Type: string | Required: required | ||||||||||||
| 1049 | A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M. Maximum: 50 IDs. | ||||||||||||
| 1050 | |||||||||||||
| 1051 | =back | ||||||||||||
| 1052 | |||||||||||||
| 1053 | and Response Objects being: | ||||||||||||
| 1054 | |||||||||||||
| 1055 | - error object | ||||||||||||
| 1056 | |||||||||||||
| 1057 | |||||||||||||
| 1058 | On success, the HTTP status code in the response header is 201 Created. On error, the header status code is an error code and the response body contains an error object. Trying to add an album when you do not have the user’s authorization returns error 403 Forbidden.Try in our Web Console | ||||||||||||
| 1059 | |||||||||||||
| 1060 | =cut | ||||||||||||
| 1061 | |||||||||||||
| 1062 | 0 | ▶ | async sub save_albums_user { | ||||||||||
|
Subroutine
save_albums_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 1063 | 0 | my ($self, %args) = @_; | |||||||||||
| 1064 | |||||||||||||
| 1065 | 0 | my $mapping = $self->mapping; | |||||||||||
| 1066 | 0 | ▶ | my $request->{method} = $mapping->{save_albums_user}{method} // 'PUT'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_albums_user"}{"method"} // "PUT"
MC/DC0%0/1
$mapping->{"save_albums_user"}{"method"} // "PUT"
$mapping->{"save_albums_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"save_albums_user"}{"method"}
| |||||||||||||
| 1067 | 0 | ▶ | $request->{uri} = $mapping->{save_albums_user}{uri} // 'https://api.spotify.com/v1/me/albums'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_albums_user"}{"uri"} // "https://api.spotify.com/v1/me/albums"
MC/DC0%0/1
$mapping->{"save_albums_user"}{"uri"} // "https://api.spotify.com/v1/me/albums"
$mapping->{"save_albums_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"save_albums_user"}{"uri"}
| |||||||||||||
| 1068 | $request->{param} = $mapping->{save_albums_user}{param} // { | ||||||||||||
| 1069 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"save_albums_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"save_albums_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"save_albums_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"save_albums_user"}{"param"}
| |||||||||||||
| 1070 | 'Authorization' => { | ||||||||||||
| 1071 | type => 'string', | ||||||||||||
| 1072 | required => 'required', | ||||||||||||
| 1073 | }, | ||||||||||||
| 1074 | 'Content-Type' => { | ||||||||||||
| 1075 | type => 'string', | ||||||||||||
| 1076 | required => 'optional', | ||||||||||||
| 1077 | }, | ||||||||||||
| 1078 | }, | ||||||||||||
| 1079 | json_body_parameter => { | ||||||||||||
| 1080 | 'ids' => { | ||||||||||||
| 1081 | type => 'array[string]', | ||||||||||||
| 1082 | required => 'optional', | ||||||||||||
| 1083 | }, | ||||||||||||
| 1084 | }, | ||||||||||||
| 1085 | query_parameter => { | ||||||||||||
| 1086 | 'ids' => { | ||||||||||||
| 1087 | type => 'string', | ||||||||||||
| 1088 | required => 'required', | ||||||||||||
| 1089 | }, | ||||||||||||
| 1090 | }, | ||||||||||||
| 1091 | }; | ||||||||||||
| 1092 | my $response_objs = $mapping->{save_albums_user}{response} // [ | ||||||||||||
| 1093 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"save_albums_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"save_albums_user"}{"response"} // ["error object"]
$mapping->{"save_albums_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"save_albums_user"}{"response"}
| |||||||||||||
| 1094 | |||||||||||||
| 1095 | ]; | ||||||||||||
| 1096 | |||||||||||||
| 1097 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 1098 | 2 | } | |||||||||||
| 1099 | |||||||||||||
| 1100 | =head2 save_episodes_user | ||||||||||||
| 1101 | |||||||||||||
| 1102 | save_episodes_user - Save Episodes for User | ||||||||||||
| 1103 | |||||||||||||
| 1104 | Save one or more episodes to the current user’s library. | ||||||||||||
| 1105 | This API endpoint is in beta and could change without warning. Please share any feedback that you have, or issues that you discover, in our developer community forum. | ||||||||||||
| 1106 | |||||||||||||
| 1107 | with Request details being: | ||||||||||||
| 1108 | |||||||||||||
| 1109 | =head3 header | ||||||||||||
| 1110 | |||||||||||||
| 1111 | =over 4 | ||||||||||||
| 1112 | |||||||||||||
| 1113 | =item Authorization | ||||||||||||
| 1114 | |||||||||||||
| 1115 | Type: string | Required: required | ||||||||||||
| 1116 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details.Modification of the current user’s “Your Music” collection requires authorization of the user-library-modify scope. | ||||||||||||
| 1117 | |||||||||||||
| 1118 | =item Content-Type | ||||||||||||
| 1119 | |||||||||||||
| 1120 | Type: string | Required: optional | ||||||||||||
| 1121 | Required if the IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 1122 | |||||||||||||
| 1123 | =back | ||||||||||||
| 1124 | |||||||||||||
| 1125 | =head3 json_body_parameter | ||||||||||||
| 1126 | |||||||||||||
| 1127 | =over 4 | ||||||||||||
| 1128 | |||||||||||||
| 1129 | =item ids | ||||||||||||
| 1130 | |||||||||||||
| 1131 | Type: array[string] | Required: optional | ||||||||||||
| 1132 | A JSON array of the Spotify IDs. A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 1133 | |||||||||||||
| 1134 | =back | ||||||||||||
| 1135 | |||||||||||||
| 1136 | =head3 query_parameter | ||||||||||||
| 1137 | |||||||||||||
| 1138 | =over 4 | ||||||||||||
| 1139 | |||||||||||||
| 1140 | =item ids | ||||||||||||
| 1141 | |||||||||||||
| 1142 | Type: string | Required: required | ||||||||||||
| 1143 | A comma-separated list of the Spotify IDs. Maximum: 50 IDs. | ||||||||||||
| 1144 | |||||||||||||
| 1145 | =back | ||||||||||||
| 1146 | |||||||||||||
| 1147 | and Response Objects being: | ||||||||||||
| 1148 | |||||||||||||
| 1149 | - error object | ||||||||||||
| 1150 | |||||||||||||
| 1151 | |||||||||||||
| 1152 | On success, the HTTP status code in the response header is 200 OK. On error, the header status code is an error code and the response body contains an error object. Trying to add an episode when you do not have the user’s authorization, returns error 403 Forbidden.Try in our Web Console | ||||||||||||
| 1153 | |||||||||||||
| 1154 | =cut | ||||||||||||
| 1155 | |||||||||||||
| 1156 | 0 | ▶ | async sub save_episodes_user { | ||||||||||
|
Subroutine
save_episodes_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 1157 | 0 | my ($self, %args) = @_; | |||||||||||
| 1158 | |||||||||||||
| 1159 | 0 | my $mapping = $self->mapping; | |||||||||||
| 1160 | 0 | ▶ | my $request->{method} = $mapping->{save_episodes_user}{method} // 'PUT'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_episodes_user"}{"method"} // "PUT"
MC/DC0%0/1
$mapping->{"save_episodes_user"}{"method"} // "PUT"
$mapping->{"save_episodes_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"save_episodes_user"}{"method"}
| |||||||||||||
| 1161 | 0 | ▶ | $request->{uri} = $mapping->{save_episodes_user}{uri} // 'https://api.spotify.com/v1/me/episodes'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_episodes_user"}{"uri"} // "https://api.spotify.com/v1/me/episodes"
MC/DC0%0/1
$mapping->{"save_episodes_user"}{"uri"} // "https://api.spotify.com/v1/me/episodes"
$mapping->{"save_episodes_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"save_episodes_user"}{"uri"}
| |||||||||||||
| 1162 | $request->{param} = $mapping->{save_episodes_user}{param} // { | ||||||||||||
| 1163 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"save_episodes_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"save_episodes_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"save_episodes_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"save_episodes_user"}{"param"}
| |||||||||||||
| 1164 | 'Authorization' => { | ||||||||||||
| 1165 | type => 'string', | ||||||||||||
| 1166 | required => 'required', | ||||||||||||
| 1167 | }, | ||||||||||||
| 1168 | 'Content-Type' => { | ||||||||||||
| 1169 | type => 'string', | ||||||||||||
| 1170 | required => 'optional', | ||||||||||||
| 1171 | }, | ||||||||||||
| 1172 | }, | ||||||||||||
| 1173 | json_body_parameter => { | ||||||||||||
| 1174 | 'ids' => { | ||||||||||||
| 1175 | type => 'array[string]', | ||||||||||||
| 1176 | required => 'optional', | ||||||||||||
| 1177 | }, | ||||||||||||
| 1178 | }, | ||||||||||||
| 1179 | query_parameter => { | ||||||||||||
| 1180 | 'ids' => { | ||||||||||||
| 1181 | type => 'string', | ||||||||||||
| 1182 | required => 'required', | ||||||||||||
| 1183 | }, | ||||||||||||
| 1184 | }, | ||||||||||||
| 1185 | }; | ||||||||||||
| 1186 | my $response_objs = $mapping->{save_episodes_user}{response} // [ | ||||||||||||
| 1187 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"save_episodes_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"save_episodes_user"}{"response"} // ["error object"]
$mapping->{"save_episodes_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"save_episodes_user"}{"response"}
| |||||||||||||
| 1188 | |||||||||||||
| 1189 | ]; | ||||||||||||
| 1190 | |||||||||||||
| 1191 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 1192 | 2 | } | |||||||||||
| 1193 | |||||||||||||
| 1194 | =head2 save_shows_user | ||||||||||||
| 1195 | |||||||||||||
| 1196 | save_shows_user - Save Shows for Current User | ||||||||||||
| 1197 | |||||||||||||
| 1198 | Save one or more shows to current Spotify user’s library. | ||||||||||||
| 1199 | |||||||||||||
| 1200 | with Request details being: | ||||||||||||
| 1201 | |||||||||||||
| 1202 | =head3 header | ||||||||||||
| 1203 | |||||||||||||
| 1204 | =over 4 | ||||||||||||
| 1205 | |||||||||||||
| 1206 | =item Authorization | ||||||||||||
| 1207 | |||||||||||||
| 1208 | Type: string | Required: required | ||||||||||||
| 1209 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The access token must have been issued on behalf of the user. The user-library-modify scope must have been authorized by the user. | ||||||||||||
| 1210 | |||||||||||||
| 1211 | =back | ||||||||||||
| 1212 | |||||||||||||
| 1213 | =head3 query_parameter | ||||||||||||
| 1214 | |||||||||||||
| 1215 | =over 4 | ||||||||||||
| 1216 | |||||||||||||
| 1217 | =item ids | ||||||||||||
| 1218 | |||||||||||||
| 1219 | Type: string | Required: required | ||||||||||||
| 1220 | A comma-separated list of the Spotify IDs. Maximum: 50 IDs. | ||||||||||||
| 1221 | |||||||||||||
| 1222 | =back | ||||||||||||
| 1223 | |||||||||||||
| 1224 | and Response Objects being: | ||||||||||||
| 1225 | |||||||||||||
| 1226 | - error object | ||||||||||||
| 1227 | |||||||||||||
| 1228 | |||||||||||||
| 1229 | On success, the HTTP status code in the response header is 200 OK. On error, the header status code is an error code and the response body contains an error object. A 403 Forbidden while trying to add a show when you do not have the user’s authorisation or when the user already has have over 10,000 items saved in library.Try in our Web Console | ||||||||||||
| 1230 | |||||||||||||
| 1231 | =cut | ||||||||||||
| 1232 | |||||||||||||
| 1233 | 0 | ▶ | async sub save_shows_user { | ||||||||||
|
Subroutine
save_shows_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 1234 | 0 | my ($self, %args) = @_; | |||||||||||
| 1235 | |||||||||||||
| 1236 | 0 | my $mapping = $self->mapping; | |||||||||||
| 1237 | 0 | ▶ | my $request->{method} = $mapping->{save_shows_user}{method} // 'PUT'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_shows_user"}{"method"} // "PUT"
MC/DC0%0/1
$mapping->{"save_shows_user"}{"method"} // "PUT"
$mapping->{"save_shows_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"save_shows_user"}{"method"}
| |||||||||||||
| 1238 | 0 | ▶ | $request->{uri} = $mapping->{save_shows_user}{uri} // 'https://api.spotify.com/v1/me/shows'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_shows_user"}{"uri"} // "https://api.spotify.com/v1/me/shows"
MC/DC0%0/1
$mapping->{"save_shows_user"}{"uri"} // "https://api.spotify.com/v1/me/shows"
$mapping->{"save_shows_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"save_shows_user"}{"uri"}
| |||||||||||||
| 1239 | $request->{param} = $mapping->{save_shows_user}{param} // { | ||||||||||||
| 1240 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"save_shows_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"save_shows_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"save_shows_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"save_shows_user"}{"param"}
| |||||||||||||
| 1241 | 'Authorization' => { | ||||||||||||
| 1242 | type => 'string', | ||||||||||||
| 1243 | required => 'required', | ||||||||||||
| 1244 | }, | ||||||||||||
| 1245 | }, | ||||||||||||
| 1246 | query_parameter => { | ||||||||||||
| 1247 | 'ids' => { | ||||||||||||
| 1248 | type => 'string', | ||||||||||||
| 1249 | required => 'required', | ||||||||||||
| 1250 | }, | ||||||||||||
| 1251 | }, | ||||||||||||
| 1252 | }; | ||||||||||||
| 1253 | my $response_objs = $mapping->{save_shows_user}{response} // [ | ||||||||||||
| 1254 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"save_shows_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"save_shows_user"}{"response"} // ["error object"]
$mapping->{"save_shows_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"save_shows_user"}{"response"}
| |||||||||||||
| 1255 | |||||||||||||
| 1256 | ]; | ||||||||||||
| 1257 | |||||||||||||
| 1258 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 1259 | 2 | } | |||||||||||
| 1260 | |||||||||||||
| 1261 | =head2 save_tracks_user | ||||||||||||
| 1262 | |||||||||||||
| 1263 | save_tracks_user - Save Tracks for User | ||||||||||||
| 1264 | |||||||||||||
| 1265 | Save one or more tracks to the current user’s ‘Your Music’ library. | ||||||||||||
| 1266 | |||||||||||||
| 1267 | with Request details being: | ||||||||||||
| 1268 | |||||||||||||
| 1269 | =head3 header | ||||||||||||
| 1270 | |||||||||||||
| 1271 | =over 4 | ||||||||||||
| 1272 | |||||||||||||
| 1273 | =item Authorization | ||||||||||||
| 1274 | |||||||||||||
| 1275 | Type: string | Required: required | ||||||||||||
| 1276 | A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details.Modification of the current user’s “Your Music” collection requires authorization of the user-library-modify scope. | ||||||||||||
| 1277 | |||||||||||||
| 1278 | =item Content-Type | ||||||||||||
| 1279 | |||||||||||||
| 1280 | Type: string | Required: optional | ||||||||||||
| 1281 | Required if the IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 1282 | |||||||||||||
| 1283 | =back | ||||||||||||
| 1284 | |||||||||||||
| 1285 | =head3 json_body_parameter | ||||||||||||
| 1286 | |||||||||||||
| 1287 | =over 4 | ||||||||||||
| 1288 | |||||||||||||
| 1289 | =item ids | ||||||||||||
| 1290 | |||||||||||||
| 1291 | Type: array[string] | Required: optional | ||||||||||||
| 1292 | A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 1293 | |||||||||||||
| 1294 | =back | ||||||||||||
| 1295 | |||||||||||||
| 1296 | =head3 query_parameter | ||||||||||||
| 1297 | |||||||||||||
| 1298 | =over 4 | ||||||||||||
| 1299 | |||||||||||||
| 1300 | =item ids | ||||||||||||
| 1301 | |||||||||||||
| 1302 | Type: string | Required: required | ||||||||||||
| 1303 | A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M. Maximum: 50 IDs. | ||||||||||||
| 1304 | |||||||||||||
| 1305 | =back | ||||||||||||
| 1306 | |||||||||||||
| 1307 | and Response Objects being: | ||||||||||||
| 1308 | |||||||||||||
| 1309 | - error object | ||||||||||||
| 1310 | |||||||||||||
| 1311 | |||||||||||||
| 1312 | On success, the HTTP status code in the response header is 200 OK. On error, the header status code is an error code and the response body contains an error object. Trying to add a track when you do not have the user’s authorization, or when you have over 10.000 tracks in Your Music, returns error 403 Forbidden.Try in our Web Console | ||||||||||||
| 1313 | |||||||||||||
| 1314 | =cut | ||||||||||||
| 1315 | |||||||||||||
| 1316 | 0 | ▶ | async sub save_tracks_user { | ||||||||||
|
Subroutine
save_tracks_user: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 1317 | 0 | my ($self, %args) = @_; | |||||||||||
| 1318 | |||||||||||||
| 1319 | 0 | my $mapping = $self->mapping; | |||||||||||
| 1320 | 0 | ▶ | my $request->{method} = $mapping->{save_tracks_user}{method} // 'PUT'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_tracks_user"}{"method"} // "PUT"
MC/DC0%0/1
$mapping->{"save_tracks_user"}{"method"} // "PUT"
$mapping->{"save_tracks_user"}{"method"}
Truth table0%0/2
A
A= $mapping->{"save_tracks_user"}{"method"}
| |||||||||||||
| 1321 | 0 | ▶ | $request->{uri} = $mapping->{save_tracks_user}{uri} // 'https://api.spotify.com/v1/me/tracks'; | ||||||||||
|
Condition0%0/2
$mapping->{"save_tracks_user"}{"uri"} // "https://api.spotify.com/v1/me/tracks"
MC/DC0%0/1
$mapping->{"save_tracks_user"}{"uri"} // "https://api.spotify.com/v1/me/tracks"
$mapping->{"save_tracks_user"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"save_tracks_user"}{"uri"}
| |||||||||||||
| 1322 | $request->{param} = $mapping->{save_tracks_user}{param} // { | ||||||||||||
| 1323 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"save_tracks_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"save_tracks_user"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "optional"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"save_tracks_user"}{"param"}
Truth table0%0/2
A
A= $mapping->{"save_tracks_user"}{"param"}
| |||||||||||||
| 1324 | 'Authorization' => { | ||||||||||||
| 1325 | type => 'string', | ||||||||||||
| 1326 | required => 'required', | ||||||||||||
| 1327 | }, | ||||||||||||
| 1328 | 'Content-Type' => { | ||||||||||||
| 1329 | type => 'string', | ||||||||||||
| 1330 | required => 'optional', | ||||||||||||
| 1331 | }, | ||||||||||||
| 1332 | }, | ||||||||||||
| 1333 | json_body_parameter => { | ||||||||||||
| 1334 | 'ids' => { | ||||||||||||
| 1335 | type => 'array[string]', | ||||||||||||
| 1336 | required => 'optional', | ||||||||||||
| 1337 | }, | ||||||||||||
| 1338 | }, | ||||||||||||
| 1339 | query_parameter => { | ||||||||||||
| 1340 | 'ids' => { | ||||||||||||
| 1341 | type => 'string', | ||||||||||||
| 1342 | required => 'required', | ||||||||||||
| 1343 | }, | ||||||||||||
| 1344 | }, | ||||||||||||
| 1345 | }; | ||||||||||||
| 1346 | my $response_objs = $mapping->{save_tracks_user}{response} // [ | ||||||||||||
| 1347 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"save_tracks_user"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"save_tracks_user"}{"response"} // ["error object"]
$mapping->{"save_tracks_user"}{"response"}
Truth table0%0/2
A
A= $mapping->{"save_tracks_user"}{"response"}
| |||||||||||||
| 1348 | |||||||||||||
| 1349 | ]; | ||||||||||||
| 1350 | |||||||||||||
| 1351 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 1352 | 2 | } | |||||||||||
| 1353 | |||||||||||||
| 1354 | 2 | 1; | |||||||||||