Duke Yin's Technology database

获取PlayStation NPSSO token的方法

方法1

  1. https://www.playstation.com/ 登录你的账号(无需切换区域)
  2. 访问 https://ca.account.sony.com/api/v1/ssocookie 如果成功会出现npsso: ’64位字符’
  3. 引号中的64位字符,即为NPSSO授权码。

由于频繁使用方法1可能会遭到Sony防御显示HTTP Status 429 – Too Many Requests,可使用方法2获取token:

方法2

(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位代码> 即为成功。

发布评论

评论

标注 * 的为必填项。