0
我有api格式的api,如何在android中编码以访问server.I具有API ID和API密钥和URL以访问服务器。 我的api代码格式为我有api ajax格式我怎样才能在android中获得响应
$.ajax({
url: 'https://www.abc.com/server/api/user.login'
dataType: 'json',
method: 'POST',
data: {
api_id: 4,
api_key: '06875425-b293-43af-9966-1245125f6bb95b1f7c5e-f932-4916-87f5-db0b298f2',
token: 'api_token_from_previous_call',
},
success: function(response){
console.log(response);
}
});
谢谢德里克你的反应 – 2014-10-08 22:06:55
但我不怎么使用上面的API格式在我的android代码中使用java – 2014-10-09 04:11:52