No description
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| author | ||
| book | ||
| internal/util | ||
| subject | ||
| author_test.go | ||
| book_test.go | ||
| CONTRIBUTING.md | ||
| go.mod | ||
| go.sum | ||
| LICENSE.md | ||
| main.go | ||
| README.md | ||
| subject_test.go | ||
OpenLibrary API client in Go
API client for OpenLibrary's API for searching books, authors etc.
Supported APIs
Feel free to submit patches to extend API coverage.
Books
- Search
- Get by ID
- Get by ISBN
Authors
- Get by ID
- Search
Subjects
- Get by ID or name
- Search
Usage
go get src.timharek.no/tim/openlibrary-go
Create a new client:
import (
"src.timharek.no/tim/openlibrary-go"
"src.timharek.no/tim/openlibrary-go/book"
)
func something() (*book.SearchResult, error) {
ol := openlibrary.New()
searchResult, err := ol.Book.Search("sapiens")
if err != nil {
return nil, err
}
return searchResult, nil
}
Contributing
Anyone can contribute to openlibrary-go. Please refer to the contribution guidelines.
Send patches to the report bugs on the issue tracker.