Sptfy.Follow (Sptfy v0.1.3) View Source

https://developer.spotify.com/documentation/web-api/reference-beta/#category-follow

Link to this section Summary

Functions

GET /v1/playlists/:id/followers/contains

PUT /v1/playlists/:id/followers

PUT /v1/me/following

DELETE /v1/me/following

DELETE /v1/playlists/:id/followers

DELETE /v1/me/following

Link to this section Functions

Link to this function

check_my_artist_following_state(token, params \\ %{})

View Source

Specs

check_my_artist_following_state(
  token :: String.t(),
  params :: map() | Keyword.t()
) ::
  {:ok, [boolean()]}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/me/following/contains

Parameters

  • ids: required
Link to this function

check_my_user_following_state(token, params \\ %{})

View Source

Specs

check_my_user_following_state(
  token :: String.t(),
  params :: map() | Keyword.t()
) ::
  {:ok, [boolean()]}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/me/following/contains

Parameters

  • ids: required
Link to this function

check_playlist_following_state(token, params \\ %{})

View Source

Specs

check_playlist_following_state(
  token :: String.t(),
  params :: map() | Keyword.t()
) ::
  {:ok, [boolean()]}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/playlists/:id/followers/contains

Parameters

  • id: required
  • ids: required
Link to this function

follow_artists(token, params \\ %{})

View Source

Specs

follow_artists(token :: String.t(), params :: map() | Keyword.t()) ::
  :ok | {:error, Sptfy.Object.Error.t()} | {:error, Mint.Types.error()}

PUT /v1/me/following

Parameters

  • ids: required
Link to this function

follow_playlist(token, params \\ %{})

View Source

Specs

follow_playlist(token :: String.t(), params :: map() | Keyword.t()) ::
  :ok | {:error, Sptfy.Object.Error.t()} | {:error, Mint.Types.error()}

PUT /v1/playlists/:id/followers

Parameters

  • id: required
  • public
Link to this function

follow_users(token, params \\ %{})

View Source

Specs

follow_users(token :: String.t(), params :: map() | Keyword.t()) ::
  :ok | {:error, Sptfy.Object.Error.t()} | {:error, Mint.Types.error()}

PUT /v1/me/following

Parameters

  • ids: required
Link to this function

get_my_following_artists(token, params \\ %{})

View Source

Specs

get_my_following_artists(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Paging.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/me/following

Parameters

  • after
  • limit
Link to this function

unfollow_artists(token, params \\ %{})

View Source

Specs

unfollow_artists(token :: String.t(), params :: map() | Keyword.t()) ::
  :ok | {:error, Sptfy.Object.Error.t()} | {:error, Mint.Types.error()}

DELETE /v1/me/following

Parameters

  • ids: required
Link to this function

unfollow_playlist(token, params \\ %{})

View Source

Specs

unfollow_playlist(token :: String.t(), params :: map() | Keyword.t()) ::
  :ok | {:error, Sptfy.Object.Error.t()} | {:error, Mint.Types.error()}

DELETE /v1/playlists/:id/followers

Parameters

  • id: required
Link to this function

unfollow_users(token, params \\ %{})

View Source

Specs

unfollow_users(token :: String.t(), params :: map() | Keyword.t()) ::
  :ok | {:error, Sptfy.Object.Error.t()} | {:error, Mint.Types.error()}

DELETE /v1/me/following

Parameters

  • ids: required