-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathorganismos.php
More file actions
24 lines (21 loc) · 880 Bytes
/
Copy pathorganismos.php
File metadata and controls
24 lines (21 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once 'opendata.php';
// ΕΚΤΥΠΩΣΗ ΠΛΗΡΟΦΟΡΙΩΝ ΦΟΡΕΑ (UID, ΕΠΩΝΥΜΙΑ, ΜΟΝΑΔΕΣ, ΥΠΟΓΡΑΦΟΝΤΕΣ)
$client = new OpendataClient();
$response = $client->getResource('/organizations/');
if ($response->code === 200) {
$orgData = $response->data;
$counter = 1;
foreach ($orgData['organizations'] as $org) {
print $counter . ") ". $org['uid'] . ": " . $org['label'] . ": ". $org['category'] . "<br> \n";
$counter++;
}
/*
print " Υπογράφοντες:<br>\n";
foreach ($orgData['signers'] as $signer) {
print " ". $signer['uid'] . ": " . $signer['lastName'] . " " . $signer['firstName'] . "<br>\n";
}
*/
} else {
echo "Error " . $response->code;
}