_request() 보호된 메소드

Process a request
protected _request ( string $api, string $path, string $method, array $params = [], integer $version = null, string $httpMethod = 'get' ) : stdClass
$api string
$path string
$method string
$params array
$version integer
$httpMethod string
리턴 stdClass array bool
예제 #1
0
 protected function _request($api, $path, $method, $params = array(), $version = null, $httpMethod = 'get')
 {
     if ($this->_authApi->isConnected()) {
         if (!is_array($params)) {
             if (!empty($params)) {
                 $params = array($params);
             } else {
                 $params = array();
             }
         }
         $params['_sid'] = $this->_authApi->getSessionId();
         return parent::_request($api, $path, $method, $params, $version, $httpMethod);
     }
     throw new Synology_Exception('Not Connected');
 }