/var/www/flurhymez/vendor/google/apiclient-services/src/Books/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/Books/Resource/Bookshelves.php (2353B)
* $booksService = new Google\Service\Books(...);
* $bookshelves = $booksService->bookshelves;
*
*/
class Bookshelves extends \Google\Service\Resource
{
/**
* Retrieves metadata for a specific bookshelf for the specified user.
* (bookshelves.get)
*
* @param string $userId ID of user for whom to retrieve bookshelves.
* @param string $shelf ID of bookshelf to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return Bookshelf
*/
public function get($userId, $shelf, $optParams = [])
{
$params = ['userId' => $userId, 'shelf' => $shelf];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Bookshelf::class);
}
/**
* Retrieves a list of public bookshelves for the specified user.
* (bookshelves.listBookshelves)
*
* @param string $userId ID of user for whom to retrieve bookshelves.
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return BookshelvesModel
*/
public function listBookshelves($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], BookshelvesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bookshelves::class, 'Google_Service_Books_Resource_Bookshelves');