steam icon indicating copy to clipboard operation
steam copied to clipboard

BrowserRequests

Open XronoZ-create opened this issue 5 years ago • 3 comments

Added new class BrowserRequests. It is planned to add the functionality of the steam site to it. Added now "get_avatar_url" and "set_avatar"

XronoZ-create avatar Sep 14 '20 21:09 XronoZ-create

I'm not sure the abstraction should be done this way.

Ok, so you have WebAuth (MobileWebAuth basically the same thing), and SteamClient.get_web_session(). Either one provides a requests.Session that is ready to use. Therefore, I think this new abstraction should simply consume that session, and provide methods to interact with say Steam community. Methods such as changing your avatar, or changing profile info on https://steamcommunity.com/my/edit/info

Lets say we call it SteamCommunityClient, which has get/set_avatar methods. Then we use like so:

client = SteamClient()
client.cli_login()
myaccount = SteamCommunityClient(client)
myaccount.set_avatar(path_to_avatarjpg)

or

client = WebClient()
client.cli_login()
myaccount = SteamCommunityClient(client)

In a similar fashion, a SteamStoreClient or a SteamMarketClient could be created.

rossengeorgiev avatar Sep 16 '20 19:09 rossengeorgiev

Ok. I will make changes. Thanks 👍

XronoZ-create avatar Sep 16 '20 20:09 XronoZ-create

Hi :wave: I returned. I plan to introduce methods for working with Steam Community Look at the abstraction please

XronoZ-create avatar Jun 21 '22 15:06 XronoZ-create