View Source Sptfy.Search (Sptfy v0.1.5)

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

Parameters

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

search_artist(token, params \\ %{})

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

Parameters

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

search_episode(token, params \\ %{})

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

Parameters

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

search_playlist(token, params \\ %{})

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

Parameters

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

search_show(token, params \\ %{})

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

Parameters

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

search_track(token, params \\ %{})

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

Parameters

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