removed some garbage from pasted code

This commit is contained in:
Joshua Seigler 2016-06-26 12:00:44 -04:00
parent 07bb92ffbf
commit d430e3c749

View file

@ -1,5 +1,4 @@
<?php
// https://poloniex.com/public?command=returnChartData&currencyPair=BTC_XMR&start=1466740210&end=9999999999&period=300
class Util {
public static function getJson($url) {
@ -16,9 +15,7 @@ class Util {
# curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/VeriSignClass3PublicPrimaryCertificationAuthority-G5.pem");
$result = curl_exec($ch);
// $result = file_get_contents('https://api.flickr.com/services/feeds/photos_public.gne?id=50219999@N00&tags=Sketches&lang=en-us&format=json&nojsoncallback=1');
$result = json_decode($result) or trigger_error('Couldn\'t parse JSON');
# foreach ($result->items as $item) { }
return $result;
}
@ -35,6 +32,4 @@ class Util {
}
return $median;
}
}