lastfm_client/api/
constants.rs1pub const BASE_URL: &str = "https://ws.audioscrobbler.com/2.0/";
3
4pub const METHOD_RECENT_TRACKS: &str = "user.getrecenttracks";
6
7pub const METHOD_LOVED_TRACKS: &str = "user.getlovedtracks";
9
10pub const METHOD_TOP_TRACKS: &str = "user.gettoptracks";
12
13pub const METHOD_TOP_ARTISTS: &str = "user.gettopartists";
15
16pub const METHOD_TOP_ALBUMS: &str = "user.gettopalbums";
18
19pub const METHOD_USER_INFO: &str = "user.getinfo";
21
22pub const METHOD_TOP_TAGS: &str = "user.gettoptags";
24
25pub const METHOD_WEEKLY_CHART_LIST: &str = "user.getweeklychartlist";
27
28pub const METHOD_WEEKLY_TRACK_CHART: &str = "user.getweeklytrackchart";
30
31pub const METHOD_WEEKLY_ARTIST_CHART: &str = "user.getweeklyartistchart";
33
34pub const METHOD_WEEKLY_ALBUM_CHART: &str = "user.getweeklyalbumchart";
36
37pub const METHOD_FRIENDS: &str = "user.getfriends";
39
40pub const METHOD_PERSONAL_TAGS: &str = "user.getpersonaltags";
42
43pub const API_MAX_LIMIT: u32 = 1000;
45
46pub const CHUNK_MULTIPLIER: u32 = 5;
48
49pub const CHUNK_SIZE: u32 = API_MAX_LIMIT * CHUNK_MULTIPLIER;