Koen Bolhuis
67d9bf9632
Fix handling of HTTP 204 on statistics endpoints
...
The ListenBrainz API returns 204 and an empty document
when there are no statistics, which can't be parsed as
JSON. Therefore the return types of statistics endpoints
now includes an Option to reflect this.
2021-01-14 02:42:33 +01:00
Koen Bolhuis
cce6d09b35
Use better import form
2021-01-14 02:42:17 +01:00
Koen Bolhuis
16b7d643c9
Extract stats code to get_stats function
2021-01-13 17:28:12 +01:00
Koen Bolhuis
3588436e53
Run rustfmt
2021-01-13 14:28:59 +01:00
Koen Bolhuis
9581ce45cb
Box ureq::Error because it is 1000+ bytes
2021-01-13 14:28:28 +01:00
Koen Bolhuis
6c0eff415e
Implement StatsUserArtists
2021-01-13 14:15:32 +01:00
Koen Bolhuis
2bc3291a61
Implement StatsUserReleases
2021-01-13 14:11:11 +01:00
Koen Bolhuis
bd263af244
Implement StatsUserArtistMap
2021-01-13 14:02:23 +01:00
Koen Bolhuis
59491fc56f
Implement StatsUserRecordings
2021-01-13 13:58:32 +01:00
Koen Bolhuis
9c40b2522b
Implement StatsUserListeningActivity and StatsUserDailyActivity
2021-01-13 13:06:48 +01:00
Koen Bolhuis
7f5d67ba74
Document Error::ApiError fields
2021-01-13 13:05:50 +01:00
Koen Bolhuis
7d86beba29
Add categories field to Cargo.toml
2021-01-13 13:05:13 +01:00
Koen Bolhuis
ae0c47750a
Extract Client to client module
2021-01-13 11:52:58 +01:00
Koen Bolhuis
7988a483b3
Add LICENSE, README.md and Cargo.toml fields
2021-01-10 21:50:29 +01:00
Koen Bolhuis
22b04846b2
Implement StatsSitewideArtists endpoint
2021-01-10 21:42:40 +01:00
Koen Bolhuis
727ba956b7
Add doc comments for response model field types
2021-01-10 21:40:49 +01:00
Koen Bolhuis
7ef861f151
Add doc comments to models
2021-01-10 20:48:54 +01:00
Koen Bolhuis
ad89493233
Implement UserPlayingNowListen
2021-01-10 19:31:06 +01:00
Koen Bolhuis
14428576a8
Extract Error to error module
2021-01-10 19:30:03 +01:00
Koen Bolhuis
a3265dceac
Extract Endpoint to endpoint module
2021-01-10 19:22:50 +01:00
Koen Bolhuis
2d23b4cccf
Implement more endpoints
...
- users/{user_list}/recent-listens
- user/{user_name}/playing-now
- user/{user_name}/listens
- latest-import
2021-01-10 18:02:05 +01:00
Koen Bolhuis
d7b36ff18d
Rename Submission to SubmitListens
2021-01-09 17:03:03 +01:00
Koen Bolhuis
e82b685776
Initial commit
2021-01-09 04:36:14 +01:00