Browse Source

reword get_web_session() docstring

pull/35/merge
Rossen Georgiev 8 years ago
parent
commit
f0e96a427c
  1. 7
      steam/client/builtins/web.py

7
steam/client/builtins/web.py

@ -16,14 +16,14 @@ class Web(object):
"""Get web authentication cookies via WebAPI's ``AuthenticateUser``
.. note::
A session is only valid during the current steam session.
The cookies are valid only while :class:`.SteamClient` instance is logged on.
:return: dict with authentication cookies
:rtype: :class:`dict`, :class:`None`
"""
if not self.logged_on: return None
resp = self.send_job_and_wait(MsgProto(EMsg.ClientRequestWebAPIAuthenticateUserNonce), timeout=5)
resp = self.send_job_and_wait(MsgProto(EMsg.ClientRequestWebAPIAuthenticateUserNonce), timeout=7)
if resp is None: return None
@ -54,6 +54,9 @@ class Web(object):
.. note::
Auth cookies will only be send to ``(help|store).steampowered.com`` and ``steamcommunity.com`` domains
.. note::
The session is valid only while :class:`.SteamClient` instance is logged on.
:param language: localization language for steam pages
:type language: :class:`str`
:return: authenticated Session ready for use

Loading…
Cancel
Save