Exspotify.Categories (Exspotify v0.1.0)

View Source

Provides functions for interacting with the Categories endpoints of the Spotify Web API. See: https://developer.spotify.com/documentation/web-api/reference/categories

Summary

Functions

get_several_browse_categories(token, opts \\ [])

@spec get_several_browse_categories(
  String.t(),
  keyword()
) :: {:ok, Exspotify.Structs.Paging.t()} | {:error, Exspotify.Error.t()}

Get a list of categories used to tag items in Spotify (paginated). https://developer.spotify.com/documentation/web-api/reference/get-categories

get_single_browse_category(category_id, token, opts \\ [])

@spec get_single_browse_category(String.t(), String.t(), keyword()) ::
  {:ok, Exspotify.Structs.Category.t()} | {:error, Exspotify.Error.t()}

Get a single category used to tag items in Spotify. https://developer.spotify.com/documentation/web-api/reference/get-category