Skip to content

Instantly share code, notes, and snippets.

@l0l3r
Last active April 20, 2020 10:50
Show Gist options
  • Save l0l3r/4087ccadc49faffe6b920eb4bc9708b0 to your computer and use it in GitHub Desktop.
Save l0l3r/4087ccadc49faffe6b920eb4bc9708b0 to your computer and use it in GitHub Desktop.
<?php
$id = "sheniId";
$key = "sheniKey";
$sign = hash('sha256','balance' . $id . $key);
$response = file_get_contents('https://anypay.io/api/balance/' . $id . '?sign=' . $sign);
$data = json_decode($response);
echo $data->result->balance;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment