예제 #1
0
 /**
  *	
  */
 public function __construct($sAccountName, $sToken, $ciHTTPMethod, $sRESTURL, $bHTTPS = true)
 {
     $sBpDomain = "basecamphq.com";
     $this->_sAccountName = $sAccountName;
     $this->_iHTTPMethod = $ciHTTPMethod;
     $this->_sRESTURL = $sRESTURL;
     if ($bHTTPS) {
         $this->_sProtocol = "https";
     } else {
         $this->_sProtocol = "http";
     }
     $this->_sURL = $this->_sProtocol . "://" . $this->_sAccountName . "." . $sBpDomain . $this->_sRESTURL;
     $this->_iContentLength = 0;
     $this->_oConnection = new CHTTPCurl($this->_sURL, $this->_iHTTPMethod, $sToken, "X");
     parent::__construct();
 }