devy-psn
A library that allows you to access the playstation network APIs
Usage
var devyPsn = require('devy-psn');
devyPsn.getAndSetCookieFromPSN('myPSNUsername', 'myPSNPassword').then(function() {
return devyPsn.getTitles();
}).then(function(res) {
console.log(res);
});
Methods
- getCookieFromPSN(psnUsername, psnPassword) - is a function that returns a promise resolving with a json object that contains the cookie information.
- getAndSetCookieFromPSN(psnUsername, psnPassword) - is a function that returns a promise that resolves when the cookie has been set.
- setCookie(cookie) - Sets the cookie for API usage. Cookie must be in the form of a json object. Works with getCookieFromPSN.
- getTitles() - gets the list of titles for the current user.
More Coming Soon
Setup To Contribute
- Install NodeJS
- Clone the source code:
git clone https://github.com/davidacevedo/psn-api.git
- Inside the
devy-psn
directory, run npm install
to install the modules the app uses.