Exspotify.Structs.User (Exspotify v0.1.0)

View Source

Represents a user object from Spotify API.

Summary

Functions

Creates a User struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.User{
  country: String.t() | nil,
  display_name: String.t() | nil,
  email: String.t() | nil,
  explicit_content: map() | nil,
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  followers: Exspotify.Structs.Followers.t() | nil,
  href: String.t() | nil,
  id: String.t(),
  images: [Exspotify.Structs.Image.t()] | nil,
  product: String.t() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a User struct from a map (typically from JSON).