Spotify Web API v0.4.0 Spotify.Image View Source

An object containing image information.

Spotify Docs

Link to this section Summary

Types

The image height in pixels. If unknown: null or not returned

t()

The full Image object

The source URL of the image

The image width in pixels. If unknown: null or not returned

Functions

Returns each Object Models’ model for json decoding

Link to this section Types

Link to this type height() View Source
height() :: integer()

The image height in pixels. If unknown: null or not returned.

Link to this type t() View Source
t() :: %Spotify.Image{height: Spotify.Image.height() | nil, url: Spotify.Image.url() | nil, width: Spotify.Image.width() | nil}

The full Image object.

Contains all the values listed in the Spotify Docs

The source URL of the image.

Link to this type width() View Source
width() :: integer()

The image width in pixels. If unknown: null or not returned.

Link to this section Functions

Returns each Object Models’ model for json decoding.

This callback is passed into Poison.decode :as option for formatting incoming json as structs. Each Object Model should implement it, and nest other Object Models’ as functions in their own as needed.

Callback implementation for Spotify.ObjectModel.as/0.