update to PHP-8.1
[m6w6/seekat] / examples / cli.php
index caae47c17d0c802b468a60bf5cb15f4b00364556..6da88150cbe9e7ab5da089feefb4a36a46eb1c5b 100755 (executable)
@@ -1,11 +1,8 @@
 #!/usr/bin/env php
 <?php
 
-require_once __DIR__."/../vendor/autoload.php";
+$api = include "examples.inc";
 
-$api = new seekat\API(seekat\API\Future\react(), [
-       "Authorization" => "token ".getenv("GITHUB_TOKEN")
-]);
 array_shift($argv);
 
 ($self = function($api) use(&$self) {