Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZ99 committed Dec 4, 2016
1 parent 01c067d commit 60aa060
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/Management/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,6 @@ public function managementApiCall($method = 'GET', $entryPoint = '', $params = n
}

$serverResponse = $this->talkToServer($method, $url, $headers, $data);




// if (is_array($params) && sizeof($params) > 0) {
// $url .= '?'.http_build_query($params);
// }

// $session = curl_init($url);
// curl_setopt($session, CURLOPT_CUSTOMREQUEST, $method);
// curl_setopt($session, CURLOPT_HEADER, false);
// curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Tell curl to return the response
// curl_setopt($session, CURLOPT_HTTPHEADER, $headers); // Adding request headers

// if (in_array($method, array('POST', 'PUT'))) {
// curl_setopt($session, CURLOPT_POSTFIELDS, $data);
// }

// $response = curl_exec($session);
// $statusCode = curl_getinfo($session, CURLINFO_HTTP_CODE);
// curl_close($session);

$statusCode = $serverResponse['statusCode'];
$contentResponse = $serverResponse['contentResponse'];

Expand Down Expand Up @@ -165,8 +143,4 @@ protected function talkToServer($method, $url, $headers, $data)

}

private function sayHello(){

}

}

0 comments on commit 60aa060

Please sign in to comment.