Skip to content

messyfresh/smite-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmiteSession

Installation

npm install smite-session

Usage

Simply require smite-session, set the config, then generate that Session ID

var smiteSession = require('smite-session');

smiteSession.set({
    devId: 'XXXX',
    authKey: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
});

smiteSession.genSession()
    .then(function(data){
    console.log(data);
}).catch(function(error){
    console.error(error);
});

Notes

The response is in JSON format. Here is an example of the structure.

{ ret_msg: 'Approved',
  session_id: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  timestamp: '11/15/2015 3:29:29 AM' }

About

Promise based Smite API Session ID Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published