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

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

Link to this function

build_categories(body, categories) View Source

Link to this function

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{}, ...]} }
Link to this function

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"

Link to this function

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{}}
Link to this function

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"