[eluser]Flyingbeaver[/eluser]
OK
Here is how i do the job :
Code:
<?php
class Test extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->library('rest', array(
'server' => 'http://my-server:8888/api/'
));
$this->rest->api_key('7bbb53bb5f1a2c0c57ab6c909b675a29');
}
function test()
{
$key = $this->rest->put('users', '', 'json');
echo $this->rest->debug();
}
}
don't forget to enable api rest in rest config file and to remove auth from this file to.
If I'm doing it wrong plz let me know.
Thx phil for this amazing work