A wrapper of the Google Books APIs written in Kotlin
val volumeHelper = VolumeHelper("API_KEY")
val request = VolumeRequest().apply {
inauthor("Michael Pollan")
inpublisher("Penguin")
intitle("This Is Your Mind On Plants")
sorting(SortOption.NEWEST)
printType(PrintTypeOption.BOOKS)
projection(ProjectionOption.FULL)
maxResults(3)
}
val volume: Volume = volumeHelper.get(request)
val volumeItem: VolumeItem = volumeHelper.getVolumeWithID("wVyWswEACAAJ")
val bookshelfHelper = BookshelfHelper("API_KEY")
val bookshelves: Bookshelf = bookshelfHelper.get("1112223334445556677")
val bookshelf: BookshelfItem = bookshelfHelper.getBookshelfWithID("1112223334445556677", 1001)
val item: Volume = bookshelfHelper.getVolumesInBookshelf("1164450273332089480971", 1001)
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation 'com.github.MatthiasReumann:googlebooksapi:master-SNAPSHOT'
}
allprojects {
repositories {
maven { url = uri("https://www.jitpack.io") }
}
}
dependencies {
implementation("com.github.MatthiasReumann:googlebooksapi:master-SNAPSHOT")
}