defmodule Spotifex do @moduledoc """ Provides access to the Spotify API. """ defdelegate configure(client_id, client_secret, redirect_uri), to: Spotifex.Config, as: :configure defdelegate configure, to: Spotifex.Config, as: :configure defdelegate configure(:global, token), to: Spotifex.Config, as: :configure defdelegate authorize_url!, to: Spotifex.OAuthStrategy, as: :authorize_url! defdelegate authorize_url!(scope), to: Spotifex.OAuthStrategy, as: :authorize_url! defdelegate authorize_url!(scope, state), to: Spotifex.OAuthStrategy, as: :authorize_url! defdelegate get_token!(code), to: Spotifex.OAuthStrategy, as: :get_token! ## - Profiles defdelegate me(token), to: Spotifex.API.Profiles, as: :me end