File: fetch.go

package info (click to toggle)
golang-github-kori-go-listenbrainz 0.0~git20190329.2d7276a-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 100 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
package listenbrainz

import "net/http"

func GetListenHistory(user string, count int) (*http.Response, error) {
	url := "https://api.listenbrainz.org/1/user/" + user + "/listens"

	return http.Get(url)
}