콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
10567 화면

Hi,

I started to use ODOO Online version (in trial mode) and I would like to use the API with XMLRPC but I can't connect to it.

I use a xmlrpc client with Node.js

var clientOptions = { host: this.url , port: this.port , path: '/xmlrpc/2/common' }

var client = xmlrpc.createClient(clientOptions);
var params = [];
params.push(this.db);
params.push(this.username);
params.push(this.password);
params.push('');
client.methodCall('authenticate', params, function(error, value) {
     if(error){

        return callback(error, null);
    }

    uid = value;
    return callback(null);
});

I tried port 8069 but I got a ECONNREFUSED

I tried ports 80 and 443 but it return HTML

I followed the instruction (http://www.odoo.com/documentation/9.0/api_integration.html) and changed my user password.


Thanks

아바타
취소
베스트 답변

You have to replace 'authenticate' by 'login'.

client.methodCall('login', [value.database, value.user, value.password],
function (error, value) {

});
아바타
취소
관련 게시물 답글 화면 활동
1
11월 19
6450
0
11월 16
4945
1
4월 16
3806
0
2월 16
3288
0
11월 15
3016