pool/web/yaamp/core/exchange/jubi.php
Tanguy Pruvot d8fe695a46 Some constants for the btc addr, email and site url..
+ missing .gitignore / folder git keepers
2015-07-02 21:17:04 +02:00

20 lines
307 B
PHP

<?php
function jubi_api_query($method, $params)
{
$uri = "http://www.jubi.com/api/v1/$method$params";
// debuglog("$uri");
$ch = curl_init($uri);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$execResult = curl_exec($ch);
$obj = json_decode($execResult);
return $obj;
}