**This website will be shutdown permanently soon**

This website and apps are for sale. Only serious offers will be considered. Contact [email protected]

** Server is current under maintenance, any changes will be lost **

Bot Libre Forum : Connect your Bot to the World - XML, JSON, Web Services, HTML Scraping, Twitter, Facebook, Telegram, Email

RE: Connect your Bot to the World - XML, JSON, Web Services, HTML Scraping, Twitter, Facebook, Telegram, Email

по admin опубликовано Sep 2 2017, 1:52

Everything is persistent in Self, so storing data is easy.

If you want to store something specific to a user, you can store it on their user object using the "speaker" variable.

speaker.userid = "user1";
speaker.password = "12345";

To store something specific to the current conversation use the "conversation" variable.

conversation.userid = "user1";
conversation.password = "12345";

To store a global variable use the "#" symbol to create a global symbol object.

#credentials.userid = "user1";
#credentials.password = "12345";

To use a variable in a GET or POST call just set in in the parameters.

var info = Http.requestJSON("https://www.api.com/fetch?user=" + speaker.userid + "&password=" + speaker.password);


Идентификатор: 18920549
Опубликовано: Sep 2 2017, 1:52
Ответы: 0
Вид: 3452, сегодня: 10, неделю: 13, месяц: 27
0 0 0.0/5