Skip to content

Instantly share code, notes, and snippets.

@wrygiel wrygiel/users.php
Last active Nov 21, 2018

Embed
What would you like to do?
Hello OKAPI
<?php
$okapi_base_url = "https://opencaching.pl/okapi/";
$json = file_get_contents($okapi_base_url."services/apisrv/stats");
$data = json_decode($json);
print "Number of OpenCaching.PL users: ".$data->user_count;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.