Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devy-psn

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devy-psn

A library that allows you to access the playstation network APIs

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

devy-psn

A library that allows you to access the playstation network APIs

Usage

var devyPsn = require('devy-psn');

// First you need to grab the session cookie
devyPsn.getAndSetCookieFromPSN('myPSNUsername', 'myPSNPassword').then(function() {
	// You may call to a PSN api once the cookie is set
	// We will call to the titles API (aka, list of games)
	return devyPsn.getTitles();
}).then(function(res) {
	// Calling the APIs will return a promise that will resolve with the response as a JSON object
	// res will be the list of your titles
	console.log(res); //Do something with 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.

Keywords

FAQs

Package last updated on 03 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc