升级到我们的 Diamond 服务我们将建立你自己的应用程序安卓或iOS
Self, AIML, and scripting

Json call with basic authentication

通过 gioking 发布 Mar 8 2018, 8:45

Hi I did look around for this question but did not find answer,

My question is: can I call a rest service passing any form of authentication ? for example basic authentication ?

If yes somebody have some example ?

if not I change my ask: if I call a rest service the request that do the bot is encrypted some how ?

 

Thanks for help


by admin posted Mar 8 2018, 20:57
Yes, you can call HTTP request with authentication from a Self script.

For example,

Http.requestJSONAuth(attribute, url, user, password);

or,
Http.requestXMLAuth(url, user, password, xpath);

See,
https://www.botlibre.com/manual-self.jsp#http

Any https request will use encryption.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 3098, today: 0, week: 10, month: 9

Id: 21267915
发布: Mar 8 2018, 8:45
答复: 1
的风景: 2940, 今天: 2, 周: 15, 一个月: 13
0 0 0.0/5