示例#1
0
 public function testAuthen()
 {
     $url = "http://192.168.1.33:8069";
     $db = "test3";
     $username = "******";
     $password = "******";
     $handler = new OdooHandler($url, $db, $username, $password);
     $uid = $handler->getUid();
     $this->assertTrue($uid > 0);
 }
示例#2
0
<?php

require __DIR__ . '/bootstrap/autoload.php';
//Config
$url = $_ENV['ODOO_URL'];
$db = $_ENV['ODOO_DB_NAME'];
$username = $_ENV['ODOO_DB_USER'] ? $_ENV['ODOO_DB_USER'] : '******';
$password = $_ENV['ODOO_DB_PASSWORD'] ? $_ENV['ODOO_DB_PASSWORD'] : '******';
// call the handler to process data
$handler = new OdooHandler($url, $db, $username, $password);
$handler->handleRequest();