Search the Community
Showing results for tags 'PHP'.
-
I created a gist [https://gist.github.com/IggsGrey/7faef598e77cfc0609682ad9eb0cb66a] illustrating how to fetch a user's inventory and price individual items using backpack.tf's API. For fear of misleading anyone, I would like some help determining if the procedure for determining item prices is correct. I am doing this because I noticed there are so few examples and implementations of steam and pricing in PHP. For backpack.tf for instance, I found literally no example available for determining prices from steam's inventory API. Any pointers would be helpful to help other devs to not suffer the way I did. (non-steam user who had to develop a steam inventory pricing app)
- 3 replies
-
- php
- backpack.tf
-
(and 1 more)
Tagged with:
-
I know the steam api doesnt have an api to send steam tradeoffers in php how can i send one by trade link? I want to have a site that u Select items to buy and it will send trade offers with those items and wandering how to do it from php with the trade offer link
-
Hello, Guys! I have a few questions. What is difference between this urls? 1. https://steamcommunity.com/mobileconf/conf?p= 2. https://steamcommunity.com/mobileconf/ajaxop?op= How i understood to confirm some trade i need to use https://steamcommunity.com/mobileconf/ajaxop?op= Now i have this code: Parameters: $identity_secret = 'J**************************g=';$time = time();$tag = 'conf';// ---------> base64 confirmation key $buf = pack('NNa*', 0, $time, $tag); $hmac = hash_hmac('sha1', $buf, $identity_secret, true); $k = base64_encode($hmac);// ^--------- base64 confirmation key $steamid = '76561198252188406';$deviceid = 'android:' . preg_replace('/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12}).*$/', '$1-$2-$3-$4-$5', sha1($steamid)); And create final url for post request:$url = 'https://steamcommunity.com/mobileconf/ajaxop?op=allow&p='.$deviceid.'&a='.$steamid.'&k='.$k.'&t='.$time.'&m=android&tag=conf'; But i get this: "{"success":false}" That is the problem? Maybe i need some more parapeters or i generate something not right?