function activateAlert(alertname, username, amount, attach) {
		if (attach != "") {
			var myJSONObject = {"name": alertname, "message":"(" + username + ") tipped (" + amount + ") LBC", "attachMsg": attach};
		} else {
			var myJSONObject = {"name": alertname, "message":"(" + username + ") tipped (" + amount + ") LBC"};
		}
		request({
				url: 'http://localhost:9090/simple-alerts/alert',
				method: "POST",
				json: true,
				body: myJSONObject
		}, function (error, response, body){
				console.log("Pushed Alert");
		});
	}
// simple-alerts Rest API Request to add on alert to queue
simple-alerts Rest API Request to add on alert to queue
simple - alerts Rest API Request to add on alert to queue
function activateAlert(alertname, username, amount, attach) {
		if (attach != "") {
			var myJSONObject = {"name": alertname, "message":"(" + username + ") tipped (" + amount + ") LBC", "attachMsg": attach};
		} else {
			var myJSONObject = {"name": alertname, "message":"(" + username + ") tipped (" + amount + ") LBC"};
		}
		request({
				url: 'http://localhost:9090/simple-alerts/alert',
				method: "POST",
				json: true,
				body: myJSONObject
		}, function (error, response, body){
				console.log("Pushed Alert");
		});
	}
function activateAlert ( alertname , username , amount , attach ) { if ( attach != "" ) { var myJSONObject = { "name" : alertname , "message" : "(" + username + ") tipped (" + amount + ") LBC" , "attachMsg" : attach } ; } else { var myJSONObject = { "name" : alertname , "message" : "(" + username + ") tipped (" + amount + ") LBC" } ; } request ( { url : 'http://localhost:9090/simple-alerts/alert' , method : "POST" , json : true , body : myJSONObject } , function ( error , response , body ) { console . log ( "Pushed Alert" ) ; } ) ; }
simple-alerts Rest API Request to add on alert to queue
simple - alerts Rest API Request to add on alert to queue