Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/noppefoxwolf/amg
- Owner: noppefoxwolf
- Created: 2019-04-10T08:19:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T16:09:35.000Z (almost 6 years ago)
- Last Synced: 2024-05-02T05:45:47.054Z (9 months ago)
- Topics: apple-music, apple-music-api
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```