package spotify_ml
-
spotify_ml
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type simplifiedArtist = {
external_urls : externalUrl;
href : string;
id : string;
name : string;
item_type : string;
uri : string;
}
type album = {
album_type : string;
total_tracks : int;
available_markets : string list;
external_urls : externalUrl;
href : string;
id : string;
images : imageObject list;
name : string;
release_date : string;
release_date_precision : string;
restrictions : restrictions option;
item_type : string;
uri : string;
artists : simplifiedArtist list;
}
type artist = {
external_urls : externalUrl;
followers : followers option;
genres : string list option;
href : string;
id : string;
images : imageObject list option;
name : string;
popularity : int option;
item_type : string;
uri : string;
}
type track = {
album : album;
artists : artist list;
available_markets : string list;
disc_number : int;
duration_ms : int;
explicit : bool;
external_ids : external_ids;
external_urls : externalUrl;
href : string;
id : string;
is_playable : bool option;
linked_from : linked_from option;
restrictions : restrictions option;
name : string;
popularity : int;
preview_url : string option;
track_number : int;
track_type : string;
uri : string;
is_local : bool;
}
type userTopTracksResponse = {
href : string;
limit : int;
next : string option;
offset : int;
previous : string option;
total : int;
items : track list;
}
type userTopArtistsResponse = {
href : string;
limit : int;
next : string option;
offset : int;
previous : string option;
total : int;
items : artist list;
}
val user_top_tracks :
client:Client.t ->
user:User.t ->
(userTopTracksResponse * User.t, Serde.error) result Lwt.t
Returns the users' top tracks and also an updated User object.