3 $api = include "examples.inc";
6 $gists = yield
$api->users
->m6w6
->gists();
8 $next = \seekat\API\Links\next
($gists);
10 foreach ($gists as $gist) {
11 foreach ($gist->files
as $name => $file) {
12 if ($name == "blog.md") {
14 $head = $gist->description
." ".$gist->created_at
;
16 echo str_repeat("=", strlen($head))."\n\n";
17 echo trim(yield
$text);
18 echo "\n\nThis was my last gistlog, pipe it through \$PAGER if ";
19 echo "you really want to read it or visit https://gistlog.co/m6w6\n";