Skip to content

Instantly share code, notes, and snippets.

@ironviking
ironviking / gist:3034265
Created July 2, 2012 16:58
Minebook API
<?php
//Get the data
$grab = file_get_contents("http://api.minebook.me/player/ironviking/wall");
//Decode the json to a associative array
$data = json_decode($grab,true);
//How many messages to grab? (will grab 10)
$take = 10;
//While x (0) is less then take (10)
for($x = 0; $x < $take; $x++;){
//Echo it out from the array