tsirysndr / go-genius

Go library for accessing the Genius API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to go-genius πŸ‘‹ *** Work In Progress ***

GitHub code size in bytes GitHub go.mod Go version GitHub closed pull requests GitHub pull requests GitHub issues GitHub contributors License: BSD Twitter: tsiry_sndr

go-genius is a Go client library for accessing the Genius API

🚚 Install

go get github.com/tsirysndr/go-genius

πŸš€ Usage

Import the package into your project.

import "github.com/tsirysndr/go-genius"

Construct a new Genius client, then use the various services on the client to access different parts of the Genius API. For example:

client := genius.NewClient("<YOUR ACCESS TOKEN>")
res, _ := client.Search.Get("Kendrick Lamar")
hits, _ := json.Marshal(res)
fmt.Println(string(hits))

Coverage

Currently the following services are supported:

  • Search
  • Get artist
  • Get documents (songs) for the artist specified
  • Get referents
  • Get annotation
  • Get song
  • Web Pages

Author

πŸ‘€ Tsiry Sandratraina

Show your support

Give a ⭐️ if this project helped you!

About

Go library for accessing the Genius API

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%