Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FetchGenre ¶
FetchGenre does a search for artists with the given genre, fetches the first 20 pages of search results, and returns up to 1000 artists.
The request is basically,
https://api.spotify.com/v1/search?query=genre:GENRE&type=artist
FetchGenre respects Spotify's documented semantics around its rate limiter: checking for a Retry-After header when it receives a 429 response. If FetchGenre is rate limited, it won't error, but it might take a long time.
Click to show internal directories.
Click to hide internal directories.