From 1503de4a313c30cacc912b9eb0a55c5422f8e849 Mon Sep 17 00:00:00 2001 From: Miha Petkovsek Date: Wed, 22 Jun 2016 10:51:47 +0200 Subject: Working php API client with example --- php-client/example.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 php-client/example.php (limited to 'php-client/example.php') diff --git a/php-client/example.php b/php-client/example.php new file mode 100644 index 0000000..74ea511 --- /dev/null +++ b/php-client/example.php @@ -0,0 +1,25 @@ +set_debug (false); +# execute - result is stored to $API->result, save it to own array if multiple calls needed after execute +$API->execute ("GET", "sections", array(5), array(), $token_file); +# ger result +$result = $API->get_result(); + +# print result +print_r($result); +?> \ No newline at end of file -- cgit v1.2.3