Net-Async-Spotify

 view release on metacpan or  search on metacpan

lib/Net/Async/Spotify/Scope.pm  view on Meta::CPAN


=cut

use Log::Any qw($log);

use Exporter 'import';

our @EXPORT_OK = qw(scopes images listening_history spotify_connect playback playlists follow library users);
our %EXPORT_TAGS = ( all => \@EXPORT_OK );

my %scopes = map { $_ =~ s/-/_/gr => $_  } qw(ugc-image-upload user-read-recently-played user-read-playback-state user-top-read app-remote-control playlist-modify-public user-modify-playback-state playlist-modify-private user-follow-modify user-read-...

# TODO: Add support for endpoints allowed for each Scope.

=head1 METHODS

=head2 scopes

Returns list of Spotify Scopes, if no specific scopes requested; will return all scopes.

=cut

lib/Net/Async/Spotify/Scope.pm  view on Meta::CPAN

=cut

sub spotify_connect { @scopes{qw(user_read_playback_state user_modify_playback_state user_read_currently_playing)} }

=head2 playback

Returns list of Spotify Scopes for Playback

=cut

sub playback { @scopes{qw(app_remote_control streaming)} }

=head2 playlists

Returns list of Spotify Scopes for Playlists

=cut

sub playlists { @scopes{qw(playlist_modify_public playlist_modify_private playlist_read_private playlist_read_collaborative)} }

=head2 follow



( run in 0.227 second using v1.01-cache-2.11-cpan-4d50c553e7e )