方法1
- 在 https://www.playstation.com/ 登录你的账号(无需切换区域)
- 访问 https://ca.account.sony.com/api/v1/ssocookie 如果成功会出现npsso: ’64位字符’
- 引号中的64位字符,即为NPSSO授权码。
由于频繁使用方法1可能会遭到Sony防御显示HTTP Status 429 – Too Many Requests,可使用方法2获取token:
方法2
- 访问 https://account.sonyentertainmentnetwork.com/ 并登录你的账号
- 使用F12或 Ctrl+Shift+J 打开浏览器控制台
- 复制并粘贴以下代码到控制台并回车
(function(open) {
XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
this.addEventListener("readystatechange", function() {
if (this.readyState == XMLHttpRequest.DONE) {
let response = JSON.parse(this.responseText);
if (response && "npsso" in response) {
console.log('found npsso', response.npsso);
}
}
}, false);
open.call(this, method, url, async, user, pass);
};
window.onbeforeunload = function(){
return 'Are you sure you want to leave?';
};
})(XMLHttpRequest.prototype.open);
(function(open) {
XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
this.addEventListener("readystatechange", function() {
if (this.readyState == XMLHttpRequest.DONE) {
let response = JSON.parse(this.responseText);
if (response && "npsso" in response) {
console.log('found npsso', response.npsso);
}
}
}, false);
open.call(this, method, url, async, user, pass);
};
window.onbeforeunload = function(){
return 'Are you sure you want to leave?';
};
})(XMLHttpRequest.prototype.open);
(function(open) { XMLHttpRequest.prototype.open = function(method, url, async, user, pass) { this.addEventListener("readystatechange", function() { if (this.readyState == XMLHttpRequest.DONE) { let response = JSON.parse(this.responseText); if (response && "npsso" in response) { console.log('found npsso', response.npsso); } } }, false); open.call(this, method, url, async, user, pass); }; window.onbeforeunload = function(){ return 'Are you sure you want to leave?'; }; })(XMLHttpRequest.prototype.open);
- 左侧菜单中点击“个人资料”
- 控制台如果出现found npsso +<64位代码> 即为成功。
亲爱的朋友你好
我希望你能指导我了解 NPSSO
请给我你的电子邮件
你的朋友塞佩尔