Spotify Web API v0.4.0 Spotify.Credentials View Source

Represents the return body from the Spotify authorization endpoint.

Spotify Docs

Link to this section Summary

Types

t()

The Spotify authorization return body

Functions

Format credentials into a HTTP Header tuple for authorization use

Link to this section Types

Link to this type t() View Source
t() :: %Spotify.Credentials{access_token: String.t(), expires_in: integer(), refresh_token: String.t(), scope: String.t(), token_type: String.t()}

The Spotify authorization return body.

Link to this section Functions

Link to this function format_header(creds) View Source
format_header(t()) :: {String.t(), String.t()}

Format credentials into a HTTP Header tuple for authorization use.