protected function execSearchRequest($query, $scope)
    {
        $url = $this->getResponse()->hasBookmarks() ?
            UrlBuilder::RESOURCE_SEARCH_WITH_PAGINATION :
            UrlBuilder::RESOURCE_SEARCH;

        $requestOptions = [
            'scope' => $scope,
            'query' => $query,
        ];

        $this->get($url, $requestOptions);

        return new SearchResponse(
            $this->getResponse()->getRawData()
        );
    }
protected function execSearchRequest($query, $scope)
    {
        $url = $this->getResponse()->hasBookmarks() ?
            UrlBuilder::RESOURCE_SEARCH_WITH_PAGINATION :
            UrlBuilder::RESOURCE_SEARCH;

        $requestOptions = [
            'scope' => $scope,
            'query' => $query,
        ];

        $this->get($url, $requestOptions);

        return new SearchResponse(
            $this->getResponse()->getRawData()
        );
    }
protected function execSearchRequest ( $ query , $ scope ) { $ url = $ this -> getResponse ( ) -> hasBookmarks ( ) ? UrlBuilder :: RESOURCE_SEARCH_WITH_PAGINATION : UrlBuilder :: RESOURCE_SEARCH ; $ requestOptions = [ 'scope' => $ scope , 'query' => $ query , ] ; $ this -> get ( $ url , $ requestOptions ) ; return new SearchResponse ( $ this -> getResponse ( ) -> getRawData ( ) ) ; }
Executes search to API. Query - search string.

@param string $query
@param string $scope
@return SearchResponse
Executes search to API . Query - search string .