« lib/Net/Async/Spotify/API/Generated/Follow.pm
↑ Summary
lib/Net/Async/Spotify/API/Generated/Tracks.pm »
| 1 | package Net::Async::Spotify::API::Generated::Artists; | ||||||||||||
| 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::Artists - Package representing Spotify Artists 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 get_an_artist | ||||||||||||
| 33 | |||||||||||||
| 34 | get_an_artist - Get an Artist | ||||||||||||
| 35 | |||||||||||||
| 36 | Get Spotify catalog information for a single artist identified by their unique Spotify ID. | ||||||||||||
| 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 user access token or your client credentials. | ||||||||||||
| 48 | |||||||||||||
| 49 | =back | ||||||||||||
| 50 | |||||||||||||
| 51 | =head3 path_parameter | ||||||||||||
| 52 | |||||||||||||
| 53 | =over 4 | ||||||||||||
| 54 | |||||||||||||
| 55 | =item id | ||||||||||||
| 56 | |||||||||||||
| 57 | Type: string | Required: required | ||||||||||||
| 58 | The Spotify ID of the artist. | ||||||||||||
| 59 | |||||||||||||
| 60 | =back | ||||||||||||
| 61 | |||||||||||||
| 62 | and Response Objects being: | ||||||||||||
| 63 | |||||||||||||
| 64 | - artist object | ||||||||||||
| 65 | |||||||||||||
| 66 | |||||||||||||
| 67 | On success, the HTTP status code in the response header is 200 OK and the response body contains an artist 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 | ||||||||||||
| 68 | |||||||||||||
| 69 | =cut | ||||||||||||
| 70 | |||||||||||||
| 71 | 0 | ▶ | async sub get_an_artist { | ||||||||||
|
Subroutine
get_an_artist: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 72 | 0 | my ($self, %args) = @_; | |||||||||||
| 73 | |||||||||||||
| 74 | 0 | my $mapping = $self->mapping; | |||||||||||
| 75 | 0 | ▶ | my $request->{method} = $mapping->{get_an_artist}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artist"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_an_artist"}{"method"} // "GET"
$mapping->{"get_an_artist"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_an_artist"}{"method"}
| |||||||||||||
| 76 | 0 | ▶ | $request->{uri} = $mapping->{get_an_artist}{uri} // 'https://api.spotify.com/v1/artists/{id}'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artist"}{"uri"} // "https://api.spotify.com/v1/artists/{id}"
MC/DC0%0/1
$mapping->{"get_an_artist"}{"uri"} // "https://api.spotify.com/v1/artists/{id}"
$mapping->{"get_an_artist"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_an_artist"}{"uri"}
| |||||||||||||
| 77 | $request->{param} = $mapping->{get_an_artist}{param} // { | ||||||||||||
| 78 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"get_an_artist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}}
$mapping->{"get_an_artist"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_an_artist"}{"param"}
| |||||||||||||
| 79 | 'Authorization' => { | ||||||||||||
| 80 | type => 'string', | ||||||||||||
| 81 | required => 'required', | ||||||||||||
| 82 | }, | ||||||||||||
| 83 | }, | ||||||||||||
| 84 | path_parameter => { | ||||||||||||
| 85 | 'id' => { | ||||||||||||
| 86 | type => 'string', | ||||||||||||
| 87 | required => 'required', | ||||||||||||
| 88 | }, | ||||||||||||
| 89 | }, | ||||||||||||
| 90 | }; | ||||||||||||
| 91 | my $response_objs = $mapping->{get_an_artist}{response} // [ | ||||||||||||
| 92 | 0 | ▶ | 'artist object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artist"}{"response"} // ["artist object"]
MC/DC0%0/1
$mapping->{"get_an_artist"}{"response"} // ["artist object"]
$mapping->{"get_an_artist"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_an_artist"}{"response"}
| |||||||||||||
| 93 | |||||||||||||
| 94 | ]; | ||||||||||||
| 95 | |||||||||||||
| 96 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 97 | 2 | } | |||||||||||
| 98 | |||||||||||||
| 99 | =head2 get_an_artists_albums | ||||||||||||
| 100 | |||||||||||||
| 101 | get_an_artists_albums - Get an Artist's Albums | ||||||||||||
| 102 | |||||||||||||
| 103 | Get Spotify catalog information about an artist’s albums. | ||||||||||||
| 104 | |||||||||||||
| 105 | with Request details being: | ||||||||||||
| 106 | |||||||||||||
| 107 | =head3 header | ||||||||||||
| 108 | |||||||||||||
| 109 | =over 4 | ||||||||||||
| 110 | |||||||||||||
| 111 | =item Authorization | ||||||||||||
| 112 | |||||||||||||
| 113 | Type: string | Required: required | ||||||||||||
| 114 | A valid user access token or your client credentials. | ||||||||||||
| 115 | |||||||||||||
| 116 | =back | ||||||||||||
| 117 | |||||||||||||
| 118 | =head3 path_parameter | ||||||||||||
| 119 | |||||||||||||
| 120 | =over 4 | ||||||||||||
| 121 | |||||||||||||
| 122 | =item id | ||||||||||||
| 123 | |||||||||||||
| 124 | Type: string | Required: required | ||||||||||||
| 125 | The Spotify ID for the artist. | ||||||||||||
| 126 | |||||||||||||
| 127 | =back | ||||||||||||
| 128 | |||||||||||||
| 129 | =head3 query_parameter | ||||||||||||
| 130 | |||||||||||||
| 131 | =over 4 | ||||||||||||
| 132 | |||||||||||||
| 133 | =item include_groups | ||||||||||||
| 134 | |||||||||||||
| 135 | Type: string | Required: optional | ||||||||||||
| 136 | A comma-separated list of keywords that will be used to filter the response. If not supplied, all album types will be returned. Valid values are:- album- single- appears_on- compilationFor example: include_groups=album,single. | ||||||||||||
| 137 | |||||||||||||
| 138 | =item limit | ||||||||||||
| 139 | |||||||||||||
| 140 | Type: integer | Required: optional | ||||||||||||
| 141 | The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50. For example: limit=2 | ||||||||||||
| 142 | |||||||||||||
| 143 | =item market | ||||||||||||
| 144 | |||||||||||||
| 145 | Type: string | Required: optional | ||||||||||||
| 146 | Synonym for country. An ISO 3166-1 alpha-2 country code or the string from_token.Supply this parameter to limit the response to one particular geographical market. For example, for albums available in Sweden: market=SE.If not given, results will be returned for all markets and you are likely to get duplicate results per album, one for each market in which the album is available! | ||||||||||||
| 147 | |||||||||||||
| 148 | =item offset | ||||||||||||
| 149 | |||||||||||||
| 150 | Type: integer | Required: optional | ||||||||||||
| 151 | The index of the first album to return. Default: 0 (i.e., the first album). Use with limit to get the next set of albums. | ||||||||||||
| 152 | |||||||||||||
| 153 | =back | ||||||||||||
| 154 | |||||||||||||
| 155 | and Response Objects being: | ||||||||||||
| 156 | |||||||||||||
| 157 | - album object | ||||||||||||
| 158 | |||||||||||||
| 159 | |||||||||||||
| 160 | On success, the HTTP status code in the response header is 200 OK and the response body contains an array of simplified album 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 | ||||||||||||
| 161 | |||||||||||||
| 162 | =cut | ||||||||||||
| 163 | |||||||||||||
| 164 | 0 | ▶ | async sub get_an_artists_albums { | ||||||||||
|
Subroutine
get_an_artists_albums: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 165 | 0 | my ($self, %args) = @_; | |||||||||||
| 166 | |||||||||||||
| 167 | 0 | my $mapping = $self->mapping; | |||||||||||
| 168 | 0 | ▶ | my $request->{method} = $mapping->{get_an_artists_albums}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_albums"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_an_artists_albums"}{"method"} // "GET"
$mapping->{"get_an_artists_albums"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_albums"}{"method"}
| |||||||||||||
| 169 | 0 | ▶ | $request->{uri} = $mapping->{get_an_artists_albums}{uri} // 'https://api.spotify.com/v1/artists/{id}/albums'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_albums"}{"uri"} // "https://api.spotify.com/v1/artists/{id}/albums"
MC/DC0%0/1
$mapping->{"get_an_artists_albums"}{"uri"} // "https://api.spotify.com/v1/artists/{id}/albums"
$mapping->{"get_an_artists_albums"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_albums"}{"uri"}
| |||||||||||||
| 170 | $request->{param} = $mapping->{get_an_artists_albums}{param} // { | ||||||||||||
| 171 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_albums"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}, "query_parameter", {"include_groups", {"type", "string", "required", "optional"}, "limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
MC/DC0%0/1
$mapping->{"get_an_artists_albums"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}, "query_parameter", {"include_groups", {"type", "string", "required", "optional"}, "limit", {"type", "integer", "required", "optional"}, "market", {"type", "string", "required", "optional"}, "offset", {"type", "integer", "required", "optional"}}}
$mapping->{"get_an_artists_albums"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_albums"}{"param"}
| |||||||||||||
| 172 | 'Authorization' => { | ||||||||||||
| 173 | type => 'string', | ||||||||||||
| 174 | required => 'required', | ||||||||||||
| 175 | }, | ||||||||||||
| 176 | }, | ||||||||||||
| 177 | path_parameter => { | ||||||||||||
| 178 | 'id' => { | ||||||||||||
| 179 | type => 'string', | ||||||||||||
| 180 | required => 'required', | ||||||||||||
| 181 | }, | ||||||||||||
| 182 | }, | ||||||||||||
| 183 | query_parameter => { | ||||||||||||
| 184 | 'include_groups' => { | ||||||||||||
| 185 | type => 'string', | ||||||||||||
| 186 | required => 'optional', | ||||||||||||
| 187 | }, | ||||||||||||
| 188 | 'limit' => { | ||||||||||||
| 189 | type => 'integer', | ||||||||||||
| 190 | required => 'optional', | ||||||||||||
| 191 | }, | ||||||||||||
| 192 | 'market' => { | ||||||||||||
| 193 | type => 'string', | ||||||||||||
| 194 | required => 'optional', | ||||||||||||
| 195 | }, | ||||||||||||
| 196 | 'offset' => { | ||||||||||||
| 197 | type => 'integer', | ||||||||||||
| 198 | required => 'optional', | ||||||||||||
| 199 | }, | ||||||||||||
| 200 | }, | ||||||||||||
| 201 | }; | ||||||||||||
| 202 | my $response_objs = $mapping->{get_an_artists_albums}{response} // [ | ||||||||||||
| 203 | 0 | ▶ | 'album object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_albums"}{"response"} // ["album object"]
MC/DC0%0/1
$mapping->{"get_an_artists_albums"}{"response"} // ["album object"]
$mapping->{"get_an_artists_albums"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_albums"}{"response"}
| |||||||||||||
| 204 | |||||||||||||
| 205 | ]; | ||||||||||||
| 206 | |||||||||||||
| 207 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 208 | 2 | } | |||||||||||
| 209 | |||||||||||||
| 210 | =head2 get_an_artists_related_artists | ||||||||||||
| 211 | |||||||||||||
| 212 | get_an_artists_related_artists - Get an Artist's Related Artists | ||||||||||||
| 213 | |||||||||||||
| 214 | Get Spotify catalog information about artists similar to a given artist. Similarity is based on analysis of the Spotify community’s listening history. | ||||||||||||
| 215 | |||||||||||||
| 216 | with Request details being: | ||||||||||||
| 217 | |||||||||||||
| 218 | =head3 header | ||||||||||||
| 219 | |||||||||||||
| 220 | =over 4 | ||||||||||||
| 221 | |||||||||||||
| 222 | =item Authorization | ||||||||||||
| 223 | |||||||||||||
| 224 | Type: string | Required: required | ||||||||||||
| 225 | A valid user access token or your client credentials. | ||||||||||||
| 226 | |||||||||||||
| 227 | =back | ||||||||||||
| 228 | |||||||||||||
| 229 | =head3 path_parameter | ||||||||||||
| 230 | |||||||||||||
| 231 | =over 4 | ||||||||||||
| 232 | |||||||||||||
| 233 | =item id | ||||||||||||
| 234 | |||||||||||||
| 235 | Type: string | Required: required | ||||||||||||
| 236 | The Spotify ID for the artist | ||||||||||||
| 237 | |||||||||||||
| 238 | =back | ||||||||||||
| 239 | |||||||||||||
| 240 | and Response Objects being: | ||||||||||||
| 241 | |||||||||||||
| 242 | - an object | ||||||||||||
| 243 | |||||||||||||
| 244 | |||||||||||||
| 245 | On success, the HTTP status code in the response header is 200 OK and the response body contains an object whose key is "artists" and whose value is an array of up to 20 artist objects 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 | ||||||||||||
| 246 | |||||||||||||
| 247 | =cut | ||||||||||||
| 248 | |||||||||||||
| 249 | 0 | ▶ | async sub get_an_artists_related_artists { | ||||||||||
|
Subroutine
get_an_artists_related_artists: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 250 | 0 | my ($self, %args) = @_; | |||||||||||
| 251 | |||||||||||||
| 252 | 0 | my $mapping = $self->mapping; | |||||||||||
| 253 | 0 | ▶ | my $request->{method} = $mapping->{get_an_artists_related_artists}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_related_artists"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_an_artists_related_artists"}{"method"} // "GET"
$mapping->{"get_an_artists_related_artists"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_related_artists"}{"method"}
| |||||||||||||
| 254 | 0 | ▶ | $request->{uri} = $mapping->{get_an_artists_related_artists}{uri} // 'https://api.spotify.com/v1/artists/{id}/related-artists'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_related_artists"}{"uri"} // "https://api.spotify.com/v1/artists/{id}/related-artists"
MC/DC0%0/1
$mapping->{"get_an_artists_related_artists"}{"uri"} // "https://api.spotify.com/v1/artists/{id}/related-artists"
$mapping->{"get_an_artists_related_artists"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_related_artists"}{"uri"}
| |||||||||||||
| 255 | $request->{param} = $mapping->{get_an_artists_related_artists}{param} // { | ||||||||||||
| 256 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_related_artists"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"get_an_artists_related_artists"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}}
$mapping->{"get_an_artists_related_artists"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_related_artists"}{"param"}
| |||||||||||||
| 257 | 'Authorization' => { | ||||||||||||
| 258 | type => 'string', | ||||||||||||
| 259 | required => 'required', | ||||||||||||
| 260 | }, | ||||||||||||
| 261 | }, | ||||||||||||
| 262 | path_parameter => { | ||||||||||||
| 263 | 'id' => { | ||||||||||||
| 264 | type => 'string', | ||||||||||||
| 265 | required => 'required', | ||||||||||||
| 266 | }, | ||||||||||||
| 267 | }, | ||||||||||||
| 268 | }; | ||||||||||||
| 269 | my $response_objs = $mapping->{get_an_artists_related_artists}{response} // [ | ||||||||||||
| 270 | 0 | ▶ | 'an object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_related_artists"}{"response"} // ["an object"]
MC/DC0%0/1
$mapping->{"get_an_artists_related_artists"}{"response"} // ["an object"]
$mapping->{"get_an_artists_related_artists"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_related_artists"}{"response"}
| |||||||||||||
| 271 | |||||||||||||
| 272 | ]; | ||||||||||||
| 273 | |||||||||||||
| 274 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 275 | 2 | } | |||||||||||
| 276 | |||||||||||||
| 277 | =head2 get_an_artists_top_tracks | ||||||||||||
| 278 | |||||||||||||
| 279 | get_an_artists_top_tracks - Get an Artist's Top Tracks | ||||||||||||
| 280 | |||||||||||||
| 281 | Get Spotify catalog information about an artist’s top tracks by country. | ||||||||||||
| 282 | |||||||||||||
| 283 | with Request details being: | ||||||||||||
| 284 | |||||||||||||
| 285 | =head3 header | ||||||||||||
| 286 | |||||||||||||
| 287 | =over 4 | ||||||||||||
| 288 | |||||||||||||
| 289 | =item Authorization | ||||||||||||
| 290 | |||||||||||||
| 291 | Type: string | Required: required | ||||||||||||
| 292 | A valid user access token or your client credentials. | ||||||||||||
| 293 | |||||||||||||
| 294 | =back | ||||||||||||
| 295 | |||||||||||||
| 296 | =head3 path_parameter | ||||||||||||
| 297 | |||||||||||||
| 298 | =over 4 | ||||||||||||
| 299 | |||||||||||||
| 300 | =item id | ||||||||||||
| 301 | |||||||||||||
| 302 | Type: string | Required: required | ||||||||||||
| 303 | The Spotify ID for the artist | ||||||||||||
| 304 | |||||||||||||
| 305 | =back | ||||||||||||
| 306 | |||||||||||||
| 307 | =head3 query_parameter | ||||||||||||
| 308 | |||||||||||||
| 309 | =over 4 | ||||||||||||
| 310 | |||||||||||||
| 311 | =item market | ||||||||||||
| 312 | |||||||||||||
| 313 | Type: string | Required: required | ||||||||||||
| 314 | An ISO 3166-1 alpha-2 country code or the string from_token. Synonym for country. | ||||||||||||
| 315 | |||||||||||||
| 316 | =back | ||||||||||||
| 317 | |||||||||||||
| 318 | and Response Objects being: | ||||||||||||
| 319 | |||||||||||||
| 320 | - an object | ||||||||||||
| 321 | |||||||||||||
| 322 | |||||||||||||
| 323 | On success, the HTTP status code in the response header is 200 OK and the response body contains an object whose key is "tracks" and whose value is an array of up to 10 track objects 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 | ||||||||||||
| 324 | |||||||||||||
| 325 | =cut | ||||||||||||
| 326 | |||||||||||||
| 327 | 0 | ▶ | async sub get_an_artists_top_tracks { | ||||||||||
|
Subroutine
get_an_artists_top_tracks: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 328 | 0 | my ($self, %args) = @_; | |||||||||||
| 329 | |||||||||||||
| 330 | 0 | my $mapping = $self->mapping; | |||||||||||
| 331 | 0 | ▶ | my $request->{method} = $mapping->{get_an_artists_top_tracks}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_top_tracks"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_an_artists_top_tracks"}{"method"} // "GET"
$mapping->{"get_an_artists_top_tracks"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_top_tracks"}{"method"}
| |||||||||||||
| 332 | 0 | ▶ | $request->{uri} = $mapping->{get_an_artists_top_tracks}{uri} // 'https://api.spotify.com/v1/artists/{id}/top-tracks'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_top_tracks"}{"uri"} // "https://api.spotify.com/v1/artists/{id}/top-tracks"
MC/DC0%0/1
$mapping->{"get_an_artists_top_tracks"}{"uri"} // "https://api.spotify.com/v1/artists/{id}/top-tracks"
$mapping->{"get_an_artists_top_tracks"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_top_tracks"}{"uri"}
| |||||||||||||
| 333 | $request->{param} = $mapping->{get_an_artists_top_tracks}{param} // { | ||||||||||||
| 334 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_top_tracks"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}, "query_parameter", {"market", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"get_an_artists_top_tracks"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"id", {"type", "string", "required", "required"}}, "query_parameter", {"market", {"type", "string", "required", "required"}}}
$mapping->{"get_an_artists_top_tracks"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_top_tracks"}{"param"}
| |||||||||||||
| 335 | 'Authorization' => { | ||||||||||||
| 336 | type => 'string', | ||||||||||||
| 337 | required => 'required', | ||||||||||||
| 338 | }, | ||||||||||||
| 339 | }, | ||||||||||||
| 340 | path_parameter => { | ||||||||||||
| 341 | 'id' => { | ||||||||||||
| 342 | type => 'string', | ||||||||||||
| 343 | required => 'required', | ||||||||||||
| 344 | }, | ||||||||||||
| 345 | }, | ||||||||||||
| 346 | query_parameter => { | ||||||||||||
| 347 | 'market' => { | ||||||||||||
| 348 | type => 'string', | ||||||||||||
| 349 | required => 'required', | ||||||||||||
| 350 | }, | ||||||||||||
| 351 | }, | ||||||||||||
| 352 | }; | ||||||||||||
| 353 | my $response_objs = $mapping->{get_an_artists_top_tracks}{response} // [ | ||||||||||||
| 354 | 0 | ▶ | 'an object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_an_artists_top_tracks"}{"response"} // ["an object"]
MC/DC0%0/1
$mapping->{"get_an_artists_top_tracks"}{"response"} // ["an object"]
$mapping->{"get_an_artists_top_tracks"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_an_artists_top_tracks"}{"response"}
| |||||||||||||
| 355 | |||||||||||||
| 356 | ]; | ||||||||||||
| 357 | |||||||||||||
| 358 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 359 | 2 | } | |||||||||||
| 360 | |||||||||||||
| 361 | =head2 get_multiple_artists | ||||||||||||
| 362 | |||||||||||||
| 363 | get_multiple_artists - Get Multiple Artists | ||||||||||||
| 364 | |||||||||||||
| 365 | Get Spotify catalog information for several artists based on their Spotify IDs. | ||||||||||||
| 366 | |||||||||||||
| 367 | with Request details being: | ||||||||||||
| 368 | |||||||||||||
| 369 | =head3 header | ||||||||||||
| 370 | |||||||||||||
| 371 | =over 4 | ||||||||||||
| 372 | |||||||||||||
| 373 | =item Authorization | ||||||||||||
| 374 | |||||||||||||
| 375 | Type: string | Required: required | ||||||||||||
| 376 | A valid user access token or your client credentials. | ||||||||||||
| 377 | |||||||||||||
| 378 | =back | ||||||||||||
| 379 | |||||||||||||
| 380 | =head3 query_parameter | ||||||||||||
| 381 | |||||||||||||
| 382 | =over 4 | ||||||||||||
| 383 | |||||||||||||
| 384 | =item ids | ||||||||||||
| 385 | |||||||||||||
| 386 | Type: string | Required: required | ||||||||||||
| 387 | A comma-separated list of the Spotify IDs for the artists. Maximum: 50 IDs. | ||||||||||||
| 388 | |||||||||||||
| 389 | =back | ||||||||||||
| 390 | |||||||||||||
| 391 | and Response Objects being: | ||||||||||||
| 392 | |||||||||||||
| 393 | - an object | ||||||||||||
| 394 | - an object | ||||||||||||
| 395 | |||||||||||||
| 396 | |||||||||||||
| 397 | On success, the HTTP status code in the response header is 200 OK and the response body contains an object whose key is "artists" and whose value is an array of artist objects in JSON format.Objects are returned in the order requested. If an object is not found, a null value is returned in the appropriate position. Duplicate ids in the query will result in duplicate objects in the response. On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 398 | |||||||||||||
| 399 | =cut | ||||||||||||
| 400 | |||||||||||||
| 401 | 0 | ▶ | async sub get_multiple_artists { | ||||||||||
|
Subroutine
get_multiple_artists: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 402 | 0 | my ($self, %args) = @_; | |||||||||||
| 403 | |||||||||||||
| 404 | 0 | my $mapping = $self->mapping; | |||||||||||
| 405 | 0 | ▶ | my $request->{method} = $mapping->{get_multiple_artists}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_multiple_artists"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_multiple_artists"}{"method"} // "GET"
$mapping->{"get_multiple_artists"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_multiple_artists"}{"method"}
| |||||||||||||
| 406 | 0 | ▶ | $request->{uri} = $mapping->{get_multiple_artists}{uri} // 'https://api.spotify.com/v1/artists'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_multiple_artists"}{"uri"} // "https://api.spotify.com/v1/artists"
MC/DC0%0/1
$mapping->{"get_multiple_artists"}{"uri"} // "https://api.spotify.com/v1/artists"
$mapping->{"get_multiple_artists"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_multiple_artists"}{"uri"}
| |||||||||||||
| 407 | $request->{param} = $mapping->{get_multiple_artists}{param} // { | ||||||||||||
| 408 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_multiple_artists"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"get_multiple_artists"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"get_multiple_artists"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_multiple_artists"}{"param"}
| |||||||||||||
| 409 | 'Authorization' => { | ||||||||||||
| 410 | type => 'string', | ||||||||||||
| 411 | required => 'required', | ||||||||||||
| 412 | }, | ||||||||||||
| 413 | }, | ||||||||||||
| 414 | query_parameter => { | ||||||||||||
| 415 | 'ids' => { | ||||||||||||
| 416 | type => 'string', | ||||||||||||
| 417 | required => 'required', | ||||||||||||
| 418 | }, | ||||||||||||
| 419 | }, | ||||||||||||
| 420 | }; | ||||||||||||
| 421 | my $response_objs = $mapping->{get_multiple_artists}{response} // [ | ||||||||||||
| 422 | 0 | ▶ | 'an object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_multiple_artists"}{"response"} // ["an object", "an object"]
MC/DC0%0/1
$mapping->{"get_multiple_artists"}{"response"} // ["an object", "an object"]
$mapping->{"get_multiple_artists"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_multiple_artists"}{"response"}
| |||||||||||||
| 423 | 'an object', | ||||||||||||
| 424 | |||||||||||||
| 425 | ]; | ||||||||||||
| 426 | |||||||||||||
| 427 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 428 | 2 | } | |||||||||||
| 429 | |||||||||||||
| 430 | 2 | 1; | |||||||||||