Closed Jallvar closed 7 years ago
Get it from LoggedOnCallback
- example of usage.
Alternatively, if you can't or don't want to access the LoggedOnCallback
callback (which is preferred way of doing it), you can also request nonce on-demand.
And if you mean SteamID
in place of UniqueID, then you can get it also from LoggedOnCallback
(like in my first example of usage above), or while being logged on, from SteamClient.SteamID
.
i do auth to SteamBot.Trade.SteamWeb
private static void OnLoginKey(SteamUser.LoginKeyCallback callback) { if (string.IsNullOrEmpty(callback?.LoginKey)) { return; }
loginKey = callback.LoginKey;
UniqueID = callback.UniqueID.ToString();
user.AcceptNewLoginKey(callback);
var i1 = SteamWeb.Authenticate(UniqueID, client, loginKey);
Console.WriteLine(i1);
}
Me return Auth = FALSE Why?
This is SK2, not SteamBot. I don't know why your SteamBot method fails - my one works just fine.
Can you suggest. what could be the problem? how to get cookies from steamkit2?
I would if I was using your library and knew one - I don't, I'm using pure SK2 and my own code, I don't like SteamBot's code.
I agree with you. How can I get cookies from SK2?
You can find many working examples in my ASF code I linked you above, but that has nothing to do with SK2.
I do like you have authorization code. I will return FALSE response
SK2 returns incorrect data from calbacks?
SteamBot receives the UniqueId from SteamUser.LoginKeyCallback and a WebApiNonce from both SteamUser.LoggedOnCallback and SteamUser.WebAPIUserNonceCallback(where the latter is only retrieved upon re-auth being required)
Closing this due to inactivity. Feel free to reopen if you're still having issues retrieving a WebAPI nonce.
How get UniqueID and WebAPIUserNonce from SteamClient in last version? I get a lot of messages about classes incompatibility. and the response from getcallbacks no method Handler