Package org.hihn.listenbrainz
Class LbPopularityApi
java.lang.Object
org.hihn.listenbrainz.LbPopularityApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
class
class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartist
(ArtistRequest artistRequest) Get the total listen count and total unique listeners count for a given artist.int
recording
(RecordingRequest recordingRequest) Get the total listen count and total unique listeners count for a given recording.release
(ReleaseRequest releaseRequest) Get the total listen count and total unique listeners count for a given release.releaseGroup
(ReleaseGroupRequest releaseGroupRequest) Get the total listen count and total unique listeners count for a given release group.void
setApiClient
(ApiClient apiClient) void
setCustomBaseUrl
(String customBaseUrl) void
setHostIndex
(int hostIndex) topRecordingsForArtist
(UUID artistMbid) Get a list of all recordings ever pinned by a user with given user_name in descending order of the time they were originally pinned.topReleaseGroupForArtist
(UUID artistMbid) Get the top release groups by listen count for a given artist.
-
Constructor Details
-
LbPopularityApi
public LbPopularityApi() -
LbPopularityApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
artist
Get the total listen count and total unique listeners count for a given artist. A JSON document with a list of artists and inc string must be POSTed. Up to MAX_ITEMS_PER_GET items can be requested at once.- Parameters:
artistRequest
- (required)- Returns:
- APIartistRequest
- Http Response Details:
Status Code Description Response Headers 200 Feedback accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. -
-
recording
Get the total listen count and total unique listeners count for a given recording. A JSON document with a list of recording_mbids and inc string must be POSTed. Up to MAX_ITEMS_PER_GET items can be requested at once.- Parameters:
recordingRequest
- (required)- Returns:
- APIrecordingRequest
- Http Response Details:
Status Code Description Response Headers 200 Feedback accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. -
-
release
Get the total listen count and total unique listeners count for a given release. A JSON document with a list of releases and inc string must be POSTed. Up to MAX_ITEMS_PER_GET items can be requested at once.- Parameters:
releaseRequest
- (required)- Returns:
- APIreleaseRequest
- Http Response Details:
Status Code Description Response Headers 200 Feedback accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. -
-
releaseGroup
Get the total listen count and total unique listeners count for a given release group. A JSON document with a list of release groups and inc string must be POSTed. Up to MAX_ITEMS_PER_GET items can be requested at once.- Parameters:
releaseGroupRequest
- (required)- Returns:
- APIreleaseGroupRequest
- Http Response Details:
Status Code Description Response Headers 200 Feedback accepted. - 400 Invalid JSON sent. - 401 Invalid authorization. -
-
topRecordingsForArtist
Get a list of all recordings ever pinned by a user with given user_name in descending order of the time they were originally pinned.- Parameters:
artistMbid
- (required)- Returns:
- APItopRecordingsForArtistRequest
- Http Response Details:
Status Code Description Response Headers 200 Yay, you have data! - 400 Invalid query parameters, see error message for details. - 404 The requested user was not found. -
-
topReleaseGroupForArtist
Get the top release groups by listen count for a given artist.- Parameters:
artistMbid
- (required)- Returns:
- APItopReleaseGroupForArtistRequest
- Http Response Details:
Status Code Description Response Headers 200 Yay, you have data! - 400 Invalid query parameters, see error message for details. - 404 The requested user was not found. -
-