projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
refactor
[m6w6/seekat]
/
examples
/
gistlog.php
diff --git
a/examples/gistlog.php
b/examples/gistlog.php
index 455b30d180d6e3a1ca67d5f345a1a1f1b8e82e1f..723cc0c6f72d7fc1eb693c3e8545c42dc657c0ed 100755
(executable)
--- a/
examples/gistlog.php
+++ b/
examples/gistlog.php
@@
-4,12
+4,14
@@
require __DIR__."/../vendor/autoload.php";
$api = new seekat\API([
require __DIR__."/../vendor/autoload.php";
$api = new seekat\API([
- "Auth
entication" => "token ".getenv("GU
THUB_TOKEN")
+ "Auth
orization" => "token ".getenv("GI
THUB_TOKEN")
]);
$api(function($api) {
$gists = yield $api->users->m6w6->gists();
while ($gists) {
]);
$api(function($api) {
$gists = yield $api->users->m6w6->gists();
while ($gists) {
+ $next = \seekat\API\Links\next($gists);
+
foreach ($gists as $gist) {
foreach ($gist->files as $name => $file) {
if ($name == "blog.md") {
foreach ($gists as $gist) {
foreach ($gist->files as $name => $file) {
if ($name == "blog.md") {
@@
-25,6
+27,6
@@
$api(function($api) {
}
}
}
}
- $gists = yield $
gists->next()
;
+ $gists = yield $
next
;
}
});
}
});