spotify_ex v2.2.1 Spotify.Category View Source
Functions for retrieving information about categories on Spotify.
There are two functions for each endpoint; one that actually makes the request, and one that provides the endpoint:
Spotify.Category.get_categories(conn, params) # makes the GET request
Spotify.Category.get_categories_url(params) # provides the url for the request
Link to this section Summary
Functions
Get a list of categories used to tag items in Spotify Spotify Documentation
Get a list of categories used to tag items in Spotify
Get a single category used to tag items in Spotify Spotify Documentation
Get a single category used to tag items in Spotify
Link to this section Functions
build_categories(body, categories) View Source
build_response(body) View Source
get_categories(conn, params \\ []) View Source
Get a list of categories used to tag items in Spotify Spotify Documentation
Method: GET
Optional Params: country
, locale
, limit
, offset
Spotify.Category.get_categories(conn, params)
# => { :ok, %Paging{items: [%Category{}, ...]} }
get_categories_url(params \\ []) View Source
Get a list of categories used to tag items in Spotify
iex> Spotify.Category.get_categories_url(country: "US") "https://api.spotify.com/v1/browse/categories?country=US"
get_category(conn, id, params \\ []) View Source
Get a single category used to tag items in Spotify Spotify Documentation
Method: GET
Optional Params: country
, locale
Spotify.Category.get_category(conn, id)
# => {:ok, %Category{}}
get_category_url(id, params \\ []) View Source
Get a single category used to tag items in Spotify
iex> Spotify.Category.get_category_url("4") "https://api.spotify.com/v1/browse/categories/4"