Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noppefoxwolf/amg

Apple Music API client written in golang.
https://github.com/noppefoxwolf/amg

apple-music apple-music-api

Last synced: about 2 months ago
JSON representation

Apple Music API client written in golang.

Awesome Lists containing this project

README

        

# amg
Apple Music API client written in golang.

# Usage

```
func (t *oauthTransport) RoundTrip(r *http.Request) (*http.Response, error) {
r.Header.Set("Authorization", "Bearer xxxxx")
return http.DefaultTransport.RoundTrip(r)
}

c := &http.Client{Transport: &oauthTransport{}}
c2 := applemusic.NewClient(c)
params := &applemusic.GetAllStorefrontsParams{}
res, req, err := c2.StorefrontsAndLocalization.GetAllStorefronts(params)
```