Aktualizacja Platinum obsługa i zbudujmy swój bot do ciebie
Bot Libre Dev

Documentation for bot rest api

w mosbuma wysłany Aug 29 2017, 8:41

Is there any documentation or sample code available for using the Bot API URL endpoints? I'd like to use the web API to upload AIML scripts to my bot.

Thanx!

Marc


by admin posted Aug 29 2017, 20:19
See,

https://www.botlibre.com/api.jsp

You can also refer to the code in our Android SDK,

https://github.com/BotLibre/BotLibre/blob/master/sdk/java/src/org/botlibre/sdk/SDKConnection.java

Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 2917, today: 0, week: 2, month: 32

by mosbuma posted Sep 4 2017, 5:14

Thnx for the pointers! Got it working now by creating a script in the script library and importing to the bot. Is there a create-script equivalent API call for the bot that creates a new script directly in the bot? (ie. create-bot-script)

Marc

 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2726, today: 0, week: 0, month: 23

by admin posted Sep 4 2017, 8:13
There is an API,

/rest/api/save-bot-script-source

This API will create or update the script from its source code.

For the complete list of APIs see,
https://www.botlibre.com/api.jsp


See also the code in the Android SDK,

https://github.com/BotLibre/BotLibre/blob/master/sdk/android/src/org/botlibre/sdk/SDKConnection.java

SDKConnection.saveBotScriptSource(ScriptSourceConfig)

https://github.com/BotLibre/BotLibre/blob/master/sdk/android/src/org/botlibre/sdk/config/ScriptSourceConfig.java

Updated: Sep 4 2017, 8:14
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2976, today: 1, week: 1, month: 25

Identyfikator: 18866614
Tagi: web api
Wysłany: Aug 29 2017, 8:41
Odpowiedzi: 3
Widok: 3376, dziś: 1, tydzień: 2, miesiąc: 34
1 0 5.0/5