Net::Async::Spotify::Scope - Helper for Spotify Scopes
use Net::Async::Spotify::Scope qw(scopes images); my @all = scopes(); my @needed = scopes(qw(ugc_image_upload user_read_recently_played)); my @images_scopes = images(); my $mod_lib = Net::Async::Spotify::Scope::user_library_modify(); # Safe to call, even if Scope does not exist my $dne = Net::Async::Spotify::Scope::dne();
Representation for Spotify Authorization Scopes defined in https://developer.spotify.com/documentation/general/guides/scopes methods exported will group scopes as categorized by Spotify.
Returns list of Spotify Scopes, if no specific scopes requested; will return all scopes.
Returns list of Spotify Scopes for Images
Returns list of Spotify Scopes for Listening History
Returns list of Spotify Scopes for Spotify Connect
Returns list of Spotify Scopes for Playback
Returns list of Spotify Scopes for Playlists
Returns list of Spotify Scopes for Follow
Returns list of Spotify Scopes for Library
Retruns list of Spotify Scopes for Users
An addition to this helper is that it will check if sub name called corresponde to any Spotify scope. And return a Scope, or log a warn message and return empty list when not found.
To install Net::Async::Spotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Spotify
CPAN shell
perl -MCPAN -e shell install Net::Async::Spotify
For more information on module installation, please visit the detailed CPAN module installation guide.