Add Last.FM Authentication methods

This commit is contained in:
Deluan
2021-06-10 23:54:20 -04:00
committed by Deluan Quintão
parent 73e1a8fa06
commit a4f91b74d2
5 changed files with 168 additions and 62 deletions
+8
View File
@@ -6,6 +6,8 @@ type Response struct {
TopTracks TopTracks `json:"toptracks"`
Error int `json:"error"`
Message string `json:"message"`
Token string `json:"token"`
Session Session `json:"session"`
}
type Artist struct {
@@ -59,3 +61,9 @@ type TopTracks struct {
Track []Track `json:"track"`
Attr Attr `json:"@attr"`
}
type Session struct {
Name string `json:"name"`
Key string `json:"key"`
Subscriber int `json:"subscriber"`
}