Skip to content

ryan-shaw/votifier-send

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

votifier-send

npm install votifier-send

Usage

To send votifier data:

var votifier = require('votifier-send');

var settings = {
	key: '... Your RSA pub key for the server',
	host: 'localhost',
	port: 8192,
	data: {
		user: '<players username>',
		site: '<voting site name>',
		addr: '<ip address of player>',
		timestamp: new Date().getTime()
	}
}

votifer.send(settings, callback(err){
	if(err) console.log(err);
	// If no err success
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •