summaryrefslogblamecommitdiffstats
path: root/fetcheveryone.php
blob: 7222729161b0deaed2349377dbcc1ccd299cb854 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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));