hello sir/mam
I want to implement the steam api key in c# code but i don't know how to use it.Similar as skin cash.If you login in skin cash site then it redirects to steam site after login in steam site it redirects to skin cash.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manikandan MurugesanRank #300 · 8.4K reputationPosted Jun 30, 2017, 9:11 PM EDT
There is a need for OpenID. That's the method that Valve uses according to their documentation.
You don't mention what your application is written in, so I can only guess that you are doing this via a web page. In that case, I recommend using the LightOpenID library. From there, this sample code should be able to get you started.
Player ID: $player->steamid
Player Name: $player->personaname
Profile URL: $player->profileurl
SmallAvatar:
MediumAvatar:
LargeAvatar:
Using this, it will present the user with a Steam Login ID button. When it is clicked it will redirect the user to the Steam Community login page. After they login, the user is redirect back to your page, that you set on the
LightOpenIDconstructor. If the user has been validated, it will pull the unique player ID from the returned value. That returned value looks likehttp://steamcommunity.com/openid/id/76561197960435530, and you need just the76561197960435530part.At this point you can query Steam to get player information. In the sample provided, the user is queried and basic player information is displayed.
Vijay Kumar32 reputationPosted Jun 30, 2017, 10:23 PM EDT