psn-live-async
v1.0.2
Published
es6 js introduced arrow functions, asynchronous flows and classes. I've written a psn api wrapper in node to be able to use this functionality for a cleaner code in your project.
Downloads
5
Maintainers
Readme
Asynchronous Node Playstation-Network API
es6 js introduced arrow functions, asynchronous flows and classes. I've written a psn api wrapper in node to be able to use this functionality for a cleaner code in your project.
Requires a valid playstation account.
Instructions:
Get the ticket_uuid(login_token) and code according to these instructions below https://tusticles.com/psn-php/first_login.html
Import the library
var psn = require('psn-live-async');
OR if supportedimport psn from 'psn-live-async';
Run getCookie function alone. You will get an npsso token you need to use for the rest of the calls.
psn.getCookie(ticket_uuid, code_you_got_on_your_mobile_device).then(npsso => console.log(npsso));
Create an object
const psnObj = new psn.PSNHandler(npsso);
Call endpoint to retreive a user's Playstation Network User Id.
psnObj.getUserIdPSN('Ninja').then(resp => console.log(resp))