blob: 0fb45117360194e4ff7063c3768a6fb899611c26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env php
<?php
require 'vendor/JsonRPC/Client.php';
if ($argc !== 3) {
die('Usage: '.$argv[0].' <url> <token>'.PHP_EOL);
}
$client = new JsonRPC\Client($argv[1], 5, true);
$client->authentication('jsonrpc', $argv[2]);
$client->createProject('Test API');
$r = $client->getAllProjects();
var_dump($r);
|