Add initial spotify client implementation

This commit is contained in:
Deluan
2020-10-18 13:23:02 -04:00
committed by Deluan Quintão
parent eb74dad7cd
commit 19ead8f7e8
7 changed files with 977 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
package spotify
type SearchResults struct {
Artists ArtistsResult `json:"artists"`
}
type ArtistsResult struct {
HRef string `json:"href"`
Items []Artist `json:"items"`
}
type Artist struct {
Genres []string `json:"genres"`
HRef string `json:"href"`
ID string `json:"id"`
Images []Image `json:"images"`
Name string `json:"name"`
}
type Image struct {
URL string `json:"url"`
Width int `json:"width"`
Height int `json:"height"`
}
type Error struct {
Code string `json:"error"`
Message string `json:"error_description"`
}