Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasReumann authored Aug 7, 2021
1 parent e2ace02 commit 6141c5c
Showing 1 changed file with 50 additions and 12 deletions.
62 changes: 50 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,55 @@ dependencies {

## Volumes

### Get volumes

```
suspend fun main() {
val volumeHelper = VolumeHelper("API_KEY")
volumeHelper.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 = volumeHelper.get()
val volumeHelper = VolumeHelper("API_KEY")
volumeHelper.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 = volumeHelper.get()
```

### Get specific volume

```
val volumeHelper = VolumeHelper("API_KEY")
val volume = volumeHelper.getSpecific("wVyWswEACAAJ")
```

## Bookshelves

### Get bookshelves

```
val bookshelfHelper = BookshelfHelper("API_KEY")
bookshelfHelper.userID("1164450273332089480971")
val bookshelves = bookshelfHelper.get()
```

### Get specific bookshelf

```
val bookshelfHelper = BookshelfHelper("API_KEY")
bookshelfHelper.userID("1164450273332089480971")
val bookshelf = bookshelfHelper.getSpecific(3)
```

### Get volumes in bookshelf

```
val bookshelfHelper = BookshelfHelper("API_KEY")
bookshelfHelper.userID("1164450273332089480971")
val volumes = bookshelfHelper.getVolumesInBookshelf(3)
```

0 comments on commit 6141c5c

Please sign in to comment.