Last active
April 20, 2020 10:50
-
-
Save l0l3r/4087ccadc49faffe6b920eb4bc9708b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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