Exspotify.Markets (Exspotify v0.1.0)

View Source

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

Summary

Functions

Get a list of countries in which Spotify is available. Returns a list of ISO 3166-1 alpha-2 country codes. https://developer.spotify.com/documentation/web-api/reference/get-available-markets

Functions

get_available_markets(token)

@spec get_available_markets(String.t()) ::
  {:ok, [String.t()]} | {:error, Exspotify.Error.t()}

Get a list of countries in which Spotify is available. Returns a list of ISO 3166-1 alpha-2 country codes. https://developer.spotify.com/documentation/web-api/reference/get-available-markets