I basically want to do this… I thought a Meteor.method? but how would I go about that…? Thanks for help.
if(Meteor.isClient) {
var clientVar = getElementById("someId").value ;
}
if(Meteor.isServer) {
HTTP.call( 'GET', 'http://someurl.com/' + devId + '/' + '/' + utcTimestamp + '/' + 'clientVar', {
}, function( error, response ) {
if ( error ) {
future.return( error );
} else {
future.return( response );
}
});
}