Closed PdA1337 closed 2 years ago
resp = client.send_job_and_wait(MsgProto(EMsg.ClientRequestWebAPIAuthenticateUserNonce), timeout=7) skey,ekey = generate_session_key() data = { 'steamid': client.steam_id, 'sessionkey': ekey, 'encrypted_loginkey': symmetric_encrypt(resp.webapi_authenticate_user_nonce.encode('ascii'), skey), } resp = webapi.post('ISteamUserAuth', 'AuthenticateUser', 1, params=data)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.steampowered.com/ISteamUserAuth/AuthenticateUser/v1/
i want to know why?
No idea. I suggest using: https://steam.readthedocs.io/en/latest/api/steam.client.html?highlight=get_web_session#steam.client.SteamClient.get_web_session
Closing due to inactivity
resp = client.send_job_and_wait(MsgProto(EMsg.ClientRequestWebAPIAuthenticateUserNonce), timeout=7) skey,ekey = generate_session_key() data = { 'steamid': client.steam_id, 'sessionkey': ekey, 'encrypted_loginkey': symmetric_encrypt(resp.webapi_authenticate_user_nonce.encode('ascii'), skey), } resp = webapi.post('ISteamUserAuth', 'AuthenticateUser', 1, params=data)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.steampowered.com/ISteamUserAuth/AuthenticateUser/v1/
i want to know why?