Spotify Web API v0.4.0 Spotify.Context View Source

A Context object.

Spotify Docs

Link to this section Summary

Types

External URLs for this context

A link to the Web API endpoint providing full details of the track

t()

The full Context object

The object type, e.g. artist, playlist, album

The Spotify URI for the context

Functions

Returns each Object Models’ model for json decoding

Link to this section Types

Link to this type external_urls() View Source
external_urls() :: Spotify.ExternalUrls.t()

External URLs for this context.

A link to the Web API endpoint providing full details of the track.

Link to this type t() View Source
t() :: %Spotify.Context{external_urls: Spotify.Context.external_urls() | nil, href: Spotify.Context.href() | nil, type: Spotify.Context.type() | nil, uri: Spotify.Context.uri() | nil}

The full Context object.

Contains all the values listed in the Spotify Docs

The object type, e.g. artist, playlist, album.

The Spotify URI for the context.

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.