Skip to content

Commit

Permalink
Merge pull request #154 from kwshimhyunbo: PUT Method added
Browse files Browse the repository at this point in the history
PUT Method added
  • Loading branch information
Jon Eyrick authored May 28, 2018
2 parents 3dce66e + eba32b5 commit 36031d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,12 @@ private function httpRequest(string $url, string $method = "GET", array $params
if ($method === "DELETE") {
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
}

// PUT Method
if ($method === "PUT") {
curl_setopt($curl, CURLOPT_PUT, true);
}

// proxy settings
if (is_array($this->proxyConf)) {
curl_setopt($curl, CURLOPT_PROXY, $this->getProxyUriString());
Expand Down

0 comments on commit 36031d4

Please sign in to comment.