問題タブ [steam-web-api]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - Steam Web API Condensing
I searched around for the answer to this but couldn't find anything and was looking for help from you wonderful people. I have been toying around with steam web API for my site. I have found this code and am using it. Also, I have barely any experience in steam api, most of my experience is in C. Anyway, here is the code:
I am using a plugin and inserting this php into my WordPress page. This code goes into my steam backpack and gives me all the items I have in a complicated list. What I need help with is condensing it so that it can be easily read. A defining feature of the inventory items is the defindexes. What I want to do is have it so if it finds a certain amount of one item with the same defindex, it will return that amount like this into my page: Scrap Metal = # of defindexes of Scrap Metal found. I hope that this is clear enough and that there is an answer. Thank you.
Part of my code that is returned now:
php - 特定の値で PHP の配列をソートする
この配列$data['response']['games'][x]['name']
をAZからアルファベット順にソートするにはどうすればよいですか?
私はすでに試しarray_multisort()
ましたが、この機能をまったく理解していませんでした。
あなたが私を助けてくれることを願っています-これをグーグルで検索しましたが、私の問題の解決策は見つかりませんでした.
編集:リンクが更新されました。
php - ユーザーのニックネームでsteamIDを取得
ユーザーの SteamID をニックネームで取得することはできますか? Steam API ドキュメントで解決策が見つかりませんでした。私が見つけた唯一のものは、http://dev.dota2.comの古い投稿です。
これを使用して、GetMatchHistory の player_name オプションを使用して Dota2 API を直接検索できます。その後、リストで 32 ビット ID を見つけて、それを 64 ビット ID に変換できます。
しかし、現在、関数にはパラメーターGetMatchHistory
がありません。player_name
今では必要account_id
です。
では、http://dotabuff.com/search? q=Dendiのような Web サイトはどのようにしてこの情報を取得しているのでしょうか?
javascript - Steam API を動作させるにはどうすればよいですか?
ほんの数日前に、JQuery の「$.ajax()」の使い方を理解したばかりだということから始めましょう。ローカルの .xml および .json ファイルを読み取ることができました。
また、Google マップ API を使用して動的および静的マップをインポートする方法も理解しました。(Googleのドキュメントに従っているだけです)
今、私は学校のプロジェクトに Steam ID を使用することを考えていましたが、次のエラーが発生し続けます:
(キーを取り出したところ、生成されたキーはhttp://local.mysite.comへのアクセスを許可すると想定されています)
これが私のコードです:
何が起こっているのか知っている人はいますか?私はこれを機能させることができないようです。
rest - Steam Web API で言語を設定する
達成した実績のリストを取得しようとしていますが、実績の説明を取得できません。また、言語パラメーターを受け入れていないようです。
公式ドキュメントに基づいて、このURLを使用しようとしました:
また、値、およびを使用して、パラメーターlang
とを試しました。何もうまくいきませんでした。language
de_DE
en
en_US
php - Steam API: クエリが常に機能するとは限らない
私はSteam Apiを使用しており、このコードを使用してSteamサーバーにクエリを送信しています.$urlはクエリです
ただし、約 50% の確率でしか機能しません。残りの半分の時間はエラーが発生します
低速アセット API サーバーのリクエストを拒否しています。150 保留中 150 許可済み
私が使用するクエリの例は次のとおりです。
http://api.steampowered.com/ISteamEconomy/GetAssetPrices/v0001/?key= $SOME_API_KEY&appid=440&format=json
クエリが完了すると、すべての正しいデータが返されます。
また、クラス ID のリストを渡す必要があるクエリ GetAssetClassInfo() を具体的に使用すると、同様の問題が発生します。機能することもありますが、そう言う場合もあります
アプリ 440 クラス ID 16891096 インスタンス ID 0 の外観を取得できません
私の問題が何か知っていますか?助けてくれてありがとう。