Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('./ripcord/ripcord.php');
- $url='http://localhost:8069' ;
- $db='android'; // base
- $username='test@test.test'; // email
- $password='pass' ; // pass
- $common = ripcord::client("$url/xmlrpc/2/common");
- $res=$common->version();
- $uid = $common->authenticate($db, $username, $password,array());
- $id = "5" // id de projet
- $models = ripcord::client($this->url . "/xmlrpc/2/object");
- $projects = $models->execute_kw($this->db, $this->uid, $this->password, 'project.task', 'search_read', array(array(array('user_id' , '=' , $id))) );
- echo json_encode($projects);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement