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

        // Prepare API URL, always ask for stats
        $query = $paramFetcher->get('query');
        $index = $paramFetcher->get('index');
        $page = $paramFetcher->get('page');
        $url = "http://isbndb.com/api/v2/json/$api_key/books?q=$query&i=$index&p=$page&opt=keystats";

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

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

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

        // Prepare API URL, always ask for stats
        $query = $paramFetcher->get('query');
        $index = $paramFetcher->get('index');
        $page = $paramFetcher->get('page');
        $url = "http://isbndb.com/api/v2/json/$api_key/books?q=$query&i=$index&p=$page&opt=keystats";

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

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

        return $result;
    }
public function bookSearchAction ( ParamFetcher $ paramFetcher ) { $ api_key = $ this -> getApiKey ( ) ; // Prepare API URL, always ask for stats $ query = $ paramFetcher -> get ( 'query' ) ; $ index = $ paramFetcher -> get ( 'index' ) ; $ page = $ paramFetcher -> get ( 'page' ) ; $ url = "http://isbndb.com/api/v2/json/$api_key/books?q=$query&i=$index&p=$page&opt=keystats" ; // Send request $ result = $ this -> sendRequest ( $ url ) ; // Remove keyId if present unset ( $ result [ 'keystats' ] [ 'key_id' ] ) ; return $ result ; }
Search in ISBNDB.

@Get("books/search", options = { "expose" = true })

@QueryParam(name="query", description="Searched query")
@QueryParam(name="index", description="Index of the database used to search for the query", default="title")
@QueryParam(name="page", description="Page of returned results", requirements="\d+", default="1")

@return array

@throws HttpException
@throws \Exception
Search in ISBNDB .