Skip to content

Commit 6b5abdf

Browse files
committed
Updated Interfaces
1 parent 0c094fd commit 6b5abdf

File tree

6 files changed

+71
-2
lines changed

6 files changed

+71
-2
lines changed

lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Match_570.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ public function GetTopLiveGameV1($partner)
8888
{
8989
return $this->_call(__METHOD__, 'GET', array('partner' => $partner));
9090
}
91+
/**
92+
* /IDOTA2Match_570/GetTopWeekendTourneyGames/v1/
93+
*
94+
* @param int32 $partner Which partner's games to use.
95+
* @param int32 $home_division Prefer matches from this division.
96+
*/
97+
public function GetTopWeekendTourneyGamesV1($partner, $home_division = null)
98+
{
99+
return $this->_call(__METHOD__, 'GET', array('partner' => $partner, 'home_division' => $home_division));
100+
}
91101
/**
92102
* /IDOTA2Match_570/GetTournamentPlayerStats/v2/
93103
*

lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Ticket_570.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
use Zyberspace\SteamWebApi\AbstractInterface;
66
class IDOTA2Ticket_570 extends AbstractInterface
77
{
8+
/**
9+
* /IDOTA2Ticket_570/ClaimBadgeReward/v1/
10+
*
11+
* @param uint32 $eventid Event ID
12+
* @param string $BadgeID The badge ID
13+
*/
14+
public function ClaimBadgeRewardV1($eventid, $BadgeID)
15+
{
16+
return $this->_call(__METHOD__, 'GET', array('eventid' => $eventid, 'BadgeID' => $BadgeID));
17+
}
18+
/**
19+
* /IDOTA2Ticket_570/GetSteamIDForBadgeID/v1/
20+
*
21+
* @param string $BadgeID The badge ID
22+
*/
23+
public function GetSteamIDForBadgeIDV1($BadgeID)
24+
{
25+
return $this->_call(__METHOD__, 'GET', array('BadgeID' => $BadgeID));
26+
}
827
/**
928
* /IDOTA2Ticket_570/SetSteamAccountPurchased/v1/
1029
*

lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_570.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
use Zyberspace\SteamWebApi\AbstractInterface;
66
class IEconItems_570 extends AbstractInterface
77
{
8+
/**
9+
* /IEconItems_570/GetEquippedPlayerItems/v1/
10+
*
11+
* @param uint64 $steamid The Steam ID to fetch items for
12+
* @param uint32 $class_id Return items equipped for this class id
13+
*/
14+
public function GetEquippedPlayerItemsV1($steamid, $class_id)
15+
{
16+
return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'class_id' => $class_id));
17+
}
818
/**
919
* /IEconItems_570/GetPlayerItems/v1/
1020
*

lib/Zyberspace/SteamWebApi/Interfaces/IEconService.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
use Zyberspace\SteamWebApi\AbstractInterface;
66
class IEconService extends AbstractInterface
77
{
8+
/**
9+
* /IEconService/GetTradeHistory/v1/
10+
*
11+
* @param uint32 $max_trades The number of trades to return information for
12+
* @param uint32 $start_after_time The time of the last trade shown on the previous page of results, or the time of the first trade if navigating back
13+
* @param uint64 $start_after_tradeid The tradeid shown on the previous page of results, or the ID of the first trade if navigating back
14+
* @param bool $navigating_back The user wants the previous page of results, so return the previous max_trades trades before the start time and ID
15+
* @param bool $get_descriptions If set, the item display data for the items included in the returned trades will also be returned
16+
* @param string $language The language to use when loading item display data
17+
* @param bool $include_failed
18+
* @param bool $include_total If set, the total number of trades the account has participated in will be included in the response
19+
*/
20+
public function GetTradeHistoryV1($max_trades, $start_after_time, $start_after_tradeid, $navigating_back, $get_descriptions, $language, $include_failed, $include_total)
21+
{
22+
return $this->_call(__METHOD__, 'GET', array('max_trades' => $max_trades, 'start_after_time' => $start_after_time, 'start_after_tradeid' => $start_after_tradeid, 'navigating_back' => $navigating_back, 'get_descriptions' => $get_descriptions, 'language' => $language, 'include_failed' => $include_failed, 'include_total' => $include_total));
23+
}
824
/**
925
* /IEconService/GetTradeOffers/v1/
1026
*

lib/Zyberspace/SteamWebApi/Interfaces/IPublishedFileService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class IPublishedFileService extends AbstractInterface
2727
* @param int32 $language Language to search in and also what gets returned. Defaults to English.
2828
* @param {message} $required_kv_tags Required key-value tags to match on.
2929
* @param bool $totalonly (Optional) If true, only return the total number of files that satisfy this query.
30+
* @param bool $ids_only (Optional) If true, only return the published file ids of files that satisfy this query.
3031
* @param bool $return_vote_data Return vote data
3132
* @param bool $return_tags Return tags in the file details
3233
* @param bool $return_kv_tags Return key-value tags in the file details
@@ -36,8 +37,8 @@ class IPublishedFileService extends AbstractInterface
3637
* @param bool $return_for_sale_data Return pricing information, if applicable
3738
* @param bool $return_metadata Populate the metadata
3839
*/
39-
public function QueryFilesV1($query_type, $page, $numperpage = null, $creator_appid, $appid, $requiredtags, $excludedtags, $match_all_tags = null, $required_flags, $omitted_flags, $search_text, $filetype, $child_publishedfileid, $days, $include_recent_votes_only, $cache_max_age_seconds = null, $language = null, $required_kv_tags, $totalonly, $return_vote_data, $return_tags, $return_kv_tags, $return_previews, $return_children, $return_short_description, $return_for_sale_data, $return_metadata = null)
40+
public function QueryFilesV1($query_type, $page, $numperpage = null, $creator_appid, $appid, $requiredtags, $excludedtags, $match_all_tags = null, $required_flags, $omitted_flags, $search_text, $filetype, $child_publishedfileid, $days, $include_recent_votes_only, $cache_max_age_seconds = null, $language = null, $required_kv_tags, $totalonly, $ids_only, $return_vote_data, $return_tags, $return_kv_tags, $return_previews, $return_children, $return_short_description, $return_for_sale_data, $return_metadata = null)
4041
{
41-
return $this->_call(__METHOD__, 'GET', array('query_type' => $query_type, 'page' => $page, 'numperpage' => $numperpage, 'creator_appid' => $creator_appid, 'appid' => $appid, 'requiredtags' => $requiredtags, 'excludedtags' => $excludedtags, 'match_all_tags' => $match_all_tags, 'required_flags' => $required_flags, 'omitted_flags' => $omitted_flags, 'search_text' => $search_text, 'filetype' => $filetype, 'child_publishedfileid' => $child_publishedfileid, 'days' => $days, 'include_recent_votes_only' => $include_recent_votes_only, 'cache_max_age_seconds' => $cache_max_age_seconds, 'language' => $language, 'required_kv_tags' => $required_kv_tags, 'totalonly' => $totalonly, 'return_vote_data' => $return_vote_data, 'return_tags' => $return_tags, 'return_kv_tags' => $return_kv_tags, 'return_previews' => $return_previews, 'return_children' => $return_children, 'return_short_description' => $return_short_description, 'return_for_sale_data' => $return_for_sale_data, 'return_metadata' => $return_metadata));
42+
return $this->_call(__METHOD__, 'GET', array('query_type' => $query_type, 'page' => $page, 'numperpage' => $numperpage, 'creator_appid' => $creator_appid, 'appid' => $appid, 'requiredtags' => $requiredtags, 'excludedtags' => $excludedtags, 'match_all_tags' => $match_all_tags, 'required_flags' => $required_flags, 'omitted_flags' => $omitted_flags, 'search_text' => $search_text, 'filetype' => $filetype, 'child_publishedfileid' => $child_publishedfileid, 'days' => $days, 'include_recent_votes_only' => $include_recent_votes_only, 'cache_max_age_seconds' => $cache_max_age_seconds, 'language' => $language, 'required_kv_tags' => $required_kv_tags, 'totalonly' => $totalonly, 'ids_only' => $ids_only, 'return_vote_data' => $return_vote_data, 'return_tags' => $return_tags, 'return_kv_tags' => $return_kv_tags, 'return_previews' => $return_previews, 'return_children' => $return_children, 'return_short_description' => $return_short_description, 'return_for_sale_data' => $return_for_sale_data, 'return_metadata' => $return_metadata));
4243
}
4344
}

lib/Zyberspace/SteamWebApi/Interfaces/ISteamCDN.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,17 @@ public function SetClientFiltersV1($cdnname, $allowedipblocks = null, $allowedas
1717
{
1818
return $this->_call(__METHOD__, 'POST', array('cdnname' => $cdnname, 'allowedipblocks' => $allowedipblocks, 'allowedasns' => $allowedasns, 'allowedipcountries' => $allowedipcountries));
1919
}
20+
/**
21+
* /ISteamCDN/SetPerformanceStats/v1/
22+
*
23+
* @param string $cdnname Steam name of CDN property
24+
* @param uint32 $mbps_sent Outgoing network traffic in Mbps
25+
* @param uint32 $mbps_recv Incoming network traffic in Mbps
26+
* @param uint32 $cpu_percent Percent CPU load
27+
* @param uint32 $cache_hit_percent Percent cache hits
28+
*/
29+
public function SetPerformanceStatsV1($cdnname, $mbps_sent = null, $mbps_recv = null, $cpu_percent = null, $cache_hit_percent = null)
30+
{
31+
return $this->_call(__METHOD__, 'POST', array('cdnname' => $cdnname, 'mbps_sent' => $mbps_sent, 'mbps_recv' => $mbps_recv, 'cpu_percent' => $cpu_percent, 'cache_hit_percent' => $cache_hit_percent));
32+
}
2033
}

0 commit comments

Comments
 (0)