Add ExternalInformation core service (not a great name, I know)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package lastfm
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@@ -27,7 +28,7 @@ type Client struct {
|
||||
}
|
||||
|
||||
// TODO SimilarArtists()
|
||||
func (c *Client) ArtistGetInfo(name string) (*Artist, error) {
|
||||
func (c *Client) ArtistGetInfo(ctx context.Context, name string) (*Artist, error) {
|
||||
params := url.Values{}
|
||||
params.Add("method", "artist.getInfo")
|
||||
params.Add("format", "json")
|
||||
|
||||
Reference in New Issue
Block a user