プロジェクトは何とか廃止されているようですが、他に解決策はありますか?Steam APIのログインが機能しない - 別の方法がありますか?
ポール・バンアッセンは、水蒸気や他の相互作用の事をログインすることができますライブラリ(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());
}
}
マイクッキー文字列は次のようになります。
"Steam_Language=english; steamCountry=[XYZ]; steamLogin=[XYZ]; steamLoginSecure=[XYZ]; sessionid=[XYZ]; webTradeEligibility=[XYZ]; steamRememberLogin=[XYZ]";
私はエラーメッセージを印刷しようとした場合、私が得るすべては空の文字列です。
モバイル認証が有効になりました。
しかし、コミュニティ市場から購入可能なアイテムを一覧表示するなど、他のものはこのAPIを使用しています。
//まだ長い時間=(後にノーソリューション - 私はDを行うことができます他に何:?
例外メッセージは何を伝えますか? – Hexaholic
これは出力です: "Not working ... nl.pvanassen.steam.store.login.VerificationException:" – Graphican0
'e.getMessage()'を印刷してみてください。 – Hexaholic