From 3ae517757c61daa5e1a6700925af095b1ee4c5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 3 Jan 2020 00:35:44 +0100 Subject: have fun --- fetcheveryone.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 fetcheveryone.php (limited to 'fetcheveryone.php') 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 +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)); + + + + -- cgit v1.2.3