java steam_java – Steam API登录不起作用 – 有另一种方法吗?
As the project seems deprecated somehow, is there any other solution?
保羅·范·阿森(Paul van Assen)寫了一本圖書館(https://github.com/pvanassen/steam-api),它有助于通過蒸汽登錄和其他互動的東西.
唯一不適合我的是登錄部分.我的登錄方式:
public void login(String cookies) {
this.steamService = StoreFactory.getSteamStore(cookies, "[Username]");
try {
steamService.getLoginService().login("[Username]", "[Password]");
} catch (SteamGuardException ex) {
String steamGuard = JOptionPane.showInputDialog("SteamGuardCode:");
steamService.getLoginService().loginSteamGuard("[Username]",
"[Password]", ex.getEmailSteamId(), "[NameOfDeviceInSteamGuard]",
steamGuard);
} catch (CapchaException ex) {
System.out.println(ex.getCapchaUrl());
String captcha = JOptionPane.showInputDialog("CaptchaCode:");
steamService.getLoginService().loginCapcha("[Username]",
"[Password]", ex.getCapchaGid(), captcha);
} catch (VerificationException e) {
System.out.println("Not working ... \n " + e.toString());
}
}
我的Cookie字符串如下所示:
"Steam_Language=english; steamCountry=[XYZ]; steamLogin=[XYZ]; steamLoginSecure=[XYZ]; sessionid=[XYZ]; webTradeEligibility=[XYZ]; steamRememberLogin=[XYZ]";
如果我嘗試打印錯誤消息,我所得到的是一個空字符串.
我現在已啟用Mobile Authenticator,如果這有幫助!
但是,其他的東西,例如從社區市場列出可購買的商品,正在使用此API.
//長時間仍然沒有解決方案=( – 我還能做什么D:?
總結
以上是生活随笔為你收集整理的java steam_java – Steam API登录不起作用 – 有另一种方法吗?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows下pig-0.17启动时遇
- 下一篇: Medusa 破解centos密码