Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit a9d762c

Browse files
committed
Remove hard coded debugging and old code artifacts
1 parent fc47c49 commit a9d762c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/UnionCloud/Api.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function _curl($endpoint, $verb) {
4343
$curl->setDefaultJsonDecoder(true);
4444

4545
$curl->setURL("https://". $this->host . "/api" . $endpoint);
46-
//$curl->setOpt(CURLOPT_POSTFIELDS, json_encode($data, JSON_UNESCAPED_SLASHES));
4746

4847
if ($verb == "POST") {
4948
$curl->setOpt(CURLOPT_POST, true);
@@ -84,7 +83,6 @@ public function _get($endpoint, $get_fields = null) {
8483
$curl = $this->_curl($api_endpoint, "GET");
8584
$curl->exec();
8685

87-
//echo "<pre>". print_r($this->_curl_debug($curl), true) ."</pre>";
8886
return $curl;
8987
}
9088

@@ -97,7 +95,6 @@ public function _post($endpoint, $post_data, $get_fields = null) {
9795
$curl->setOpt(CURLOPT_POSTFIELDS, json_encode($post_data, JSON_UNESCAPED_SLASHES));
9896
$curl->exec();
9997

100-
//echo "<pre>". print_r($this->_curl_debug($curl), true) ."</pre>";
10198
return $curl;
10299
}
103100

@@ -110,7 +107,7 @@ public function _put($endpoint, $data) {
110107

111108
public function _delete($endpoint, $data = null) {
112109
$curl = $this->_curl($endpoint, "DELETE");
113-
$curl->exec();
110+
$curl->exec();
114111
return $curl;
115112
}
116113

@@ -278,7 +275,6 @@ public function event_all($mode = "standard") {
278275

279276
public function event_search($filters, $mode = "standard") {
280277
$curl = $this->_post("/events/search", ["data" => $filters], ["mode" => $mode]);
281-
echo $this->_curl_debug($curl, true);
282278
return $curl->response["data"];
283279
}
284280

0 commit comments

Comments
 (0)