lithium\net\http\Service::get PHP Method

get() public method

Send GET request.
public get ( string $path = null, array $data = [], array $options = [] ) : string
$path string
$data array
$options array
return string
    public function get($path = null, $data = array(), array $options = array())
    {
        $defaults = array('type' => false);
        return $this->send(__FUNCTION__, $path, $data, $options + $defaults);
    }

Usage Example

Esempio n. 1
0
 /**
  * Requests a token of a particular type
  *
  * @param string $query
  * @return array parameters sent from the response body
  */
 public function token($type, array $options = array())
 {
     $defaults = array('params' => array('client_id', 'client_secret'));
     $options = array_merge_recursive($options, $defaults);
     $this->_parseParams($options);
     $url = $this->_config[$type];
     $result = parent::get($url, $options['params']);
     return $result;
 }
All Usage Examples Of lithium\net\http\Service::get