cubehouse / psnjs Goto Github PK
View Code? Open in Web Editor NEWSimple PlayStation Network API in Node.JS
License: MIT License
Simple PlayStation Network API in Node.JS
License: MIT License
I suspect Sony's changed the login process as this was working a few weeks ago, but now it's not.
Using the first example in the README.md (under API setup), I've updated the script to use my PSN email and password but I consistently have the same failure. The log I get is:
[PSN] :: Need to login - no auth token found
[PSN] :: Need to fetch access tokens - tokens expired
[PSN] :: Need to fetch userdata - no region or username available
[PSN] :: Making OAuth Request...
[PSN] :: Logging in...
[PSN] :: Failed to make login request
[PSN] :: Token error: Error: socket hang up
Error fetching trophies: Error: socket hang up
Hey there!
Thanks for your great API. I was thinking about using it in the near future. One idea I had was using electron to built a PSN chat client for the desktop.
Do you have any idea where I could start looking to reverse engineer the web socket connection to receive new messages? You can chat on the playstation website so I would assume they use web sockets for that. That would of course by my first point to look at but maybe you remember something more from the work on your module.
[PSN] :: Need to login - no auth token found
[PSN] :: Need to fetch access tokens - tokens expired
[PSN] :: Need to fetch userdata - no region or username available
[PSN] :: Making OAuth Request...
[PSN] :: Logging in...
[PSN] :: Following login...
url.js:79
throw new TypeError('Parameter "url" must be a string, not ' + typeof url);
^
TypeError: Parameter "url" must be a string, not undefined
I've got code using the PSNjs library that's been working and hasn't changed, and is now issuing a "Server response error 4159: Invalid refresh token" when trying to connect and fetch a friends list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.