4 require_once __DIR__
."/../vendor/autoload.php";
8 $client = new http\
Client("curl", "seekat");
10 "max_host_connections" => 10,
11 "max_total_connections" => 50,
12 "use_eventloop" => true,
14 $api = include "examples.inc";
16 $api(function() use($api) {
17 $repos = yield
$api->users
->m6w6
->repos([
18 "visibility" => "public",
19 "affiliation" => "owner"
22 $next = Links\next
($repos);
25 foreach ($repos as $repo) {
26 $batch[] = $repo->hooks();
28 $result = yield
$batch;
29 foreach ($result as $key => $hooks) {
33 printf("%s:\n", $repos->{$key}->name
);
34 foreach ($hooks as $hook) {
35 if ($hook->name
== "web") {
36 printf("\t%s\n", $hook->config
->url
);
38 printf("\t%s\n", $hook->name
);