protected function createRequest($path) {
    $this->loadCredentials();

    $uri = $this->endpoint . '/' . ltrim($path, '/');

    $request = new HTTP_Request2($uri);
    $request->setConfig('follow_redirects', TRUE);
    $request->setAuth($this->mail, $this->key);

    return $request;
  }
protected function createRequest($path) {
    $this->loadCredentials();

    $uri = $this->endpoint . '/' . ltrim($path, '/');

    $request = new HTTP_Request2($uri);
    $request->setConfig('follow_redirects', TRUE);
    $request->setAuth($this->mail, $this->key);

    return $request;
  }
protected function createRequest ( $ path ) { $ this -> loadCredentials ( ) ; $ uri = $ this -> endpoint . '/' . ltrim ( $ path , '/' ) ; $ request = new HTTP_Request2 ( $ uri ) ; $ request -> setConfig ( 'follow_redirects' , TRUE ) ; $ request -> setAuth ( $ this -> mail , $ this -> key ) ; return $ request ; }
Build an HTTP request object against the Acquia Cloud API.

@param $path
@return HTTP_Request2
Build an HTTP request object against the Acquia Cloud API .