更に当社の商用サービス Bot Libre for Business$4.99
SDK and Web API : JSON web API

RE: JSON web API

による admin 掲載 Oct 25 2018, 9:35

For the JSON API any attribute (from the XML API) requires an @ prefix (except for the /chat API).

i.e.

var request = new XMLHttpRequest();
request.open('POST', 'https://www.botlibre.com/rest/json/get-all-instances', true);
request.setRequestHeader('Content-Type', 'application/json');
var json = JSON.stringify({'@application': '721375371321663745'});
request.onreadystatechange = function() {
console.log(request.responseText);
};
request.send(json);


Id: 24750642
掲載: Oct 25 2018, 9:35
回答: 0
眺望: 2460, 今日の: 1, 週間: 4, 月: 33
0 0 0.0/5