steam

Steam OpenId in MVC application

懵懂的女人 提交于 2019-11-30 07:42:36
I have never done an openid application before. I did see that MVC 5 has some built in oauth sign ins. I was able to get these to work no problem, as they are already built. But I am completely unsure how to get the steam openid to work in MVC. Does anyone have some sample code of there MVC Steam OpendID stuff? Or does anyone know a good tutorial for this? Go to Tools > Library Package Manager > Package Manager Console and type: Install-Package Owin.Security.Providers Open your App_Start\Startup.Auth.cs, and add: using Owin.Security.Providers.Steam; Then, in the ConfigureAuth method, add: app

Find steam games folder [closed]

放肆的年华 提交于 2019-11-30 07:30:05
How can I get to a Steam game folder without hardcoding it? Instead of hardcoding C:\Steam\steamapps\common\<game_folder>\GameData in my code can I use something involving the steamappid of a game to obtain this information automatically? In order to obtain a Steam games folder you have to follow this steps: find Steam installation folder check Steam acf files and libraryfolders.vdf You can find Steam InstallPath in windows registry: 32-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam 64-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Valve\Steam You can read a Value from a Registry Key using this

Steam market currency and XML format

五迷三道 提交于 2019-11-30 05:21:50
Im trying to get an item page on market in certain currency, tried to add Accept-Language: ru-RU\r\n and Accept-Language: ru-RU, ru\r\n and Accept-Language: ru, ru-RU;q=0.8\r\n to header but steam ignores it and always gives a page with mixed rubles, euros and dollars. Also, how can i get a page in xml format? ?format=xml and ?xml=1 dont work, tried with application/xml and */* Sellers will always list items for sale in the native currency of their Steam Wallet, and buyers will always see Community Market prices expressed in the native currency of their Steam Wallet. For items listed for sale

Steam web API getting CS:GO inventory

主宰稳场 提交于 2019-11-30 00:54:01
Alright, so I have been looking for this all over the internet, and what I have found out is that when you want to get someones steam inventory you use this: http://api.steampowered.com/IEconItems_{appid}/GetPlayerItems/v0001/?key={apikey}&steamid={steamid}&format=json But the problem is that when I do that for CS:GO (appid: 730 ), I just get an empty response back, even though the user has items in their inventory. if you want to get the json just use one of the following links: general steam inventory: ( 1: games, 3: coupons, 6: trading cards, 7: rewards ) http://steamcommunity.com/id/

Getting CS:GO player stats

≯℡__Kan透↙ 提交于 2019-11-29 21:51:21
问题 How could I use the Steam Web API to get a player's stats, such as "Total Kills" or "Total Wins". Some sites that use these features include http://csgo-stats.com and http://csgo-stats.net. I have tried using http://api.steampowered.com/ISteamUserStats/GetGlobalStatsForGame/v0001/?format=xml&appid=730&count=1&name[0]=total_wins with no success. Where is the documentation for such statistics? 回答1: I believe you are using the wrong API end point for this. Utilize the GetUserStatsForGame end

XML Parser Error Start Tag Expected

家住魔仙堡 提交于 2019-11-29 14:47:33
function retrieveProfile() { $url = "http://steamcommunity.com/profiles/{$this->steamID64}/?xml=1"; $profileData = simplexml_load_string($url); if(!empty($profileData->error)) { return NULL; } $this->friendlyName = (string) $profileData->steamID; } Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '<' not found Warning: simplexml_load_string() [function.simplexml-load-string]: http://steamcommunity.com/profiles/76561197991676121/?xml=1 Warning: simplexml_load_string() [function.simplexml-load-string]: ^ This is the XML file:

Steam web API getting CS:GO inventory

和自甴很熟 提交于 2019-11-28 22:32:31
问题 Alright, so I have been looking for this all over the internet, and what I have found out is that when you want to get someones steam inventory you use this: http://api.steampowered.com/IEconItems_{appid}/GetPlayerItems/v0001/?key={apikey}&steamid={steamid}&format=json But the problem is that when I do that for CS:GO (appid: 730 ), I just get an empty response back, even though the user has items in their inventory. 回答1: if you want to get the json just use one of the following links: general

How does OpenID user validation works?

不打扰是莪最后的温柔 提交于 2019-11-28 13:07:05
Well im trying to implement Steam OpenID login to a website but im not quite sure how it's done and how does Steam validate users who are loged in with OpenID. As for now what i have found out is that steam only gives user id back and nothing else so for the rest of things i would have to use API to get other info of the user. But im not quite sure how does the users get validated on the website once someone is loged in via OpenID. Do i need to make a session or set cookie or store user into database once user is logedin from OpenID? try { # Change 'localhost' to your domain name. $openid =

Get the price of an item on Steam Community Market with PHP and Regex

南楼画角 提交于 2019-11-27 07:53:57
I'm trying to use PHP to get the Steam Community Market price of an item. I take a url (for example : http://steamcommunity.com/market/listings/730/StatTrak%E2%84%A2%20P250%20%7C%20Steel%20Disruption%20%28Factory%20New%29 ) and then I download the content with file_get_contents() . I tried to use this : function getInnerHTML($string, $tagname, $closetagname) { $pattern = "/<$tagname ?.*>(.*)<\/$closetagname>/"; preg_match($pattern, $string, $matches); return $matches[1]; } Using getInnerHTML($str, 'span class="market_listing_price market_listing_price_with_fee"', 'span'); An example of what I

Getting someone's Steam inventory

风格不统一 提交于 2019-11-26 23:46:06
I am making a website that needs to access the Steam inventory of the user. I found an API to get Team Fortress 2 inventory, Dota 2, CS:S, CS:GO and Portal 2. But I didn't find any API for getting Steam inventory. Is it possible to access a user's Steam inventory? New Endpoint There is a new end point for fetching inventories as of December 2016. The old one listed below still works (for now). Both seem to be highly ratelimited. The new inventory path is: http://steamcommunity.com/inventory/<PROFILEID>/440/2?l=english&count=5000 With this new path, l is the language you want to receive data