Spotify
Last updated
Last updated
⇒
Set progress bar details
⇒
Set title
⇒
Establecer imagen
⇒
Set the name of the artist
⇒
Set the name of the album
⇒
Set start timestamp
⇒
Set end timestamp
Set background image/color of the card
Build the Spotify presence card
Kind: global class
Spotify card creator
Example
Set progress bar details
APIError
Invalid progress bar type
type
"TRACK"
| "BAR"
Type of progress bar
color
string
Color of the progress bar
Set title
APIError
Title expected but not received
title
string
Title of the song
Establecer imagen
APIError
Image source expected but not received
source
string
| Buffer
| Canvas.Image
Fuente de imagen
Set the name of the artist
APIError
Artist name expected but not received
name
string
Name of the artist
Set the name of the album
APIError
Album name expected but not received
name
string
Name of the album
Set start timestamp
APIError
Timestamp expected but not received
time
Date
| number
Timestamp
Set end timestamp
APIError
Timestamp expected but not received
time
Date
| number
Timestamp
Set background image/color of the card
APIError
Missing background data
type
"COLOR"
| "IMAGE"
Type of background
data
string
| Buffer
| Canvas.Image
Image URL or HTML color code
Promise.<Buffer>
Build the Spotify presence card
Kind: global function
Returns: Promise.<Buffer>
- Card image in buffer format
Throws:
APIError
Missing of options
[font]
string
""Arial""
Font to use in the card
⇒
⇒ Promise.<Buffer>
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws:
Kind: global function Returns: - The current instance of Spotify Throws: