getPosts(0,3,'video'); $oTumblr->getPosts(null,'all','regular'); $oTumblr->getPosts(null,null,null,36624807); /* You're quite done! Now, you can get the array that contain the result. / / function dumpArray($bChrono = false,$bDebug = false) / * Sort the array in chronological order if $bChrono is true, inverse if false. / * Return the array-formated content of the requests made to the API. / * If $bDebug = true, return raw decoded JSON from the last request in ['temp'] key of the array. This option was mainly created to help me while dev. /*/ $aTumblr = $oTumblr->dumpArray(); /* Execution time counter */ $nEndTime = microtime(true); $nExecTime = $nEndTime - $nStartTime; if ($aTumblr['stats']['num-inarray'] > 0) { $nExecTimePerPost = $nExecTime / $aTumblr['stats']['num-inarray']; } else { $nExecTimePerPost = 0; } header('Content-Type: text/plain; charset=utf-8'); echo $aTumblr['stats']['num-inarray'].' posts parsed in '.$nExecTime.'s, that means '.$nExecTimePerPost.'s per post !'."\n\n"; print_r($aTumblr); /* Important note : you can do as much getPosts request as you like! / It's impossible to have several times the same post in the array (array key composed with post's id and post's timestamp). /*/ ?>