public static function send($data, $useMasterKey = false)
    {
        if (isset($data['expiration_time']) && isset($data['expiration_interval']))
        {
            throw new \Exception('Both expiration_time and expiration_interval can\'t be set.');
        }
        if (isset($data['where']))
        {
            if ($data['where'] instanceof AVQuery)
            {
                $data['where'] = $data['where']->_getOptions()['where'];
            } else
            {
                throw new \Exception('Where parameter for Avos Push must be of type AVQuery');
            }
        }
        if (isset($data['push_time']))
        {
            //Local push date format is different from iso format generally used in Avos
            //Schedule does not work if date format not correct
            $data['push_time'] = AVClient::getLocalPushDateFormat($data['push_time']);
        }
        if (isset($data['expiration_time']))
        {
            $data['expiration_time'] = AVClient::_encode($data['expiration_time'], false)['iso'];
        }

        return AVClient::_request('POST', '/push', null, json_encode($data), $useMasterKey);
    }