View Source Sptfy.Follow (Sptfy v0.1.5)

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
@spec 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

Parameters

  • ids: required
Link to this function

check_my_user_following_state(token, params \\ %{})

View Source
@spec 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

Parameters

  • ids: required
Link to this function

check_playlist_following_state(token, params \\ %{})

View Source
@spec 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

Parameters

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

follow_artists(token, params \\ %{})

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

PUT /v1/me/following

parameters

Parameters

  • ids: required
Link to this function

follow_playlist(token, params \\ %{})

View Source
@spec 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

Parameters

  • id: required
  • public
Link to this function

follow_users(token, params \\ %{})

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

PUT /v1/me/following

parameters

Parameters

  • ids: required
Link to this function

get_my_following_artists(token, params \\ %{})

View Source
@spec 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

Parameters

  • after
  • limit
Link to this function

unfollow_artists(token, params \\ %{})

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

DELETE /v1/me/following

parameters

Parameters

  • ids: required
Link to this function

unfollow_playlist(token, params \\ %{})

View Source
@spec 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

Parameters

  • id: required
Link to this function

unfollow_users(token, params \\ %{})

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

DELETE /v1/me/following

parameters

Parameters

  • ids: required