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密码