public function getSimilarItems($items, $itemCount = 3)
    {
        if (!is_array($items)) {
            $items = [$items];
        }

        $response = $this->sendQuery(['items' => $items, 'num' => intval($itemCount)]);

        return $response;
    }
public function getSimilarItems($items, $itemCount = 3)
    {
        if (!is_array($items)) {
            $items = [$items];
        }

        $response = $this->sendQuery(['items' => $items, 'num' => intval($itemCount)]);

        return $response;
    }
public function getSimilarItems ( $ items , $ itemCount = 3 ) { if ( ! is_array ( $ items ) ) { $ items = [ $ items ] ; } $ response = $ this -> sendQuery ( [ 'items' => $ items , 'num' => intval ( $ itemCount ) ] ) ; return $ response ; }
Returns the items similar to the given item.

@param string $items
@param int    $itemCount

@return string JSON response
Returns the items similar to the given item .