Class LbPopularityApi

java.lang.Object
org.hihn.listenbrainz.LbPopularityApi

public class LbPopularityApi extends Object
  • Constructor Details

    • LbPopularityApi

      public LbPopularityApi()
    • LbPopularityApi

      public LbPopularityApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • artist

      public LbPopularityApi.APIartistRequest artist(ArtistRequest artistRequest)
      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

      public LbPopularityApi.APIrecordingRequest recording(RecordingRequest recordingRequest)
      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

      public LbPopularityApi.APIreleaseRequest release(ReleaseRequest releaseRequest)
      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

      public LbPopularityApi.APIreleaseGroupRequest releaseGroup(ReleaseGroupRequest releaseGroupRequest)
      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

      public LbPopularityApi.APItopRecordingsForArtistRequest 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.
      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

      public LbPopularityApi.APItopReleaseGroupForArtistRequest topReleaseGroupForArtist(UUID artistMbid)
      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. -