-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheHorecaClass.php.test.php
More file actions
21 lines (15 loc) · 1008 Bytes
/
eHorecaClass.php.test.php
File metadata and controls
21 lines (15 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
include_once('eHorecaClass.php');
/////////////////////////
///// Settings /////
$apiURL = "https://ehoreca.cmodlab-iu.edu.gr/api/";
$email = "<put your account's email here>";
$password = "<put your account's password here>";
/////////////////////////
//Get fresh from https://ehoreca.cmodlab-iu.edu.gr/request-docs
//$endPoints = array("users", "users/{id}", "users/w_producer/{id}", "users/{id}/heatmaps", "users/{id}/routes", "users/{id}/reports", "bins", "bins/{id}", "bins/reports/{id}", "bins/w_producer/{id}", "reports", "reports/{id}", "reports/w_producer/{id}", "heatmaps", "heatmaps/{id}", "routes", "routes/{id}", "vehicle_route/{id}", "routes/vehicle/{id}", "vehicles", "vehicles/{id}", "vehicles/plate/{plate}", "w_producers", "w_producers/{id}", "w_producers/from_user_id/{id}", "pois", "pois/{id}");
$a_eHoreca = new eHoreca($apiURL);
$a_eHoreca->connect($email, $password);
//print_r($a_eHoreca->getEndPoint("users/1"));
print_r($a_eHoreca->getEndPoint("bins/"));
?>