summaryrefslogtreecommitdiffstats
path: root/fetcheveryone.php
diff options
context:
space:
mode:
Diffstat (limited to 'fetcheveryone.php')
-rwxr-xr-xfetcheveryone.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/fetcheveryone.php b/fetcheveryone.php
new file mode 100755
index 0000000..7222729
--- /dev/null
+++ b/fetcheveryone.php
@@ -0,0 +1,18 @@
+#!/usr/bin/env php
+<?php
+require_once "main.php";
+$i = new itisClient();
+$i->setusername("subidubi");
+$i->setpassword("T2J7QCZWCF");
+$slovenija = array();
+foreach($i->fetchregije() as $regija) {
+ $slovenija[$regija] = array();
+ foreach($i->fetchkontakti(0, $regija) as $kontakt) {
+ $slovenija[$regija][] = $i->fetchoseba($kontakt);
+ }
+}
+file_put_contents(date("d.m.Y-H.i.s").".json", json_encode($slovenija));
+
+
+
+