Rocksky.Actor (Rocksky v0.1.0)

Copy Markdown View Source

app.rocksky.actor.* endpoints.

All functions take the client as the first argument and a keyword list of parameters. They return {:ok, body} or {:error, %Rocksky.Error{}}.

Summary

Functions

Albums an actor has scrobbled. Params: :did, :limit, :offset, :startDate, :endDate.

Artists an actor has scrobbled. Params: :did, :limit, :offset, :startDate, :endDate.

Compatibility score between the authenticated user and another actor. Params: :did.

Songs an actor has loved. Params: :did, :limit, :offset.

Musical neighbours of an actor. Params: :did.

Playlists for an actor. Params: :did, :limit, :offset.

Scrobbles for an actor. Params: :did, :limit, :offset.

Songs an actor has scrobbled. Params: :did, :limit, :offset, :startDate, :endDate.

Fetch a profile by DID or handle (:did).

Functions

get_actor_albums(client, params \\ [])

Albums an actor has scrobbled. Params: :did, :limit, :offset, :startDate, :endDate.

get_actor_artists(client, params \\ [])

Artists an actor has scrobbled. Params: :did, :limit, :offset, :startDate, :endDate.

get_actor_compatibility(client, params \\ [])

Compatibility score between the authenticated user and another actor. Params: :did.

get_actor_loved_songs(client, params \\ [])

Songs an actor has loved. Params: :did, :limit, :offset.

get_actor_neighbours(client, params \\ [])

Musical neighbours of an actor. Params: :did.

get_actor_playlists(client, params \\ [])

Playlists for an actor. Params: :did, :limit, :offset.

get_actor_scrobbles(client, params \\ [])

Scrobbles for an actor. Params: :did, :limit, :offset.

get_actor_songs(client, params \\ [])

Songs an actor has scrobbled. Params: :did, :limit, :offset, :startDate, :endDate.

get_profile(client, params \\ [])

@spec get_profile(
  Rocksky.Client.t(),
  keyword()
) :: {:ok, map()} | {:error, Rocksky.Error.t()}

Fetch a profile by DID or handle (:did).