I have a API client to make a PHP call. But as a matter of fact the documentation given with the API is very limited, so I don't really know how to use it. This a part of the API code:
$name = readline("Name: ");
$id = readline("ID: ");
$data = $name.$id;
$test = new PoW(sha1($name.$id));
echo "Original data: " . $data . "\n";
echo "data: " . $test->data . "\n";
echo "nonce: " . $test->nonce . "\n";
echo "hash: " . $test->hash . "\n";
$result = file_get_contents("https://test.com/api/search.php?mode=pow&hash={$test->data}&nonce={$test->nonce}");
echo "\n" . $result . "\n";
I don't know what is nonce and how does it works.