Minecraft Blogs

How to retrieve Planetminecraft's Statistics

  • 8
  • 4
avatar fox_news
Level 60 : High Grandmaster Programmer
207
Hello,
    Due to a bombardment of questions on how to retrieve statistics of a post on PMC, I have created this tutorial. I'm going to keep this tutoiral very short and sweet. 





Every post (Server, Skin, Texture Pack, Mods, Blogs and Project) contains statistics that can be found below the slideshow:

undefined

Fortunately, Due to the creation of my Server Stats plugin, Cyprezz  implmented a JSON element that holds all the statistics of the post:

undefined

Just to be sure that we are on the same page,
   All you need to do is append "stats" to the end of the post URL (as seen above).

Change This:

undefined

To This:
undefined


And you will see the JSON element that cyprezz explained above:


undefined

You can retrieve a JSON element in almost any language like PHP, Java and Javascript.

Due to the mass number of examples on how to actually retrieve the values in code along with the many different languages out there, I will leave you with a StackOverflow example for JavaScript and a Java Example:

undefined

If you need help or do not understand please feel free to contact me.
Tags

2 Update Logs

Update #2 : 05/02/2014 4:05:20 pmMay 2nd, 2014

- fixed error in Java example
LOAD MORE LOGS
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome