From 7c5b900bd83b6b9bdb5656eb169381ff46f8106a Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 20 Jun 2014 15:41:05 -0300 Subject: First API implementation --- scripts/api-client.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/api-client.php (limited to 'scripts') diff --git a/scripts/api-client.php b/scripts/api-client.php new file mode 100755 index 00000000..0fb45117 --- /dev/null +++ b/scripts/api-client.php @@ -0,0 +1,20 @@ +#!/usr/bin/env php + '.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); + -- cgit v1.2.3