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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijay KumarPosted Jul 1, 2017, 2:23 AM
Manikandan MurugesanPosted Jul 1, 2017, 1:11 AM
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.