init commit
This commit is contained in:
32
grab_shops.php
Normal file
32
grab_shops.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
if (php_sapi_name() != "cli")
|
||||
{
|
||||
die("Only CLI mode allowed!");
|
||||
}
|
||||
|
||||
require_once("class_livesklad.php");
|
||||
require_once("class_MysqliDb.php");
|
||||
|
||||
|
||||
$live = new livesklad(API_LOGIN, API_PASSWD);
|
||||
$db = new MysqliDb ('localhost', DB_LOGIN, DB_PASSWD, DB_NAME);
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
$params = array (
|
||||
"page" => 1,
|
||||
"pageSize" => 50
|
||||
);
|
||||
|
||||
|
||||
$results = $live->getBranches($params);
|
||||
|
||||
print_r($results);
|
||||
|
||||
/*
|
||||
|
||||
*/
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user