[Tutor] How to use custom protocol with requests?

Danny Yoo dyoo at hashcollision.org
Sun Oct 12 04:47:36 CEST 2014


On Sat, Oct 11, 2014 at 7:29 PM, Juan Christian
<juan0christian at gmail.com> wrote:
> I need to call this URL: steam://friends/add/<ID>
>
> If I put it in my browser and press enter it works as expected, now I need
> to do this on my code, I don't need to retrieve anything, I just need it to
> be "executed", is there a way to do that in Python with requests or any
> other lib?

This may be more difficult to do; it's unclear whether or not this is
exposed in the web API that Valve provides.

Unlike the other methods described in:

    https://developer.valvesoftware.com/wiki/Steam_Web_API

which are all query-based, you're asking for something that _mutates_
a user.  This functionality would probably not be exposed as a RESTful
web-based API: imagine the kind of havok that a malicious user could
do if they could add arbitrary friends on any other person.  So I
would expect it to require some sort of user authentication, at the
very least.  Searching... I see no such documentation from web
searches on this.  You'll probably need to ask the Steam folks on this
one.


More information about the Tutor mailing list