lib/Net/Async/Spotify/API/Generated/Markets.pm

filter: Statementstmt 73.0% 19 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 75.7% 25 / 33 SCAR 0.2
CC
1
Cov
73%
get_available_markets
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Net/Async/Spotify/API/Generated/Users.pm ↑ Summary lib/Net/Async/Spotify/API/Generated/Personalization.pm »
1 package Net::Async::Spotify::API::Generated::Markets;
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.001'; # 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::Markets - Package representing Spotify Markets 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 =head2 get_available_markets
31  
32 get_available_markets - Get Available Markets
33  
34 Get the list of markets where Spotify is available.
35  
36 with Request details being:
37  
38 =head3 header
39  
40 =over 4
41  
42 =item Authorization
43  
44 Type: string | Required: required
45 A valid user access token or your client credentials.
46  
47 =back
48  
49 and Response Objects being:
50  
51 - error object
52  
53  
54 On success, the HTTP status code in the response header is 200 OK and the response body contains a list of the countries in which Spotify is available, identified by their ISO 3166-1 alpha-2 country code with additional country codes for special territories. On error, the header status code is an error code and the response body contains an error object.Try in our Web Console
55  
56 =cut
57  
58 0 ▶async sub get_available_markets {
Subroutine get_available_markets: not called CC=1 SCAR=6.9
Pod documented
59 0 my ($self, %args) = @_;
60  
61 0 my $request->{method} = 'GET';
62 0 $request->{uri} = 'https://api.spotify.com/v1/markets';
63 $request->{param} = {
64 0 header => {
65 'Authorization' => {
66 type => 'string',
67 required => 'required',
68 },
69 },
70 };
71 0 my $response_objs = [
72 'error object',
73  
74 ];
75  
76 0 await $self->call_api($request, $response_objs, %args);
77 2 }
78  
79 2 1;
« lib/Net/Async/Spotify/API/Generated/Users.pm ↑ Summary lib/Net/Async/Spotify/API/Generated/Personalization.pm »