Integrating Rollbase

Posted by kanav20011997 on 22-Dec-2016 05:29

In rollbase-template where am I suppose to add http header codes and url in order to make a connectivity with the server.

All Replies

Posted by Mani Kumar on 22-Dec-2016 05:59

Hello Kanav,

Could you please elaborate your query on what you are trying to achieve or what information you are looking for?

/Mani.

Posted by kanav20011997 on 23-Dec-2016 04:54

001

002 var publicKey = 'guest';

003 var privateKey = 'guest';

004 var siteAuth = publicKey + ":" + privateKey ;

005 var encodedSiteAuth = 'Z3Vlc3Q6Z3Vlc3Q=';

006 var url ="localhost:15672/.../publish";

007  var data = null;

008  var method = "POST";

009 var contentType = "application/json; charset=UTF-8";

010 var username = null;

011 var password = null;

012 var header = { "Authorization”   :  “Basic " +  encodedSiteAuth };

013 var result = rbv_api.sendJSONRequest(url,data,method,contentType,username,password,headers);

014 rbv_api.println(result);

Error missing : after property id (line #13) in formula:

I'm trying to Integrate rollbase to rabbitmq. I'm using document template for it .

Posted by Vasantha on 28-Dec-2016 02:57

Hi Kanav,

Create an EVAL block and add a minified JavaScript code.

Example:

#EVAL[<<your javascript>>]

Thanks

Vasantha

This thread is closed