Знаете ли вы, бот Либре также обеспечивает 3D аватары и бесплатный веб - выступление по API?
Bot Libre Dev

Documentation for bot rest api

по mosbuma опубликовано 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: 2772, today: 1, week: 8, month: 10

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: 2581, today: 2, week: 6, month: 10

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: 2831, today: 1, week: 3, month: 8

Идентификатор: 18866614
Теги: web api
Опубликовано: Aug 29 2017, 8:41
Ответы: 3
Вид: 3214, сегодня: 4, неделю: 7, месяц: 10
1 0 5.0/5