Discover Packages
github.com/Yuruh/Self_Tracker
src
spotify
package
Version:
v0.0.0-...-807dce9
Opens a new window with list of versions in this module.
Published: Mar 2, 2020
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Album struct {
Artists []Artist `json:"artists"`
Name string `json:"name"`
Uri string `json:"uri"`
}
type Artist struct {
Name string `json:"name"`
Id string `json:"id"`
Uri string `json:"uri"`
}
type Connector struct {
AccessToken string
RefreshToken string
RetryAmount int8
}
type Player struct {
ProgressMs int64 `json:"progress_ms"`
Item Track `json:"item"`
}
type RegisterTokenRequest struct {
Code string `json:"code"`
State string `json:"state"`
}
type TokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn uint32 `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
}
type Track struct {
Name string `json:"name"`
Id string `json:"id"`
Uri string `json:"uri"`
Artists []Artist `json:"artists"`
Album Album `json:"album"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.