- A simple connector to the BeWhere Service
- account in BeWhere Service
- underscore module installed in Scriptr.io IDE
- edit the file ./config
//The bewhere Info
const bewhere = {
baseUrl: "api.bewhere.com",
endPoint: "https://api.bewhere.com/",
name: "BeWhere ACOUNT NAME",//not used for now but it will help you distinguish your apps
username: "<USER_NMAE>",
apiKey:"<api_token>",
accountId:"<account_id>",
};
var bwModule = require('./BeWhere');
var bw=new bwModule.BeWhere();
var cnMngr=bw.getConnectorManager();
var myConnector=cnMngr.getConnector();
try{
var result= myConnector.getTypesBeacons();
return result;
}catch(exception){
return exception;
}