Sptfy.Search (Sptfy v0.1.3) View Source

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

Link to this section Summary

Link to this section Functions

Link to this function

search_album(token, params \\ %{})

View Source

Specs

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

GET /v1/search

Parameters

  • q: required
  • market
  • limit
  • offset
  • include_external
Link to this function

search_artist(token, params \\ %{})

View Source

Specs

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

GET /v1/search

Parameters

  • q: required
  • market
  • limit
  • offset
  • include_external
Link to this function

search_episode(token, params \\ %{})

View Source

Specs

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

GET /v1/search

Parameters

  • q: required
  • market
  • limit
  • offset
  • include_external
Link to this function

search_playlist(token, params \\ %{})

View Source

Specs

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

GET /v1/search

Parameters

  • q: required
  • market
  • limit
  • offset
  • include_external
Link to this function

search_show(token, params \\ %{})

View Source

Specs

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

GET /v1/search

Parameters

  • q: required
  • market
  • limit
  • offset
  • include_external
Link to this function

search_track(token, params \\ %{})

View Source

Specs

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

GET /v1/search

Parameters

  • q: required
  • market
  • limit
  • offset
  • include_external