# -*- coding: utf-8 -*-
"""Module containing shelf resource class."""
from goodreads_api_client.exceptions import OauthEndpointNotImplemented
from goodreads_api_client.resources.base import Resource
[docs]class Shelf(Resource):
[docs] def add_to_shelf(self):
raise OauthEndpointNotImplemented('shelf.add_to_shelf')
[docs] def add_books_to_shelves(self):
raise OauthEndpointNotImplemented('shelf.add_books_to_shelves')
[docs] def list(self, user_id: str):
endpoint = 'shelf/list'
params = {
'user_id': user_id,
}
res = self._transport.req(endpoint=endpoint, params=params)
return res['shelves']