« lib/Net/Async/Spotify/API/Generated/Browse.pm
↑ Summary
lib/Net/Async/Spotify/API/Generated/Artists.pm »
| 1 | package Net::Async::Spotify::API::Generated::Follow; | ||||||||||||
| 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::Follow - Package representing Spotify Follow 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_current_user_follows | ||||||||||||
| 33 | |||||||||||||
| 34 | check_current_user_follows - Get Following State for Artists/Users | ||||||||||||
| 35 | |||||||||||||
| 36 | Check to see if the current user is following one or more artists or other Spotify users. | ||||||||||||
| 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. Requires the user-follow-read scope. | ||||||||||||
| 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 artist or the user Spotify IDs to check. For example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. A maximum of 50 IDs can be sent in one request. | ||||||||||||
| 59 | |||||||||||||
| 60 | =item type | ||||||||||||
| 61 | |||||||||||||
| 62 | Type: string | Required: required | ||||||||||||
| 63 | The ID type: either artist or user. | ||||||||||||
| 64 | |||||||||||||
| 65 | =back | ||||||||||||
| 66 | |||||||||||||
| 67 | and Response Objects being: | ||||||||||||
| 68 | |||||||||||||
| 69 | - error object | ||||||||||||
| 70 | |||||||||||||
| 71 | |||||||||||||
| 72 | 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. | ||||||||||||
| 73 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 74 | |||||||||||||
| 75 | =cut | ||||||||||||
| 76 | |||||||||||||
| 77 | 0 | ▶ | async sub check_current_user_follows { | ||||||||||
|
Subroutine
check_current_user_follows: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 78 | 0 | my ($self, %args) = @_; | |||||||||||
| 79 | |||||||||||||
| 80 | 0 | my $mapping = $self->mapping; | |||||||||||
| 81 | 0 | ▶ | my $request->{method} = $mapping->{check_current_user_follows}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_current_user_follows"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"check_current_user_follows"}{"method"} // "GET"
$mapping->{"check_current_user_follows"}{"method"}
Truth table0%0/2
A
A= $mapping->{"check_current_user_follows"}{"method"}
| |||||||||||||
| 82 | 0 | ▶ | $request->{uri} = $mapping->{check_current_user_follows}{uri} // 'https://api.spotify.com/v1/me/following/contains'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_current_user_follows"}{"uri"} // "https://api.spotify.com/v1/me/following/contains"
MC/DC0%0/1
$mapping->{"check_current_user_follows"}{"uri"} // "https://api.spotify.com/v1/me/following/contains"
$mapping->{"check_current_user_follows"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"check_current_user_follows"}{"uri"}
| |||||||||||||
| 83 | $request->{param} = $mapping->{check_current_user_follows}{param} // { | ||||||||||||
| 84 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"check_current_user_follows"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}, "type", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"check_current_user_follows"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}, "type", {"type", "string", "required", "required"}}}
$mapping->{"check_current_user_follows"}{"param"}
Truth table0%0/2
A
A= $mapping->{"check_current_user_follows"}{"param"}
| |||||||||||||
| 85 | 'Authorization' => { | ||||||||||||
| 86 | type => 'string', | ||||||||||||
| 87 | required => 'required', | ||||||||||||
| 88 | }, | ||||||||||||
| 89 | }, | ||||||||||||
| 90 | query_parameter => { | ||||||||||||
| 91 | 'ids' => { | ||||||||||||
| 92 | type => 'string', | ||||||||||||
| 93 | required => 'required', | ||||||||||||
| 94 | }, | ||||||||||||
| 95 | 'type' => { | ||||||||||||
| 96 | type => 'string', | ||||||||||||
| 97 | required => 'required', | ||||||||||||
| 98 | }, | ||||||||||||
| 99 | }, | ||||||||||||
| 100 | }; | ||||||||||||
| 101 | my $response_objs = $mapping->{check_current_user_follows}{response} // [ | ||||||||||||
| 102 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"check_current_user_follows"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"check_current_user_follows"}{"response"} // ["error object"]
$mapping->{"check_current_user_follows"}{"response"}
Truth table0%0/2
A
A= $mapping->{"check_current_user_follows"}{"response"}
| |||||||||||||
| 103 | |||||||||||||
| 104 | ]; | ||||||||||||
| 105 | |||||||||||||
| 106 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 107 | 2 | } | |||||||||||
| 108 | |||||||||||||
| 109 | =head2 check_if_user_follows_playlist | ||||||||||||
| 110 | |||||||||||||
| 111 | check_if_user_follows_playlist - Check if Users Follow a Playlist | ||||||||||||
| 112 | |||||||||||||
| 113 | Check to see if one or more Spotify users are following a specified playlist. | ||||||||||||
| 114 | |||||||||||||
| 115 | with Request details being: | ||||||||||||
| 116 | |||||||||||||
| 117 | =head3 header | ||||||||||||
| 118 | |||||||||||||
| 119 | =over 4 | ||||||||||||
| 120 | |||||||||||||
| 121 | =item Authorization | ||||||||||||
| 122 | |||||||||||||
| 123 | Type: string | Required: required | ||||||||||||
| 124 | A valid user access token or your client credentials. Requires the playlist-read-private scope if a private playlist is requested. | ||||||||||||
| 125 | |||||||||||||
| 126 | =back | ||||||||||||
| 127 | |||||||||||||
| 128 | =head3 path_parameter | ||||||||||||
| 129 | |||||||||||||
| 130 | =over 4 | ||||||||||||
| 131 | |||||||||||||
| 132 | =item playlist_id | ||||||||||||
| 133 | |||||||||||||
| 134 | Type: string | Required: required | ||||||||||||
| 135 | The Spotify ID of the playlist. | ||||||||||||
| 136 | |||||||||||||
| 137 | =back | ||||||||||||
| 138 | |||||||||||||
| 139 | =head3 query_parameter | ||||||||||||
| 140 | |||||||||||||
| 141 | =over 4 | ||||||||||||
| 142 | |||||||||||||
| 143 | =item ids | ||||||||||||
| 144 | |||||||||||||
| 145 | Type: string | Required: required | ||||||||||||
| 146 | A comma-separated list of Spotify User IDs ; the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids. | ||||||||||||
| 147 | |||||||||||||
| 148 | =back | ||||||||||||
| 149 | |||||||||||||
| 150 | and Response Objects being: | ||||||||||||
| 151 | |||||||||||||
| 152 | - error object | ||||||||||||
| 153 | |||||||||||||
| 154 | |||||||||||||
| 155 | 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. | ||||||||||||
| 156 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 157 | |||||||||||||
| 158 | =cut | ||||||||||||
| 159 | |||||||||||||
| 160 | 0 | ▶ | async sub check_if_user_follows_playlist { | ||||||||||
|
Subroutine
check_if_user_follows_playlist: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 161 | 0 | my ($self, %args) = @_; | |||||||||||
| 162 | |||||||||||||
| 163 | 0 | my $mapping = $self->mapping; | |||||||||||
| 164 | 0 | ▶ | my $request->{method} = $mapping->{check_if_user_follows_playlist}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_if_user_follows_playlist"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"check_if_user_follows_playlist"}{"method"} // "GET"
$mapping->{"check_if_user_follows_playlist"}{"method"}
Truth table0%0/2
A
A= $mapping->{"check_if_user_follows_playlist"}{"method"}
| |||||||||||||
| 165 | 0 | ▶ | $request->{uri} = $mapping->{check_if_user_follows_playlist}{uri} // 'https://api.spotify.com/v1/playlists/{playlist_id}/followers/contains'; | ||||||||||
|
Condition0%0/2
$mapping->{"check_if_user_follows_playlist"}{"uri"} // "https://api.spotify.com/v1/playlists/{playlist_id}/followers/contains"
MC/DC0%0/1
$mapping->{"check_if_user_follows_playlist"}{"uri"} // "https://api.spotify.com/v1/playlists/{playlist_id}/followers/contains"
$mapping->{"check_if_user_follows_playlist"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"check_if_user_follows_playlist"}{"uri"}
| |||||||||||||
| 166 | $request->{param} = $mapping->{check_if_user_follows_playlist}{param} // { | ||||||||||||
| 167 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"check_if_user_follows_playlist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"playlist_id", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"check_if_user_follows_playlist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"playlist_id", {"type", "string", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}}}
$mapping->{"check_if_user_follows_playlist"}{"param"}
Truth table0%0/2
A
A= $mapping->{"check_if_user_follows_playlist"}{"param"}
| |||||||||||||
| 168 | 'Authorization' => { | ||||||||||||
| 169 | type => 'string', | ||||||||||||
| 170 | required => 'required', | ||||||||||||
| 171 | }, | ||||||||||||
| 172 | }, | ||||||||||||
| 173 | path_parameter => { | ||||||||||||
| 174 | 'playlist_id' => { | ||||||||||||
| 175 | type => 'string', | ||||||||||||
| 176 | required => 'required', | ||||||||||||
| 177 | }, | ||||||||||||
| 178 | }, | ||||||||||||
| 179 | query_parameter => { | ||||||||||||
| 180 | 'ids' => { | ||||||||||||
| 181 | type => 'string', | ||||||||||||
| 182 | required => 'required', | ||||||||||||
| 183 | }, | ||||||||||||
| 184 | }, | ||||||||||||
| 185 | }; | ||||||||||||
| 186 | my $response_objs = $mapping->{check_if_user_follows_playlist}{response} // [ | ||||||||||||
| 187 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"check_if_user_follows_playlist"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"check_if_user_follows_playlist"}{"response"} // ["error object"]
$mapping->{"check_if_user_follows_playlist"}{"response"}
Truth table0%0/2
A
A= $mapping->{"check_if_user_follows_playlist"}{"response"}
| |||||||||||||
| 188 | |||||||||||||
| 189 | ]; | ||||||||||||
| 190 | |||||||||||||
| 191 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 192 | 2 | } | |||||||||||
| 193 | |||||||||||||
| 194 | =head2 follow_artists_users | ||||||||||||
| 195 | |||||||||||||
| 196 | follow_artists_users - Follow Artists or Users | ||||||||||||
| 197 | |||||||||||||
| 198 | Add the current user as a follower of one or more artists or other Spotify users. | ||||||||||||
| 199 | |||||||||||||
| 200 | with Request details being: | ||||||||||||
| 201 | |||||||||||||
| 202 | =head3 header | ||||||||||||
| 203 | |||||||||||||
| 204 | =over 4 | ||||||||||||
| 205 | |||||||||||||
| 206 | =item Authorization | ||||||||||||
| 207 | |||||||||||||
| 208 | Type: string | Required: required | ||||||||||||
| 209 | A valid user access token or your client credentials. Requires the user-follow-modify scope. | ||||||||||||
| 210 | |||||||||||||
| 211 | =item Content-Type | ||||||||||||
| 212 | |||||||||||||
| 213 | Type: string | Required: optional | ||||||||||||
| 214 | Required if IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json | ||||||||||||
| 215 | |||||||||||||
| 216 | =back | ||||||||||||
| 217 | |||||||||||||
| 218 | =head3 json_body_parameter | ||||||||||||
| 219 | |||||||||||||
| 220 | =over 4 | ||||||||||||
| 221 | |||||||||||||
| 222 | =item ids | ||||||||||||
| 223 | |||||||||||||
| 224 | Type: array[string] | Required: required | ||||||||||||
| 225 | A JSON array of the artist or user Spotify IDs. | ||||||||||||
| 226 | For example: {ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 227 | |||||||||||||
| 228 | =back | ||||||||||||
| 229 | |||||||||||||
| 230 | =head3 query_parameter | ||||||||||||
| 231 | |||||||||||||
| 232 | =over 4 | ||||||||||||
| 233 | |||||||||||||
| 234 | =item ids | ||||||||||||
| 235 | |||||||||||||
| 236 | Type: string | Required: required | ||||||||||||
| 237 | A comma-separated list of the artist or the user Spotify IDs. | ||||||||||||
| 238 | For example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. A maximum of 50 IDs can be sent in one request. | ||||||||||||
| 239 | |||||||||||||
| 240 | =item type | ||||||||||||
| 241 | |||||||||||||
| 242 | Type: string | Required: required | ||||||||||||
| 243 | The ID type: either artist or user. | ||||||||||||
| 244 | |||||||||||||
| 245 | =back | ||||||||||||
| 246 | |||||||||||||
| 247 | and Response Objects being: | ||||||||||||
| 248 | |||||||||||||
| 249 | - error object | ||||||||||||
| 250 | |||||||||||||
| 251 | |||||||||||||
| 252 | On success, the HTTP status code in the response header is 204 No Content and the response body is empty. | ||||||||||||
| 253 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 254 | |||||||||||||
| 255 | =cut | ||||||||||||
| 256 | |||||||||||||
| 257 | 0 | ▶ | async sub follow_artists_users { | ||||||||||
|
Subroutine
follow_artists_users: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 258 | 0 | my ($self, %args) = @_; | |||||||||||
| 259 | |||||||||||||
| 260 | 0 | my $mapping = $self->mapping; | |||||||||||
| 261 | 0 | ▶ | my $request->{method} = $mapping->{follow_artists_users}{method} // 'PUT'; | ||||||||||
|
Condition0%0/2
$mapping->{"follow_artists_users"}{"method"} // "PUT"
MC/DC0%0/1
$mapping->{"follow_artists_users"}{"method"} // "PUT"
$mapping->{"follow_artists_users"}{"method"}
Truth table0%0/2
A
A= $mapping->{"follow_artists_users"}{"method"}
| |||||||||||||
| 262 | 0 | ▶ | $request->{uri} = $mapping->{follow_artists_users}{uri} // 'https://api.spotify.com/v1/me/following'; | ||||||||||
|
Condition0%0/2
$mapping->{"follow_artists_users"}{"uri"} // "https://api.spotify.com/v1/me/following"
MC/DC0%0/1
$mapping->{"follow_artists_users"}{"uri"} // "https://api.spotify.com/v1/me/following"
$mapping->{"follow_artists_users"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"follow_artists_users"}{"uri"}
| |||||||||||||
| 263 | $request->{param} = $mapping->{follow_artists_users}{param} // { | ||||||||||||
| 264 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"follow_artists_users"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}, "type", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"follow_artists_users"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "optional"}}, "json_body_parameter", {"ids", {"type", "array[string]", "required", "required"}}, "query_parameter", {"ids", {"type", "string", "required", "required"}, "type", {"type", "string", "required", "required"}}}
$mapping->{"follow_artists_users"}{"param"}
Truth table0%0/2
A
A= $mapping->{"follow_artists_users"}{"param"}
| |||||||||||||
| 265 | 'Authorization' => { | ||||||||||||
| 266 | type => 'string', | ||||||||||||
| 267 | required => 'required', | ||||||||||||
| 268 | }, | ||||||||||||
| 269 | 'Content-Type' => { | ||||||||||||
| 270 | type => 'string', | ||||||||||||
| 271 | required => 'optional', | ||||||||||||
| 272 | }, | ||||||||||||
| 273 | }, | ||||||||||||
| 274 | json_body_parameter => { | ||||||||||||
| 275 | 'ids' => { | ||||||||||||
| 276 | type => 'array[string]', | ||||||||||||
| 277 | required => 'required', | ||||||||||||
| 278 | }, | ||||||||||||
| 279 | }, | ||||||||||||
| 280 | query_parameter => { | ||||||||||||
| 281 | 'ids' => { | ||||||||||||
| 282 | type => 'string', | ||||||||||||
| 283 | required => 'required', | ||||||||||||
| 284 | }, | ||||||||||||
| 285 | 'type' => { | ||||||||||||
| 286 | type => 'string', | ||||||||||||
| 287 | required => 'required', | ||||||||||||
| 288 | }, | ||||||||||||
| 289 | }, | ||||||||||||
| 290 | }; | ||||||||||||
| 291 | my $response_objs = $mapping->{follow_artists_users}{response} // [ | ||||||||||||
| 292 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"follow_artists_users"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"follow_artists_users"}{"response"} // ["error object"]
$mapping->{"follow_artists_users"}{"response"}
Truth table0%0/2
A
A= $mapping->{"follow_artists_users"}{"response"}
| |||||||||||||
| 293 | |||||||||||||
| 294 | ]; | ||||||||||||
| 295 | |||||||||||||
| 296 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 297 | 2 | } | |||||||||||
| 298 | |||||||||||||
| 299 | =head2 follow_playlist | ||||||||||||
| 300 | |||||||||||||
| 301 | follow_playlist - Follow a Playlist | ||||||||||||
| 302 | |||||||||||||
| 303 | Add the current user as a follower of a playlist. | ||||||||||||
| 304 | |||||||||||||
| 305 | with Request details being: | ||||||||||||
| 306 | |||||||||||||
| 307 | =head3 header | ||||||||||||
| 308 | |||||||||||||
| 309 | =over 4 | ||||||||||||
| 310 | |||||||||||||
| 311 | =item Authorization | ||||||||||||
| 312 | |||||||||||||
| 313 | Type: string | Required: required | ||||||||||||
| 314 | 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.Following a playlist publicly requires authorization of the playlist-modify-public scope; following a playlist privately requires the playlist-modify-private scope. See Using Scopes.Note that the scopes you provide relate only to whether the current user is following the playlist publicly or privately (i.e. showing others what they are following), not whether the playlist itself is public or private. | ||||||||||||
| 315 | |||||||||||||
| 316 | =item Content-Type | ||||||||||||
| 317 | |||||||||||||
| 318 | Type: string | Required: required | ||||||||||||
| 319 | The content type of the request body: application/json | ||||||||||||
| 320 | |||||||||||||
| 321 | =back | ||||||||||||
| 322 | |||||||||||||
| 323 | =head3 json_body_parameter | ||||||||||||
| 324 | |||||||||||||
| 325 | =over 4 | ||||||||||||
| 326 | |||||||||||||
| 327 | =item public | ||||||||||||
| 328 | |||||||||||||
| 329 | Type: boolean | Required: optional | ||||||||||||
| 330 | Defaults to true. If true the playlist will be included in user’s public playlists, if false it will remain private. | ||||||||||||
| 331 | |||||||||||||
| 332 | =back | ||||||||||||
| 333 | |||||||||||||
| 334 | =head3 path_parameter | ||||||||||||
| 335 | |||||||||||||
| 336 | =over 4 | ||||||||||||
| 337 | |||||||||||||
| 338 | =item playlist_id | ||||||||||||
| 339 | |||||||||||||
| 340 | Type: string | Required: required | ||||||||||||
| 341 | The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID. | ||||||||||||
| 342 | |||||||||||||
| 343 | =back | ||||||||||||
| 344 | |||||||||||||
| 345 | and Response Objects being: | ||||||||||||
| 346 | |||||||||||||
| 347 | - error object | ||||||||||||
| 348 | |||||||||||||
| 349 | |||||||||||||
| 350 | On success, the HTTP status code in the response header is 200 OK and the response body is empty. | ||||||||||||
| 351 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 352 | |||||||||||||
| 353 | =cut | ||||||||||||
| 354 | |||||||||||||
| 355 | 0 | ▶ | async sub follow_playlist { | ||||||||||
|
Subroutine
follow_playlist: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 356 | 0 | my ($self, %args) = @_; | |||||||||||
| 357 | |||||||||||||
| 358 | 0 | my $mapping = $self->mapping; | |||||||||||
| 359 | 0 | ▶ | my $request->{method} = $mapping->{follow_playlist}{method} // 'PUT'; | ||||||||||
|
Condition0%0/2
$mapping->{"follow_playlist"}{"method"} // "PUT"
MC/DC0%0/1
$mapping->{"follow_playlist"}{"method"} // "PUT"
$mapping->{"follow_playlist"}{"method"}
Truth table0%0/2
A
A= $mapping->{"follow_playlist"}{"method"}
| |||||||||||||
| 360 | 0 | ▶ | $request->{uri} = $mapping->{follow_playlist}{uri} // 'https://api.spotify.com/v1/playlists/{playlist_id}/followers'; | ||||||||||
|
Condition0%0/2
$mapping->{"follow_playlist"}{"uri"} // "https://api.spotify.com/v1/playlists/{playlist_id}/followers"
MC/DC0%0/1
$mapping->{"follow_playlist"}{"uri"} // "https://api.spotify.com/v1/playlists/{playlist_id}/followers"
$mapping->{"follow_playlist"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"follow_playlist"}{"uri"}
| |||||||||||||
| 361 | $request->{param} = $mapping->{follow_playlist}{param} // { | ||||||||||||
| 362 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"follow_playlist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "required"}}, "json_body_parameter", {"public", {"type", "boolean", "required", "optional"}}, "path_parameter", {"playlist_id", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"follow_playlist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}, "Content-Type", {"type", "string", "required", "required"}}, "json_body_parameter", {"public", {"type", "boolean", "required", "optional"}}, "path_parameter", {"playlist_id", {"type", "string", "required", "required"}}}
$mapping->{"follow_playlist"}{"param"}
Truth table0%0/2
A
A= $mapping->{"follow_playlist"}{"param"}
| |||||||||||||
| 363 | 'Authorization' => { | ||||||||||||
| 364 | type => 'string', | ||||||||||||
| 365 | required => 'required', | ||||||||||||
| 366 | }, | ||||||||||||
| 367 | 'Content-Type' => { | ||||||||||||
| 368 | type => 'string', | ||||||||||||
| 369 | required => 'required', | ||||||||||||
| 370 | }, | ||||||||||||
| 371 | }, | ||||||||||||
| 372 | json_body_parameter => { | ||||||||||||
| 373 | 'public' => { | ||||||||||||
| 374 | type => 'boolean', | ||||||||||||
| 375 | required => 'optional', | ||||||||||||
| 376 | }, | ||||||||||||
| 377 | }, | ||||||||||||
| 378 | path_parameter => { | ||||||||||||
| 379 | 'playlist_id' => { | ||||||||||||
| 380 | type => 'string', | ||||||||||||
| 381 | required => 'required', | ||||||||||||
| 382 | }, | ||||||||||||
| 383 | }, | ||||||||||||
| 384 | }; | ||||||||||||
| 385 | my $response_objs = $mapping->{follow_playlist}{response} // [ | ||||||||||||
| 386 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"follow_playlist"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"follow_playlist"}{"response"} // ["error object"]
$mapping->{"follow_playlist"}{"response"}
Truth table0%0/2
A
A= $mapping->{"follow_playlist"}{"response"}
| |||||||||||||
| 387 | |||||||||||||
| 388 | ]; | ||||||||||||
| 389 | |||||||||||||
| 390 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 391 | 2 | } | |||||||||||
| 392 | |||||||||||||
| 393 | =head2 get_followed | ||||||||||||
| 394 | |||||||||||||
| 395 | get_followed - Get User's Followed Artists | ||||||||||||
| 396 | |||||||||||||
| 397 | Get the current user’s followed artists. | ||||||||||||
| 398 | |||||||||||||
| 399 | with Request details being: | ||||||||||||
| 400 | |||||||||||||
| 401 | =head3 header | ||||||||||||
| 402 | |||||||||||||
| 403 | =over 4 | ||||||||||||
| 404 | |||||||||||||
| 405 | =item Authorization | ||||||||||||
| 406 | |||||||||||||
| 407 | Type: string | Required: required | ||||||||||||
| 408 | A valid user access token or your client credentials. Requires the user-follow-modify scope. | ||||||||||||
| 409 | |||||||||||||
| 410 | =back | ||||||||||||
| 411 | |||||||||||||
| 412 | =head3 query_parameter | ||||||||||||
| 413 | |||||||||||||
| 414 | =over 4 | ||||||||||||
| 415 | |||||||||||||
| 416 | =item after | ||||||||||||
| 417 | |||||||||||||
| 418 | Type: string | Required: optional | ||||||||||||
| 419 | The last artist ID retrieved from the previous request. | ||||||||||||
| 420 | |||||||||||||
| 421 | =item limit | ||||||||||||
| 422 | |||||||||||||
| 423 | Type: integer | Required: optional | ||||||||||||
| 424 | The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. | ||||||||||||
| 425 | |||||||||||||
| 426 | =item type | ||||||||||||
| 427 | |||||||||||||
| 428 | Type: string | Required: required | ||||||||||||
| 429 | The ID type: currently only artist is supported. | ||||||||||||
| 430 | |||||||||||||
| 431 | =back | ||||||||||||
| 432 | |||||||||||||
| 433 | and Response Objects being: | ||||||||||||
| 434 | |||||||||||||
| 435 | - paging object | ||||||||||||
| 436 | |||||||||||||
| 437 | |||||||||||||
| 438 | On success, the HTTP status code in the response header is 200 OK and the response body contains an artists object. | ||||||||||||
| 439 | The artists object in turn contains a cursor-based paging object of Artists. | ||||||||||||
| 440 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 441 | |||||||||||||
| 442 | =cut | ||||||||||||
| 443 | |||||||||||||
| 444 | 0 | ▶ | async sub get_followed { | ||||||||||
|
Subroutine
get_followed: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 445 | 0 | my ($self, %args) = @_; | |||||||||||
| 446 | |||||||||||||
| 447 | 0 | my $mapping = $self->mapping; | |||||||||||
| 448 | 0 | ▶ | my $request->{method} = $mapping->{get_followed}{method} // 'GET'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_followed"}{"method"} // "GET"
MC/DC0%0/1
$mapping->{"get_followed"}{"method"} // "GET"
$mapping->{"get_followed"}{"method"}
Truth table0%0/2
A
A= $mapping->{"get_followed"}{"method"}
| |||||||||||||
| 449 | 0 | ▶ | $request->{uri} = $mapping->{get_followed}{uri} // 'https://api.spotify.com/v1/me/following'; | ||||||||||
|
Condition0%0/2
$mapping->{"get_followed"}{"uri"} // "https://api.spotify.com/v1/me/following"
MC/DC0%0/1
$mapping->{"get_followed"}{"uri"} // "https://api.spotify.com/v1/me/following"
$mapping->{"get_followed"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"get_followed"}{"uri"}
| |||||||||||||
| 450 | $request->{param} = $mapping->{get_followed}{param} // { | ||||||||||||
| 451 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"get_followed"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"after", {"type", "string", "required", "optional"}, "limit", {"type", "integer", "required", "optional"}, "type", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"get_followed"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "query_parameter", {"after", {"type", "string", "required", "optional"}, "limit", {"type", "integer", "required", "optional"}, "type", {"type", "string", "required", "required"}}}
$mapping->{"get_followed"}{"param"}
Truth table0%0/2
A
A= $mapping->{"get_followed"}{"param"}
| |||||||||||||
| 452 | 'Authorization' => { | ||||||||||||
| 453 | type => 'string', | ||||||||||||
| 454 | required => 'required', | ||||||||||||
| 455 | }, | ||||||||||||
| 456 | }, | ||||||||||||
| 457 | query_parameter => { | ||||||||||||
| 458 | 'after' => { | ||||||||||||
| 459 | type => 'string', | ||||||||||||
| 460 | required => 'optional', | ||||||||||||
| 461 | }, | ||||||||||||
| 462 | 'limit' => { | ||||||||||||
| 463 | type => 'integer', | ||||||||||||
| 464 | required => 'optional', | ||||||||||||
| 465 | }, | ||||||||||||
| 466 | 'type' => { | ||||||||||||
| 467 | type => 'string', | ||||||||||||
| 468 | required => 'required', | ||||||||||||
| 469 | }, | ||||||||||||
| 470 | }, | ||||||||||||
| 471 | }; | ||||||||||||
| 472 | my $response_objs = $mapping->{get_followed}{response} // [ | ||||||||||||
| 473 | 0 | ▶ | 'paging object', | ||||||||||
|
Condition0%0/2
$mapping->{"get_followed"}{"response"} // ["paging object"]
MC/DC0%0/1
$mapping->{"get_followed"}{"response"} // ["paging object"]
$mapping->{"get_followed"}{"response"}
Truth table0%0/2
A
A= $mapping->{"get_followed"}{"response"}
| |||||||||||||
| 474 | |||||||||||||
| 475 | ]; | ||||||||||||
| 476 | |||||||||||||
| 477 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 478 | 2 | } | |||||||||||
| 479 | |||||||||||||
| 480 | =head2 unfollow_artists_users | ||||||||||||
| 481 | |||||||||||||
| 482 | unfollow_artists_users - Unfollow Artists or Users | ||||||||||||
| 483 | |||||||||||||
| 484 | Remove the current user as a follower of one or more artists or other Spotify users. | ||||||||||||
| 485 | |||||||||||||
| 486 | with Request details being: | ||||||||||||
| 487 | |||||||||||||
| 488 | =head3 header | ||||||||||||
| 489 | |||||||||||||
| 490 | =over 4 | ||||||||||||
| 491 | |||||||||||||
| 492 | =item Authorization | ||||||||||||
| 493 | |||||||||||||
| 494 | Type: string | Required: required | ||||||||||||
| 495 | A valid user access token or your client credentials. Requires the user-follow-modify scope. | ||||||||||||
| 496 | |||||||||||||
| 497 | =item Content-Type | ||||||||||||
| 498 | |||||||||||||
| 499 | Type: string | Required: optional | ||||||||||||
| 500 | Required if IDs are passed in the request body, otherwise ignored. The content type of the request body: application/json. | ||||||||||||
| 501 | |||||||||||||
| 502 | =back | ||||||||||||
| 503 | |||||||||||||
| 504 | =head3 json_body_parameter | ||||||||||||
| 505 | |||||||||||||
| 506 | =over 4 | ||||||||||||
| 507 | |||||||||||||
| 508 | =item ids | ||||||||||||
| 509 | |||||||||||||
| 510 | Type: array[string] | Required: optional | ||||||||||||
| 511 | A JSON array of the artist or user Spotify IDs. For example: {ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored. | ||||||||||||
| 512 | |||||||||||||
| 513 | =back | ||||||||||||
| 514 | |||||||||||||
| 515 | =head3 query_parameter | ||||||||||||
| 516 | |||||||||||||
| 517 | =over 4 | ||||||||||||
| 518 | |||||||||||||
| 519 | =item ids | ||||||||||||
| 520 | |||||||||||||
| 521 | Type: string | Required: required | ||||||||||||
| 522 | A comma-separated list of the artist or the user Spotify IDs. For example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. A maximum of 50 IDs can be sent in one request. | ||||||||||||
| 523 | |||||||||||||
| 524 | =item type | ||||||||||||
| 525 | |||||||||||||
| 526 | Type: string | Required: required | ||||||||||||
| 527 | The ID type: either artist or user. | ||||||||||||
| 528 | |||||||||||||
| 529 | =back | ||||||||||||
| 530 | |||||||||||||
| 531 | and Response Objects being: | ||||||||||||
| 532 | |||||||||||||
| 533 | - error object | ||||||||||||
| 534 | |||||||||||||
| 535 | |||||||||||||
| 536 | On success, the HTTP status code in the response header is 204 No Content and the response body is empty. | ||||||||||||
| 537 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 538 | |||||||||||||
| 539 | =cut | ||||||||||||
| 540 | |||||||||||||
| 541 | 0 | ▶ | async sub unfollow_artists_users { | ||||||||||
|
Subroutine
unfollow_artists_users: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 542 | 0 | my ($self, %args) = @_; | |||||||||||
| 543 | |||||||||||||
| 544 | 0 | my $mapping = $self->mapping; | |||||||||||
| 545 | 0 | ▶ | my $request->{method} = $mapping->{unfollow_artists_users}{method} // 'DELETE'; | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_artists_users"}{"method"} // "DELETE"
MC/DC0%0/1
$mapping->{"unfollow_artists_users"}{"method"} // "DELETE"
$mapping->{"unfollow_artists_users"}{"method"}
Truth table0%0/2
A
A= $mapping->{"unfollow_artists_users"}{"method"}
| |||||||||||||
| 546 | 0 | ▶ | $request->{uri} = $mapping->{unfollow_artists_users}{uri} // 'https://api.spotify.com/v1/me/following'; | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_artists_users"}{"uri"} // "https://api.spotify.com/v1/me/following"
MC/DC0%0/1
$mapping->{"unfollow_artists_users"}{"uri"} // "https://api.spotify.com/v1/me/following"
$mapping->{"unfollow_artists_users"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"unfollow_artists_users"}{"uri"}
| |||||||||||||
| 547 | $request->{param} = $mapping->{unfollow_artists_users}{param} // { | ||||||||||||
| 548 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_artists_users"}{"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"}, "type", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"unfollow_artists_users"}{"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"}, "type", {"type", "string", "required", "required"}}}
$mapping->{"unfollow_artists_users"}{"param"}
Truth table0%0/2
A
A= $mapping->{"unfollow_artists_users"}{"param"}
| |||||||||||||
| 549 | 'Authorization' => { | ||||||||||||
| 550 | type => 'string', | ||||||||||||
| 551 | required => 'required', | ||||||||||||
| 552 | }, | ||||||||||||
| 553 | 'Content-Type' => { | ||||||||||||
| 554 | type => 'string', | ||||||||||||
| 555 | required => 'optional', | ||||||||||||
| 556 | }, | ||||||||||||
| 557 | }, | ||||||||||||
| 558 | json_body_parameter => { | ||||||||||||
| 559 | 'ids' => { | ||||||||||||
| 560 | type => 'array[string]', | ||||||||||||
| 561 | required => 'optional', | ||||||||||||
| 562 | }, | ||||||||||||
| 563 | }, | ||||||||||||
| 564 | query_parameter => { | ||||||||||||
| 565 | 'ids' => { | ||||||||||||
| 566 | type => 'string', | ||||||||||||
| 567 | required => 'required', | ||||||||||||
| 568 | }, | ||||||||||||
| 569 | 'type' => { | ||||||||||||
| 570 | type => 'string', | ||||||||||||
| 571 | required => 'required', | ||||||||||||
| 572 | }, | ||||||||||||
| 573 | }, | ||||||||||||
| 574 | }; | ||||||||||||
| 575 | my $response_objs = $mapping->{unfollow_artists_users}{response} // [ | ||||||||||||
| 576 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_artists_users"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"unfollow_artists_users"}{"response"} // ["error object"]
$mapping->{"unfollow_artists_users"}{"response"}
Truth table0%0/2
A
A= $mapping->{"unfollow_artists_users"}{"response"}
| |||||||||||||
| 577 | |||||||||||||
| 578 | ]; | ||||||||||||
| 579 | |||||||||||||
| 580 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 581 | 2 | } | |||||||||||
| 582 | |||||||||||||
| 583 | =head2 unfollow_playlist | ||||||||||||
| 584 | |||||||||||||
| 585 | unfollow_playlist - Unfollow Playlist | ||||||||||||
| 586 | |||||||||||||
| 587 | Remove the current user as a follower of a playlist. | ||||||||||||
| 588 | |||||||||||||
| 589 | with Request details being: | ||||||||||||
| 590 | |||||||||||||
| 591 | =head3 header | ||||||||||||
| 592 | |||||||||||||
| 593 | =over 4 | ||||||||||||
| 594 | |||||||||||||
| 595 | =item Authorization | ||||||||||||
| 596 | |||||||||||||
| 597 | Type: string | Required: required | ||||||||||||
| 598 | 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.Unfollowing a publicly followed playlist for a user requires authorization of the playlist-modify-public scope; unfollowing a privately followed playlist requires the playlist-modify-private scope. See Using Scopes.Note that the scopes you provide relate only to whether the current user is following the playlist publicly or privately (i.e. showing others what they are following), not whether the playlist itself is public or private. | ||||||||||||
| 599 | |||||||||||||
| 600 | =back | ||||||||||||
| 601 | |||||||||||||
| 602 | =head3 path_parameter | ||||||||||||
| 603 | |||||||||||||
| 604 | =over 4 | ||||||||||||
| 605 | |||||||||||||
| 606 | =item playlist_id | ||||||||||||
| 607 | |||||||||||||
| 608 | Type: string | Required: required | ||||||||||||
| 609 | The Spotify ID of the playlist that is to be no longer followed. | ||||||||||||
| 610 | |||||||||||||
| 611 | =back | ||||||||||||
| 612 | |||||||||||||
| 613 | and Response Objects being: | ||||||||||||
| 614 | |||||||||||||
| 615 | - error object | ||||||||||||
| 616 | |||||||||||||
| 617 | |||||||||||||
| 618 | On success, the HTTP status code in the response header is 200 OK and the response body is empty. | ||||||||||||
| 619 | On error, the header status code is an error code and the response body contains an error object.Try in our Web Console | ||||||||||||
| 620 | |||||||||||||
| 621 | =cut | ||||||||||||
| 622 | |||||||||||||
| 623 | 0 | ▶ | async sub unfollow_playlist { | ||||||||||
|
Subroutine
unfollow_playlist: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||
| 624 | 0 | my ($self, %args) = @_; | |||||||||||
| 625 | |||||||||||||
| 626 | 0 | my $mapping = $self->mapping; | |||||||||||
| 627 | 0 | ▶ | my $request->{method} = $mapping->{unfollow_playlist}{method} // 'DELETE'; | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_playlist"}{"method"} // "DELETE"
MC/DC0%0/1
$mapping->{"unfollow_playlist"}{"method"} // "DELETE"
$mapping->{"unfollow_playlist"}{"method"}
Truth table0%0/2
A
A= $mapping->{"unfollow_playlist"}{"method"}
| |||||||||||||
| 628 | 0 | ▶ | $request->{uri} = $mapping->{unfollow_playlist}{uri} // 'https://api.spotify.com/v1/playlists/{playlist_id}/followers'; | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_playlist"}{"uri"} // "https://api.spotify.com/v1/playlists/{playlist_id}/followers"
MC/DC0%0/1
$mapping->{"unfollow_playlist"}{"uri"} // "https://api.spotify.com/v1/playlists/{playlist_id}/followers"
$mapping->{"unfollow_playlist"}{"uri"}
Truth table0%0/2
A
A= $mapping->{"unfollow_playlist"}{"uri"}
| |||||||||||||
| 629 | $request->{param} = $mapping->{unfollow_playlist}{param} // { | ||||||||||||
| 630 | 0 | ▶ | header => { | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_playlist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"playlist_id", {"type", "string", "required", "required"}}}
MC/DC0%0/1
$mapping->{"unfollow_playlist"}{"param"} // {"header", {"Authorization", {"type", "string", "required", "required"}}, "path_parameter", {"playlist_id", {"type", "string", "required", "required"}}}
$mapping->{"unfollow_playlist"}{"param"}
Truth table0%0/2
A
A= $mapping->{"unfollow_playlist"}{"param"}
| |||||||||||||
| 631 | 'Authorization' => { | ||||||||||||
| 632 | type => 'string', | ||||||||||||
| 633 | required => 'required', | ||||||||||||
| 634 | }, | ||||||||||||
| 635 | }, | ||||||||||||
| 636 | path_parameter => { | ||||||||||||
| 637 | 'playlist_id' => { | ||||||||||||
| 638 | type => 'string', | ||||||||||||
| 639 | required => 'required', | ||||||||||||
| 640 | }, | ||||||||||||
| 641 | }, | ||||||||||||
| 642 | }; | ||||||||||||
| 643 | my $response_objs = $mapping->{unfollow_playlist}{response} // [ | ||||||||||||
| 644 | 0 | ▶ | 'error object', | ||||||||||
|
Condition0%0/2
$mapping->{"unfollow_playlist"}{"response"} // ["error object"]
MC/DC0%0/1
$mapping->{"unfollow_playlist"}{"response"} // ["error object"]
$mapping->{"unfollow_playlist"}{"response"}
Truth table0%0/2
A
A= $mapping->{"unfollow_playlist"}{"response"}
| |||||||||||||
| 645 | |||||||||||||
| 646 | ]; | ||||||||||||
| 647 | |||||||||||||
| 648 | 0 | await $self->call_api($request, $response_objs, %args); | |||||||||||
| 649 | 2 | } | |||||||||||
| 650 | |||||||||||||
| 651 | 2 | 1; | |||||||||||