https://github.com/skippednote/grfind
https://github.com/skippednote/grfind
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skippednote/grfind
- Owner: skippednote
- Created: 2017-08-11T16:41:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-11T17:25:25.000Z (almost 9 years ago)
- Last Synced: 2024-12-30T08:11:32.419Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Goodreads Find
---
> Find books on goodreads using title, isbn or author.
### Install
`go get github.com/skippednote/grfind`
### Usages
```go
package main
import (
"encoding/json"
"log"
"os"
"github.com/skippednote/grfind"
)
func main() {
gr := grfind.GRfind{
Key: "GoodReads Key",
Secret: "GoodReads Secret",
}
books, err := gr.GetBooks("Elon Musk")
if err != nil {
log.Fatal(err)
}
// You can print the results
for _, v := range books {
log.Println(v.BestBook.Title)
}
// or return as JSON
json.NewEncoder(os.Stdout).Encode(books)
}
```