src/M2X.php
public function get($path, $params = array(), $vars = array()) {
    $request = $this->request();
    $request = $this->prepareRequest($request);

    $response = $request->get($this->endpoint . $path, $params, $vars);
    return $this->handleResponse($response);
  }
public function get($path, $params = array(), $vars = array()) {
    $request = $this->request();
    $request = $this->prepareRequest($request);

    $response = $request->get($this->endpoint . $path, $params, $vars);
    return $this->handleResponse($response);
  }
public function get ( $ path , $ params = array ( ) , $ vars = array ( ) ) { $ request = $ this -> request ( ) ; $ request = $ this -> prepareRequest ( $ request ) ; $ response = $ request -> get ( $ this -> endpoint . $ path , $ params , $ vars ) ; return $ this -> handleResponse ( $ response ) ; }
Perform a GET request to the API.

@param string $path
@param array $params query parameters
@param array $vars request body
@return HttpResponse
@throws M2XException
Perform a GET request to the API .