getPosts(0,3,'video'); //$oTumblr->getPosts(null,'all','regular'); $oTumblr->getPosts(null,null,null,36624807); $oTumblr->getPosts(0,3,'image'); /* 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"; //var_dump($aTumblr['posts']); //echo count($aTumblr['posts']); $tst=$aTumblr['posts']; //print_r($tst); //var_dump($tst); foreach ($tst as $key => $val) { print "$key = $val\n"; // var_dump($val); //echo $val['id']; foreach ($val as $k => $v) { //var_dump($v); foreach($v as $a => $b) { if($a=='url-75sq') { // var_dump($b); foreach($b) echo $b."\n"; } // var_dump($a); } } } while (list($var, $val) = each($tst)) { // print "$var is $val\n"; } foreach ($tst as $certain_key => $value) { } //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). /*/ ?>