public function unsetItem($iid, array $properties, $eventTime=null)
    {
        $eventTime = $this->getEventTime($eventTime);
        if (empty($properties)) {
            throw new PredictionIOAPIError('Specify at least one property');
        }
        $json = json_encode([
            'event' => '$unset',
            'entityType' => 'item',
            'entityId' => $iid,
            'properties' => $properties,
            'eventTime' => $eventTime,
        ]);

        return $this->sendRequest('POST', $this->eventUrl, $json);
    }
public function unsetItem($iid, array $properties, $eventTime=null)
    {
        $eventTime = $this->getEventTime($eventTime);
        if (empty($properties)) {
            throw new PredictionIOAPIError('Specify at least one property');
        }
        $json = json_encode([
            'event' => '$unset',
            'entityType' => 'item',
            'entityId' => $iid,
            'properties' => $properties,
            'eventTime' => $eventTime,
        ]);

        return $this->sendRequest('POST', $this->eventUrl, $json);
    }
public function unsetItem ( $ iid , array $ properties , $ eventTime = null ) { $ eventTime = $ this -> getEventTime ( $ eventTime ) ; if ( empty ( $ properties ) ) { throw new PredictionIOAPIError ( 'Specify at least one property' ) ; } $ json = json_encode ( [ 'event' => '$unset' , 'entityType' => 'item' , 'entityId' => $ iid , 'properties' => $ properties , 'eventTime' => $ eventTime , ] ) ; return $ this -> sendRequest ( 'POST' , $ this -> eventUrl , $ json ) ; }
Unset an item entity

@param int|string Item Id
@param array Properties of the item entity to unset
@param string Time of the event in ISO 8601 format
(e.g. 2014-09-09T16:17:42.937-08:00).
Default is the current time.

@return string JSON response

@throws PredictionIOAPIError Request error
Unset an item entity