Skip to content

Commit

Permalink
fix required by mtgox api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
btcgear committed Mar 29, 2013
1 parent 3fbdf09 commit fba44ca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions upload/catalog/controller/payment/bitcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function checkUpdate() {
}

public function runUpdate() {
$path = "1/BTCUSD/public/ticker";
$path = "1/BTCUSD/ticker";
$req = array();

// API settings
Expand All @@ -169,10 +169,7 @@ public function runUpdate() {
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MtGox PHP client; '.php_uname('s').'; PHP/'.phpversion().')');
}
curl_setopt($ch, CURLOPT_URL, 'https://mtgox.com/api/'.$path);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, 'http://data.mtgox.com/api/'.$path);

// run the query
$res = curl_exec($ch);
Expand Down

0 comments on commit fba44ca

Please sign in to comment.