LibraryAgent
import { LibraryAgent } from "https://googleapis.deno.dev/v1/libraryagent:v1.ts";
A simple Google Example Library API.
§Methods
Borrow a book from the library. Returns the book if it is borrowed successfully. Returns NOT_FOUND if the book does not exist in the library. Returns quota exceeded error if the amount of books borrowed exceeds allocation quota in any dimensions.
Required. The name of the book to borrow.
Gets a book. Returns NOT_FOUND if the book does not exist.
Required. The name of the book to retrieve.
Lists books in a shelf. The order is unspecified but deterministic. Newly created books will not necessarily be added to the end of this list. Returns NOT_FOUND if the shelf does not exist.
Required. The name of the shelf whose books we'd like to list.
Return a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the users didn't borrow before.
Required. The name of the book to return.
Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
Required. The name of the shelf to retrieve.
Lists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be added to the end of this list.