Me class
Endpoint for authenticated users v1/me/*
- Inheritance
Constructors
- Me(SpotifyApiBase api, PlayerEndpoint player)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addToQueue(
String trackId) → Future< void> -
checkFollowing(
FollowingType type, List< String> ids) → Future<Map< String, bool> > - Check if current user follow the provided FollowingType.artists or FollowingType.users.
-
containsSavedAlbums(
List< String> ids) → Future<Map< String, bool> > - Check if passed albums (ids) are saved by current user. Returns the list of id's mapped with the response whether it has been saved
-
containsSavedEpisodes(
List< String> ids) → Future<Map< String, bool> > -
Check if passed episode
ids
are saved by current user. Returns the list of id's mapped with the response whether it has been saved -
containsSavedShows(
List< String> ids) → Future<Map< String, bool> > -
Check if passed albums (ids) are saved by current user.
ids
- list of id's to check Returns the list of id's mapped with the response whether it has been saved -
currentlyPlaying(
) → Future< PlaybackState> - Get the object currently being played on the user’s Spotify account.
-
devices(
) → Future< Iterable< Device> > - Get information about a user’s available devices.
-
follow(
FollowingType type, List< String> ids) → Future<void> -
Follow provided users/artists
type
- Type of Follow
ids
- user/artist -
following(
FollowingType type) → CursorPages< Artist> -
Endpoint
/v1/me/following
only supports FollowingType.artist at the moment. -
get(
) → Future< User> -
isFollowing(
FollowingType type, List< String> ids) → Future<List< bool> > - Check to see if the current user is following one or more artists or other Spotify users. The output bool list is in the same order as the provided artist-id list
-
isSavedAlbums(
List< String> ids) → Future<List< bool> > - Check if passed albums (ids) are saved by current user. The output bool list is in the same order as the provided album ids list
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
player(
[String? market]) → Future< PlaybackState> -
queue(
) → Future< Queue> -
recentlyPlayed(
{int? limit, DateTime? after, DateTime? before}) → CursorPages< PlayHistory> - Get tracks from the current user’s recently played tracks. Note: Currently doesn’t support podcast episodes.
-
removeAlbums(
List< String> ids) → Future<void> -
Remove albums for the current-user. It requires the
user-library-modify
scope of Spotify WebSDK
ids
- the ids of the albums -
removeEpisodes(
List< String> ids) → Future<void> -
Removes episodes for the current user. Requires the
user-library-modify
scope.ids
- the ids of the episodes -
removeShows(
List< String> ids, [Market? market]) → Future<void> -
Removes shows for the current user. It requires the
user-library-modify
scope.ids
- the ids of the shows to removemarket
- An ISO 3166-1 alpha-2 country code. If a country code is specified, only content that is available in that market will be returned. -
saveAlbums(
List< String> ids) → Future<void> -
Save albums for the current-user. It requires the
user-library-modify
scope of Spotify WebSDK
ids
- the ids of the albums -
savedAlbums(
) → Pages< AlbumSimple> - gets current user's saved albums in pages
-
savedEpisodes(
) → Pages< EpisodeFull> -
Returns the current user's saved episodes. Requires the
user-library-read
scope. -
savedShows(
) → Pages< Show> - Get a list of shows saved in the current Spotify user’s library.
-
saveEpisodes(
List< String> ids) → Future<void> -
Saves episodes for the current user. Requires the
user-library-modify
scope.ids
- the ids of the episodes -
saveShows(
List< String> ids) → Future<void> -
Save shows for the current user. It requires the
user-library-modify
scope.ids
- the ids of the shows to save -
shuffle(
bool state, [String? deviceId]) → Future< PlaybackState?> - Toggle Shuffle For User's Playback.
-
topArtists(
{TimeRange timeRange = TimeRange.mediumTerm}) → Pages< Artist> -
Get the current user's top artists, spanning over a
timeRange
. ThetimeRange
's default is TimeRange.mediumTerm. -
topTracks(
{TimeRange timeRange = TimeRange.mediumTerm}) → Pages< Track> -
Get the current user's top tracks, spanning over a
timeRange
. ThetimeRange
's default is TimeRange.mediumTerm. -
toString(
) → String -
A string representation of this object.
inherited
-
unfollow(
FollowingType type, List< String> ids) → Future<void> -
Unfollow already following users/artists
type
- Type of Follow
ids
- user/artist
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited