public function recommendedFor($query)
    {
        $requestOptions = [
            'scope' => 'pins',
            'query' => $query,
        ];

        $result = $this->get(UrlBuilder::RESOURCE_SEARCH, $requestOptions);

        return empty($result) ? [] : $this->getKeywordsFromRequest($result);
    }
public function recommendedFor($query)
    {
        $requestOptions = [
            'scope' => 'pins',
            'query' => $query,
        ];

        $result = $this->get(UrlBuilder::RESOURCE_SEARCH, $requestOptions);

        return empty($result) ? [] : $this->getKeywordsFromRequest($result);
    }
public function recommendedFor ( $ query ) { $ requestOptions = [ 'scope' => 'pins' , 'query' => $ query , ] ; $ result = $ this -> get ( UrlBuilder :: RESOURCE_SEARCH , $ requestOptions ) ; return empty ( $ result ) ? [ ] : $ this -> getKeywordsFromRequest ( $ result ) ; }
Get recommendations for query word.

@param string $query
@return array|bool
Get recommendations for query word .