Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = 'http://www.decredpool.org/index.php?page=api&action=getuserstatus&api_key=eb8aeaab3889cfe4af42f51c29730ffa294565682fc194ef3afe273411a9a0ee&id=3034';
- $data = json_decode(file_get_contents($url));
- $stats = $data['getuserstats']['data'];
- $username = $stats['username'];
- $shares = $stats['shares'];
- //wat is mis met $shares['invalid'] te gebruiken?
- $hash = $stats['hashrate'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement