mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-30 07:10:35 +00:00
17 lines
348 B
PHP
17 lines
348 B
PHP
<?php
|
|
|
|
// https://alcurex.org/index.php/crypto/api_documentation
|
|
|
|
function alcurex_api_query($method, $params='')
|
|
{
|
|
$uri = "https://alcurex.org/api/$method.php$params";
|
|
// debuglog("$uri");
|
|
|
|
$ch = curl_init($uri);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
|
$execResult = curl_exec($ch);
|
|
$obj = json_decode($execResult);
|
|
|
|
return $obj;
|
|
}
|