public function bookDetailsAction(ParamFetcher $paramFetcher)
    {
        $api_key = $this->getApiKey();

        // Prepare API URL, always ask for stats
        $bookId = $paramFetcher->get('bookId');
        $url = "http://isbndb.com/api/v2/json/$api_key/book/$bookId?opt=keystats";

        // Send request
        $result = $this->sendRequest($url);

        // Remove keyId if present
        unset($result['keystats']['key_id']);

        return $result;
    }
public function bookDetailsAction(ParamFetcher $paramFetcher)
    {
        $api_key = $this->getApiKey();

        // Prepare API URL, always ask for stats
        $bookId = $paramFetcher->get('bookId');
        $url = "http://isbndb.com/api/v2/json/$api_key/book/$bookId?opt=keystats";

        // Send request
        $result = $this->sendRequest($url);

        // Remove keyId if present
        unset($result['keystats']['key_id']);

        return $result;
    }
public function bookDetailsAction ( ParamFetcher $ paramFetcher ) { $ api_key = $ this -> getApiKey ( ) ; // Prepare API URL, always ask for stats $ bookId = $ paramFetcher -> get ( 'bookId' ) ; $ url = "http://isbndb.com/api/v2/json/$api_key/book/$bookId?opt=keystats" ; // Send request $ result = $ this -> sendRequest ( $ url ) ; // Remove keyId if present unset ( $ result [ 'keystats' ] [ 'key_id' ] ) ; return $ result ; }
Get book details from ISBNDB.

@param ParamFetcher $paramFetcher

@Get("book/details", options = { "expose" = true })

@QueryParam(name="bookId", description="ISBN, Title or ISBNDB Id of the book")
Get book details from ISBNDB .