spotify_ex v2.0.9 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
https://developer.spotify.com/web-api/browse-endpoints/
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
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 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 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 a single category used to tag items in Spotify
iex> Spotify.Category.get_category_url(“4”) “https://api.spotify.com/v1/browse/categories/4”