Únete a la Bot Libre proyecto de código abierto en BotLibre.org
Bot Libre Dev

Documentation for bot rest api

por mosbuma publicado 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: 2929, today: 1, week: 7, month: 11

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: 2732, today: 0, week: 2, month: 5

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: 2983, today: 1, week: 4, month: 6

Id: 18866614
Etiquetas: web api
Publicado: Aug 29 2017, 8:41
Respuestas: 3
Vistas: 3384, hoy: 1, la semana: 4, mes: 8
1 0 5.0/5