PHP code example of diolcos / odoo-api-client
1. Go to this page and download the library: Download diolcos/odoo-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
diolcos / odoo-api-client example snippets
use OdooApiClient\XmlRpcApiWrapper as OdooXmlRpcApiWrapper;
use OdooApiClient\XmlRpcApiWrapper as OdooXmlRpcApiWrapper;
use OdooApiClient\Entities\Contacts as OdooContacts;
'username' => "[email protected]",
'password' => "example_password",
]);
$odooContacts = new OdooContacts($odooApiWrapper);
$contacts = $odooContacts->list();
print_r($contacts);
bash
php composer.phar install --no-dev