ios – Get a preview link for some book from GoogleBook

0
35

[ad_1]

How can I get a preview link for any book from GoogleBook? https://developers.google.com/books/docs/v1/using

For example how I get some fields from there with google-books-api:
let booksUrl = “https://www.googleapis.com/books/v1/volumes”
let bookQueryTemplate = [
URLQueryItem(name: “fields”, value: “items(id,volumeInfo(title, authors, imageLinks))”)
]
let session = URLSession.shared

    var query = bookQueryTemplate
    query.append(URLQueryItem(name: "q", value: someText))
    ... and so on with json request. It works with title, authors and atc

But dont understand how to get link for preview book.
Thanks for your help!

[ad_2]