spotify_ex v2.2.1 Spotify.Profile View Source

Endpoints for retrieving information about a user’s profile.

There are two functions for each endpoint, one that actually makes the request, and one that provides the endpoint:

  Spotify.Playist.create_playlist(conn, "foo", "bar") # makes the POST request.
  Spotify.Playist.create_playlist_url("foo", "bar") # provides the url for the request.

https://developer.spotify.com/web-api/user-profile-endpoints/

Link to this section Summary

Functions

Implements the hook expected by the Responder behaviour

Get detailed profile information about the current user (including the current user’s username). Spotify Documentation

Get detailed profile information about the current user (including the current user’s username)

Get public profile information about a Spotify user. Spotify Documentation

Get public profile information about a Spotify user

Link to this section Functions

Implements the hook expected by the Responder behaviour

Get detailed profile information about the current user (including the current user’s username). Spotify Documentation

Method: GET

Uses your auth token to find your profile.

Spotify.Profile.me(conn)
# => { :ok, %Spotify.Profile{..} }

Get detailed profile information about the current user (including the current user’s username).

iex> Spotify.Profile.me_url
"https://api.spotify.com/v1/me"

Get public profile information about a Spotify user. Spotify Documentation

Method: GET

Spotify.Profile.user(conn, "123")
# => { :ok, %Spotify.Profile{..} }

Get public profile information about a Spotify user.

iex> Spotify.Profile.user_url("123")
"https://api.spotify.com/v1/users/123"