├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── lib └── Zyberspace │ └── SteamWebApi │ ├── AbstractInterface.php │ ├── Client.php │ ├── InterfaceGenerator.php │ └── Interfaces │ ├── IAccountRecoveryService.php │ ├── ICSGOServers_730.php │ ├── ICSGOTournaments_730.php │ ├── ICheatReportingService.php │ ├── IDOTA2AutomatedTourney_205790.php │ ├── IDOTA2AutomatedTourney_570.php │ ├── IDOTA2Fantasy_205790.php │ ├── IDOTA2Fantasy_570.php │ ├── IDOTA2MatchStats_205790.php │ ├── IDOTA2MatchStats_570.php │ ├── IDOTA2Match_205790.php │ ├── IDOTA2Match_570.php │ ├── IDOTA2StreamSystem_205790.php │ ├── IDOTA2StreamSystem_570.php │ ├── IDOTA2Teams_205790.php │ ├── IDOTA2Teams_570.php │ ├── IDOTA2Ticket_205790.php │ ├── IDOTA2Ticket_570.php │ ├── IEconDOTA2_205790.php │ ├── IEconDOTA2_570.php │ ├── IEconItems_205790.php │ ├── IEconItems_218620.php │ ├── IEconItems_221540.php │ ├── IEconItems_238460.php │ ├── IEconItems_440.php │ ├── IEconItems_570.php │ ├── IEconItems_620.php │ ├── IEconItems_730.php │ ├── IEconItems_841.php │ ├── IEconService.php │ ├── IGCVersion_205790.php │ ├── IGCVersion_440.php │ ├── IGCVersion_570.php │ ├── IGCVersion_730.php │ ├── IGameServersService.php │ ├── IInventoryService.php │ ├── IPlayerService.php │ ├── IPortal2Leaderboards_620.php │ ├── IPortal2Leaderboards_841.php │ ├── IPublishedFileService.php │ ├── ISteamApps.php │ ├── ISteamBitPay.php │ ├── ISteamCDN.php │ ├── ISteamDirectory.php │ ├── ISteamEconomy.php │ ├── ISteamEnvoy.php │ ├── ISteamNews.php │ ├── ISteamPayPalPaymentsHub.php │ ├── ISteamRemoteStorage.php │ ├── ISteamUser.php │ ├── ISteamUserAuth.php │ ├── ISteamUserOAuth.php │ ├── ISteamUserStats.php │ ├── ISteamWebAPIUtil.php │ ├── ISteamWebUserPresenceOAuth.php │ ├── ITFItems_440.php │ ├── ITFPromos_205790.php │ ├── ITFPromos_440.php │ ├── ITFPromos_570.php │ ├── ITFPromos_620.php │ ├── ITFPromos_730.php │ ├── ITFPromos_841.php │ └── ITFSystem_440.php └── phpdoc.dist.xml /.gitignore: -------------------------------------------------------------------------------- 1 | /composer.lock 2 | /.apikey 3 | /vendor/ 4 | /phpdoc/ 5 | /.project 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | zyberspace/steam-web-api-client 2 | =============================== 3 | Automatically generated api client for the [Steam Web API](https://developer.valvesoftware.com/wiki/Steam_Web_API) in style of the [google-api-php-client](https://github.com/google/google-api-php-client/). 4 | 5 | [![Packagist](https://img.shields.io/packagist/v/zyberspace/steam-web-api-client.svg)](https://packagist.org/packages/zyberspace/steam-web-api-client) 6 | [![License](https://img.shields.io/packagist/l/zyberspace/steam-web-api-client.svg)](https://www.mozilla.org/MPL/2.0/) 7 | 8 | Automatically generated? 9 | ------------------------ 10 | Yeah, every API interface (those are not php interfaces) got generated automatically from the [`/ISteamWebAPIUtil/GetSupportedAPIList/v1/`](https://github.com/zyberspace/php-steam-web-api-client/blob/master/lib/Zyberspace/SteamWebApi/Interfaces/ISteamWebAPIUtil.php#L16-L23) method. Only the classes outside of the `Interfaces` directory are written from hand. 11 | 12 | This way it is easy for me to keep the api updated because i just need to run the generation command every time valve changes something. 13 | 14 | Installation 15 | ------------ 16 | 17 | In your project-root: 18 | 19 | ```shell 20 | composer require --update-no-dev zyberspace/steam-web-api-client 21 | ``` 22 | Composer will then automatically add the package to your project requirements and install it (also creates the `composer.json` if you don't have one already). 23 | 24 | Client structure 25 | ---------------- 26 | The client is structured in 3 peaces: 27 | 28 | - The `Client` class which saves your api key and takes care of the actual api calls. 29 | - The api interfaces which are automatically generated and provide the api methods to call. 30 | - The `InterfaceGenerator` which generated the interfaces. **You don't need this one except you want to update the saved interface classes.** 31 | (Use it by installing the dev dependencies and the execute `composer generate-interfaces [your api key]`.) 32 | 33 | Quickstart 34 | ---------- 35 | If you installed the client with composer like above and already [obtained](http://steamcommunity.com/dev/apikey) your api key from valve these are the 4 steps to use the api: 36 | 37 | 1. Require the composer autoloader 38 | 39 | ```php 40 | require('vendor/autoload.php'); 41 | ``` 42 | 43 | 2. Create the Steam Web API Client 44 | 45 | ```php 46 | $client = new \Zyberspace\SteamWebApi\Client('[your api key goes here]'); 47 | ``` 48 | 49 | 3. Create an instance of the api interface you want to use 50 | 51 | ```php 52 | $steamUser = new \Zyberspace\SteamWebApi\Interfaces\ISteamUser($client); 53 | ``` 54 | 55 | 4. Make your call to the method you want to use 56 | 57 | ```php 58 | $response = $steamUser->GetPlayerSummariesV2('76561198059720690'); 59 | ``` 60 | 61 | Every method returns an object build from the json response. If you want to know more about the response format of every specific method, check the [Steam Web API documentation](https://developer.valvesoftware.com/wiki/Steam_Web_API). 62 | 63 | ```php 64 | require('vendor/autoload.php'); 65 | 66 | $client = new \Zyberspace\SteamWebApi\Client($_ENV['STEAM_WEB_API_KEY']); 67 | $steamUser = new \Zyberspace\SteamWebApi\Interfaces\ISteamUser($client); 68 | $response = $steamUser->GetPlayerSummariesV2(implode(',', $steamIds)); 69 | 70 | var_dump($response); 71 | ``` 72 | 73 | Working with multiple optional arguments 74 | ---------------------------------------- 75 | 76 | If the method you need has multiple optional arguments but you don't want to use all of them, set the non-needed arguments to `null`. This is also the default value for them and will therefore be ignored by the client. 77 | 78 | Documentation 79 | ------------- 80 | To create the docs, just run `phpdoc` in the the project-root. 81 | An online-version is available at [phpdoc.zyberware.org/zyberspace/steam-web-api-client](http://phpdoc.zyberware.org/zyberspace/steam-web-api-client/). 82 | 83 | For more information about the api interfaces and the methods please refer to the [Steam Web API documentation](https://developer.valvesoftware.com/wiki/Steam_Web_API). 84 | 85 | License 86 | ------- 87 | This software is licensed under the [Mozilla Public License v. 2.0](http://mozilla.org/MPL/2.0/). For more information, read the file `LICENSE`. 88 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zyberspace/steam-web-api-client", 3 | "description": "Automatically generated api client for the Steam Web API in style of the google-api-php-client.", 4 | "keywords": ["steam", "web", "api", "client", "automatically", "generated"], 5 | "type": "library", 6 | "license": "MPL-2.0", 7 | "homepage": "https://github.com/zyberspace/php-steam-web-api-client", 8 | "support": { 9 | "email": "zyberspace@zyberware.org", 10 | "issues": "https://github.com/zyberspace/php-steam-web-api-client/issues", 11 | "source": "https://github.com/zyberspace/php-steam-web-api-client", 12 | "docs": "https://phpdoc.zyberware.org/zyberspace/steam-web-api-client/" 13 | }, 14 | "authors": [ 15 | { 16 | "name": "zyberspace", 17 | "email": "zyberspace@zyberware.org" 18 | } 19 | ], 20 | "autoload": { 21 | "psr-4": { 22 | "Zyberspace\\SteamWebApi\\": "lib/Zyberspace/SteamWebApi/" 23 | } 24 | }, 25 | "require": { 26 | "guzzlehttp/guzzle": "~6.0" 27 | }, 28 | "require-dev": { 29 | "nikic/php-parser": "~2.0" 30 | }, 31 | "scripts": { 32 | "generate-interfaces": "Zyberspace\\SteamWebApi\\InterfaceGenerator::generateAll" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/AbstractInterface.php: -------------------------------------------------------------------------------- 1 | 4 | * 5 | * This Source Code Form is subject to the terms of the Mozilla Public 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this 7 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | */ 9 | namespace Zyberspace\SteamWebApi; 10 | 11 | abstract class AbstractInterface 12 | { 13 | protected $_client; 14 | 15 | public function __construct(Client $client) 16 | { 17 | $this->_client = $client; 18 | } 19 | 20 | protected function _call($callee, $httpMethod, $parameters) 21 | { 22 | $trimmedCallee = substr($callee, strlen(__NAMESPACE__ . '\\Interfaces\\')); 23 | preg_match('%^(I.+)::(.+)V(\d+)$%', $trimmedCallee, $matches); 24 | 25 | array_shift($matches); 26 | list($interface, $method, $version) = $matches; 27 | 28 | //Unset parameters with null values 29 | foreach ($parameters as $key => $parameter) { 30 | if ($parameter === null) { 31 | unset($parameters[$key]); 32 | } 33 | } 34 | 35 | return $this->_client->call($interface, $method, $version, $httpMethod, $parameters); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Client.php: -------------------------------------------------------------------------------- 1 | 4 | * 5 | * This Source Code Form is subject to the terms of the Mozilla Public 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this 7 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | */ 9 | namespace Zyberspace\SteamWebApi; 10 | 11 | class Client 12 | { 13 | const BASE_URL = 'https://api.steampowered.com/'; 14 | 15 | protected $_apiKey; 16 | 17 | /** 18 | * @var \GuzzleHttp\Client 19 | */ 20 | protected $_guzzleClient; 21 | 22 | public function __construct($apiKey) 23 | { 24 | $this->_apiKey = $apiKey; 25 | 26 | $this->_guzzleClient = new \GuzzleHttp\Client(array( 27 | 'base_uri' => self::BASE_URL 28 | )); 29 | } 30 | 31 | public function call($interface, $method, $version, $httpMethod, $parameters) 32 | { 33 | $path = implode('/', array($interface, $method, 'v' . $version)); 34 | 35 | $parameters['key'] = $this->_apiKey; 36 | $response = $this->_guzzleClient->request($httpMethod, $path, array( 37 | 'query' => $parameters 38 | )); 39 | 40 | return json_decode($response->getBody()->getContents()); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/InterfaceGenerator.php: -------------------------------------------------------------------------------- 1 | 4 | * 5 | * This Source Code Form is subject to the terms of the Mozilla Public 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this 7 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 | */ 9 | namespace Zyberspace\SteamWebApi; 10 | 11 | require_once('vendor/autoload.php'); 12 | 13 | use Composer\Script\Event; 14 | use PhpParser\BuilderFactory; 15 | use PhpParser\PrettyPrinter; 16 | use PhpParser\Node; 17 | 18 | class InterfaceGenerator 19 | { 20 | static protected function _getApiKey(Event $event) { 21 | //Check if api key got passed as argument 22 | $arguments = $event->getArguments(); 23 | if (isset($arguments[0])) { 24 | return $arguments[0]; 25 | } 26 | 27 | //Check for `.apikey` file in the working directory 28 | $composer = $event->getComposer(); 29 | $apiKeyFile = realpath(implode(DIRECTORY_SEPARATOR, [__DIR__, '..', '..', '..', '.apikey'])); 30 | if (is_readable($apiKeyFile)) { 31 | return trim(file_get_contents($apiKeyFile)); 32 | } 33 | 34 | //No api key found, throw Exception 35 | throw new \Exception('Please provide a valid api key. Pass it as argument or put it in the `.apikey` file.'); 36 | } 37 | static public function generateAll(Event $event) 38 | { 39 | $client = new Client(static::_getApiKey($event)); 40 | $steamWebAPIUtil = new Interfaces\ISteamWebAPIUtil($client); 41 | 42 | $interfaces = $steamWebAPIUtil->GetSupportedAPIListV1()->apilist->interfaces; 43 | foreach ($interfaces as $interface) { 44 | $interaceGenerator = new self($interface); 45 | $interaceGenerator->saveToFile(); 46 | } 47 | } 48 | 49 | const INTERFACE_NAMESPACE = 'Zyberspace\\SteamWebApi\\Interfaces'; 50 | 51 | protected $_interfaceApiDefinition; 52 | 53 | public function __construct($interfaceApiDefintion) 54 | { 55 | $this->_interfaceApiDefinition = $interfaceApiDefintion; 56 | } 57 | 58 | protected function _escapeVariableName($variableName) 59 | { 60 | preg_match('%[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*%', $variableName, $matches); 61 | return $matches[0]; 62 | } 63 | 64 | public function generateNode() 65 | { 66 | $factory = new BuilderFactory(); 67 | 68 | $class = $factory->class($this->_interfaceApiDefinition->name) 69 | ->extend('AbstractInterface'); 70 | foreach($this->_interfaceApiDefinition->methods as $methodApiDefinition) { 71 | $docComment = '/**' . "\n" . ' * ' . implode('/', array( 72 | '', 73 | $this->_interfaceApiDefinition->name, 74 | $methodApiDefinition->name, 75 | 'v' . $methodApiDefinition->version, 76 | '' 77 | )) . "\n" . ' *' . "\n"; 78 | 79 | $methodParams = array(); 80 | $arrayItems = array(); 81 | foreach ($methodApiDefinition->parameters as $parameterApiDefinition) { 82 | $parameterName = $this->_escapeVariableName($parameterApiDefinition->name); 83 | if ($parameterApiDefinition->name !== 'key') { 84 | $methodParam = $factory->param($parameterName); 85 | if ($parameterApiDefinition->optional !== false) { 86 | $methodParam->setDefault(null); 87 | } 88 | $methodParams[] = $methodParam; 89 | 90 | $arrayItems[] = new Node\Expr\ArrayItem( 91 | new Node\Expr\Variable($parameterName), 92 | new Node\Scalar\String_($parameterApiDefinition->name) 93 | ); 94 | 95 | $docComment .= ' * @param ' . $parameterApiDefinition->type . ' $' . $parameterName; 96 | if (isset($parameterApiDefinition->description) && $parameterApiDefinition->description !== '') { 97 | $docComment .= ' ' . $parameterApiDefinition->description; 98 | } 99 | $docComment .= "\n"; 100 | } 101 | } 102 | $docComment .= ' */'; 103 | 104 | $method = $factory->method($methodApiDefinition->name . 'V' . $methodApiDefinition->version) 105 | ->makePublic() 106 | ->addStmt(new Node\Stmt\Return_(new Node\Expr\MethodCall( 107 | new Node\Expr\Variable('this'), 108 | '_call', 109 | array( 110 | new Node\Scalar\MagicConst\Method(), 111 | new Node\Scalar\String_($methodApiDefinition->httpmethod), 112 | new Node\Expr\Array_($arrayItems) 113 | ) 114 | ))); 115 | foreach ($methodParams as $methodParam) { 116 | $method->addParam($methodParam); 117 | } 118 | $method->setDocComment($docComment); 119 | 120 | $class->addStmt($method); 121 | } 122 | 123 | $node = $factory->namespace(self::INTERFACE_NAMESPACE) 124 | ->addStmt($factory->use('Zyberspace\SteamWebApi\AbstractInterface')) 125 | ->addStmt($class) 126 | ->getNode(); 127 | 128 | return $node; 129 | } 130 | 131 | public function saveToFile() 132 | { 133 | $node = $this->generateNode(); 134 | 135 | $prettyPrinter = new PrettyPrinter\Standard(); 136 | file_put_contents(__DIR__ . '/Interfaces/' . $this->_interfaceApiDefinition->name . '.php', 137 | $prettyPrinter->prettyPrintFile(array($node)) . PHP_EOL); 138 | 139 | echo $this->_interfaceApiDefinition->name . PHP_EOL; 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IAccountRecoveryService.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('loginuser_list' => $loginuser_list, 'install_config' => $install_config, 'shasentryfile' => $shasentryfile, 'machineid' => $machineid)); 19 | } 20 | /** 21 | * /IAccountRecoveryService/RetrieveAccountRecoveryData/v1/ 22 | * 23 | * @param string $requesthandle 24 | */ 25 | public function RetrieveAccountRecoveryDataV1($requesthandle) 26 | { 27 | return $this->_call(__METHOD__, 'POST', array('requesthandle' => $requesthandle)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ICSGOServers_730.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ICSGOTournaments_730.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('event' => $event, 'steamid' => $steamid, 'steamidkey' => $steamidkey)); 18 | } 19 | /** 20 | * /ICSGOTournaments_730/GetTournamentItems/v1/ 21 | * 22 | * @param uint32 $event The event ID 23 | * @param uint64 $steamid The SteamID of the user inventory 24 | * @param string $steamidkey Authentication obtained from the SteamID 25 | */ 26 | public function GetTournamentItemsV1($event, $steamid, $steamidkey) 27 | { 28 | return $this->_call(__METHOD__, 'GET', array('event' => $event, 'steamid' => $steamid, 'steamidkey' => $steamidkey)); 29 | } 30 | /** 31 | * /ICSGOTournaments_730/GetTournamentLayout/v1/ 32 | * 33 | * @param uint32 $event The event ID 34 | */ 35 | public function GetTournamentLayoutV1($event) 36 | { 37 | return $this->_call(__METHOD__, 'GET', array('event' => $event)); 38 | } 39 | /** 40 | * /ICSGOTournaments_730/GetTournamentPredictions/v1/ 41 | * 42 | * @param uint32 $event The event ID 43 | * @param uint64 $steamid The SteamID of the user inventory 44 | * @param string $steamidkey Authentication obtained from the SteamID 45 | */ 46 | public function GetTournamentPredictionsV1($event, $steamid, $steamidkey) 47 | { 48 | return $this->_call(__METHOD__, 'GET', array('event' => $event, 'steamid' => $steamid, 'steamidkey' => $steamidkey)); 49 | } 50 | /** 51 | * /ICSGOTournaments_730/UploadTournamentFantasyLineup/v1/ 52 | * 53 | * @param uint32 $event The event ID 54 | * @param uint64 $steamid The SteamID of the user inventory 55 | * @param string $steamidkey Authentication obtained from the SteamID 56 | * @param uint32 $sectionid Event section id 57 | * @param uint32 $pickid0 PickID to select for the slot 58 | * @param uint64 $itemid0 ItemID to lock in for the pick 59 | * @param uint32 $pickid1 PickID to select for the slot 60 | * @param uint64 $itemid1 ItemID to lock in for the pick 61 | * @param uint32 $pickid2 PickID to select for the slot 62 | * @param uint64 $itemid2 ItemID to lock in for the pick 63 | * @param uint32 $pickid3 PickID to select for the slot 64 | * @param uint64 $itemid3 ItemID to lock in for the pick 65 | * @param uint32 $pickid4 PickID to select for the slot 66 | * @param uint64 $itemid4 ItemID to lock in for the pick 67 | */ 68 | public function UploadTournamentFantasyLineupV1($event, $steamid, $steamidkey, $sectionid, $pickid0, $itemid0, $pickid1, $itemid1, $pickid2, $itemid2, $pickid3, $itemid3, $pickid4, $itemid4) 69 | { 70 | return $this->_call(__METHOD__, 'POST', array('event' => $event, 'steamid' => $steamid, 'steamidkey' => $steamidkey, 'sectionid' => $sectionid, 'pickid0' => $pickid0, 'itemid0' => $itemid0, 'pickid1' => $pickid1, 'itemid1' => $itemid1, 'pickid2' => $pickid2, 'itemid2' => $itemid2, 'pickid3' => $pickid3, 'itemid3' => $itemid3, 'pickid4' => $pickid4, 'itemid4' => $itemid4)); 71 | } 72 | /** 73 | * /ICSGOTournaments_730/UploadTournamentPredictions/v1/ 74 | * 75 | * @param uint32 $event The event ID 76 | * @param uint64 $steamid The SteamID of the user inventory 77 | * @param string $steamidkey Authentication obtained from the SteamID 78 | * @param uint32 $sectionid Event section id 79 | * @param uint32 $groupid Event group id 80 | * @param uint32 $index Index in group 81 | * @param uint32 $pickid Pick ID to select 82 | * @param uint64 $itemid ItemID to lock in for the pick 83 | */ 84 | public function UploadTournamentPredictionsV1($event, $steamid, $steamidkey, $sectionid, $groupid, $index, $pickid, $itemid) 85 | { 86 | return $this->_call(__METHOD__, 'POST', array('event' => $event, 'steamid' => $steamid, 'steamidkey' => $steamidkey, 'sectionid' => $sectionid, 'groupid' => $groupid, 'index' => $index, 'pickid' => $pickid, 'itemid' => $itemid)); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ICheatReportingService.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('steamid' => $steamid, 'appid' => $appid, 'pathandfilename' => $pathandfilename, 'webcheaturl' => $webcheaturl, 'time_now' => $time_now, 'time_started' => $time_started, 'time_stopped' => $time_stopped, 'cheatname' => $cheatname, 'game_process_id' => $game_process_id, 'cheat_process_id' => $cheat_process_id, 'cheat_param_1' => $cheat_param_1, 'cheat_param_2' => $cheat_param_2)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2AutomatedTourney_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2AutomatedTourney_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Fantasy_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('FantasyLeagueID' => $FantasyLeagueID, 'StartTime' => $StartTime, 'EndTime' => $EndTime, 'matchid' => $matchid, 'SeriesID' => $SeriesID, 'PlayerAccountID' => $PlayerAccountID)); 21 | } 22 | /** 23 | * /IDOTA2Fantasy_205790/GetPlayerOfficialInfo/v1/ 24 | * 25 | * @param uint32 $accountid The account ID to look up 26 | */ 27 | public function GetPlayerOfficialInfoV1($accountid) 28 | { 29 | return $this->_call(__METHOD__, 'GET', array('accountid' => $accountid)); 30 | } 31 | /** 32 | * /IDOTA2Fantasy_205790/GetProPlayerList/v1/ 33 | * 34 | */ 35 | public function GetProPlayerListV1() 36 | { 37 | return $this->_call(__METHOD__, 'GET', array()); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Fantasy_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('FantasyLeagueID' => $FantasyLeagueID, 'StartTime' => $StartTime, 'EndTime' => $EndTime, 'matchid' => $matchid, 'SeriesID' => $SeriesID, 'PlayerAccountID' => $PlayerAccountID)); 21 | } 22 | /** 23 | * /IDOTA2Fantasy_570/GetPlayerOfficialInfo/v1/ 24 | * 25 | * @param uint32 $accountid The account ID to look up 26 | */ 27 | public function GetPlayerOfficialInfoV1($accountid) 28 | { 29 | return $this->_call(__METHOD__, 'GET', array('accountid' => $accountid)); 30 | } 31 | /** 32 | * /IDOTA2Fantasy_570/GetProPlayerList/v1/ 33 | * 34 | */ 35 | public function GetProPlayerListV1() 36 | { 37 | return $this->_call(__METHOD__, 'GET', array()); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2MatchStats_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('server_steam_id' => $server_steam_id)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2MatchStats_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('server_steam_id' => $server_steam_id)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Match_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /IDOTA2Match_205790/GetLiveLeagueGames/v1/ 18 | * 19 | * @param uint32 $league_id Only show matches of the specified league id 20 | * @param uint64 $match_id Only show matches of the specified match id 21 | */ 22 | public function GetLiveLeagueGamesV1($league_id = null, $match_id = null) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('league_id' => $league_id, 'match_id' => $match_id)); 25 | } 26 | /** 27 | * /IDOTA2Match_205790/GetMatchDetails/v1/ 28 | * 29 | * @param uint64 $match_id Match id 30 | */ 31 | public function GetMatchDetailsV1($match_id) 32 | { 33 | return $this->_call(__METHOD__, 'GET', array('match_id' => $match_id)); 34 | } 35 | /** 36 | * /IDOTA2Match_205790/GetMatchHistory/v1/ 37 | * 38 | * @param uint32 $hero_id The ID of the hero that must be in the matches being queried 39 | * @param uint32 $game_mode Which game mode to return matches for 40 | * @param uint32 $skill The average skill range of the match, these can be [1-3] with lower numbers being lower skill. Ignored if an account ID is specified 41 | * @param string $min_players Minimum number of human players that must be in a match for it to be returned 42 | * @param string $account_id An account ID to get matches from. This will fail if the user has their match history hidden 43 | * @param string $league_id The league ID to return games from 44 | * @param uint64 $start_at_match_id The minimum match ID to start from 45 | * @param string $matches_requested The number of requested matches to return 46 | * @param string $tournament_games_only Whether or not tournament games should only be returned 47 | */ 48 | public function GetMatchHistoryV1($hero_id = null, $game_mode = null, $skill = null, $min_players = null, $account_id = null, $league_id = null, $start_at_match_id = null, $matches_requested = null, $tournament_games_only = null) 49 | { 50 | return $this->_call(__METHOD__, 'GET', array('hero_id' => $hero_id, 'game_mode' => $game_mode, 'skill' => $skill, 'min_players' => $min_players, 'account_id' => $account_id, 'league_id' => $league_id, 'start_at_match_id' => $start_at_match_id, 'matches_requested' => $matches_requested, 'tournament_games_only' => $tournament_games_only)); 51 | } 52 | /** 53 | * /IDOTA2Match_205790/GetMatchHistoryBySequenceNum/v1/ 54 | * 55 | * @param uint64 $start_at_match_seq_num 56 | * @param uint32 $matches_requested 57 | */ 58 | public function GetMatchHistoryBySequenceNumV1($start_at_match_seq_num = null, $matches_requested = null) 59 | { 60 | return $this->_call(__METHOD__, 'GET', array('start_at_match_seq_num' => $start_at_match_seq_num, 'matches_requested' => $matches_requested)); 61 | } 62 | /** 63 | * /IDOTA2Match_205790/GetScheduledLeagueGames/v1/ 64 | * 65 | * @param uint32 $date_min The starting time stamp to collect scheduled games from. If ignored, it will use the current time 66 | * @param uint32 $date_max The ending time stamp. If this is more than 7 days past the starting time stamp, it will be clamped to 7 days. 67 | */ 68 | public function GetScheduledLeagueGamesV1($date_min = null, $date_max = null) 69 | { 70 | return $this->_call(__METHOD__, 'GET', array('date_min' => $date_min, 'date_max' => $date_max)); 71 | } 72 | /** 73 | * /IDOTA2Match_205790/GetTeamInfoByTeamID/v1/ 74 | * 75 | * @param uint64 $start_at_team_id 76 | * @param uint32 $teams_requested 77 | */ 78 | public function GetTeamInfoByTeamIDV1($start_at_team_id = null, $teams_requested = null) 79 | { 80 | return $this->_call(__METHOD__, 'GET', array('start_at_team_id' => $start_at_team_id, 'teams_requested' => $teams_requested)); 81 | } 82 | /** 83 | * /IDOTA2Match_205790/GetTopLiveGame/v1/ 84 | * 85 | * @param int32 $partner Which partner's games to use. 86 | */ 87 | public function GetTopLiveGameV1($partner) 88 | { 89 | return $this->_call(__METHOD__, 'GET', array('partner' => $partner)); 90 | } 91 | /** 92 | * /IDOTA2Match_205790/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 | } 101 | /** 102 | * /IDOTA2Match_205790/GetTournamentPlayerStats/v1/ 103 | * 104 | * @param string $account_id 105 | * @param string $league_id 106 | * @param string $hero_id 107 | * @param string $time_frame 108 | * @param uint64 $match_id 109 | * @param uint32 $phase_id 110 | */ 111 | public function GetTournamentPlayerStatsV1($account_id, $league_id = null, $hero_id = null, $time_frame = null, $match_id = null, $phase_id = null) 112 | { 113 | return $this->_call(__METHOD__, 'GET', array('account_id' => $account_id, 'league_id' => $league_id, 'hero_id' => $hero_id, 'time_frame' => $time_frame, 'match_id' => $match_id, 'phase_id' => $phase_id)); 114 | } 115 | /** 116 | * /IDOTA2Match_205790/GetTournamentPlayerStats/v2/ 117 | * 118 | * @param string $account_id 119 | * @param string $league_id 120 | * @param string $hero_id 121 | * @param string $time_frame 122 | * @param uint64 $match_id 123 | * @param uint32 $phase_id 124 | */ 125 | public function GetTournamentPlayerStatsV2($account_id, $league_id = null, $hero_id = null, $time_frame = null, $match_id = null, $phase_id = null) 126 | { 127 | return $this->_call(__METHOD__, 'GET', array('account_id' => $account_id, 'league_id' => $league_id, 'hero_id' => $hero_id, 'time_frame' => $time_frame, 'match_id' => $match_id, 'phase_id' => $phase_id)); 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Match_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /IDOTA2Match_570/GetLiveLeagueGames/v1/ 18 | * 19 | * @param uint32 $league_id Only show matches of the specified league id 20 | * @param uint64 $match_id Only show matches of the specified match id 21 | */ 22 | public function GetLiveLeagueGamesV1($league_id = null, $match_id = null) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('league_id' => $league_id, 'match_id' => $match_id)); 25 | } 26 | /** 27 | * /IDOTA2Match_570/GetMatchDetails/v1/ 28 | * 29 | * @param uint64 $match_id Match id 30 | */ 31 | public function GetMatchDetailsV1($match_id) 32 | { 33 | return $this->_call(__METHOD__, 'GET', array('match_id' => $match_id)); 34 | } 35 | /** 36 | * /IDOTA2Match_570/GetMatchHistory/v1/ 37 | * 38 | * @param uint32 $hero_id The ID of the hero that must be in the matches being queried 39 | * @param uint32 $game_mode Which game mode to return matches for 40 | * @param uint32 $skill The average skill range of the match, these can be [1-3] with lower numbers being lower skill. Ignored if an account ID is specified 41 | * @param string $min_players Minimum number of human players that must be in a match for it to be returned 42 | * @param string $account_id An account ID to get matches from. This will fail if the user has their match history hidden 43 | * @param string $league_id The league ID to return games from 44 | * @param uint64 $start_at_match_id The minimum match ID to start from 45 | * @param string $matches_requested The number of requested matches to return 46 | * @param string $tournament_games_only Whether or not tournament games should only be returned 47 | */ 48 | public function GetMatchHistoryV1($hero_id = null, $game_mode = null, $skill = null, $min_players = null, $account_id = null, $league_id = null, $start_at_match_id = null, $matches_requested = null, $tournament_games_only = null) 49 | { 50 | return $this->_call(__METHOD__, 'GET', array('hero_id' => $hero_id, 'game_mode' => $game_mode, 'skill' => $skill, 'min_players' => $min_players, 'account_id' => $account_id, 'league_id' => $league_id, 'start_at_match_id' => $start_at_match_id, 'matches_requested' => $matches_requested, 'tournament_games_only' => $tournament_games_only)); 51 | } 52 | /** 53 | * /IDOTA2Match_570/GetMatchHistoryBySequenceNum/v1/ 54 | * 55 | * @param uint64 $start_at_match_seq_num 56 | * @param uint32 $matches_requested 57 | */ 58 | public function GetMatchHistoryBySequenceNumV1($start_at_match_seq_num = null, $matches_requested = null) 59 | { 60 | return $this->_call(__METHOD__, 'GET', array('start_at_match_seq_num' => $start_at_match_seq_num, 'matches_requested' => $matches_requested)); 61 | } 62 | /** 63 | * /IDOTA2Match_570/GetScheduledLeagueGames/v1/ 64 | * 65 | * @param uint32 $date_min The starting time stamp to collect scheduled games from. If ignored, it will use the current time 66 | * @param uint32 $date_max The ending time stamp. If this is more than 7 days past the starting time stamp, it will be clamped to 7 days. 67 | */ 68 | public function GetScheduledLeagueGamesV1($date_min = null, $date_max = null) 69 | { 70 | return $this->_call(__METHOD__, 'GET', array('date_min' => $date_min, 'date_max' => $date_max)); 71 | } 72 | /** 73 | * /IDOTA2Match_570/GetTeamInfoByTeamID/v1/ 74 | * 75 | * @param uint64 $start_at_team_id 76 | * @param uint32 $teams_requested 77 | */ 78 | public function GetTeamInfoByTeamIDV1($start_at_team_id = null, $teams_requested = null) 79 | { 80 | return $this->_call(__METHOD__, 'GET', array('start_at_team_id' => $start_at_team_id, 'teams_requested' => $teams_requested)); 81 | } 82 | /** 83 | * /IDOTA2Match_570/GetTopLiveGame/v1/ 84 | * 85 | * @param int32 $partner Which partner's games to use. 86 | */ 87 | public function GetTopLiveGameV1($partner) 88 | { 89 | return $this->_call(__METHOD__, 'GET', array('partner' => $partner)); 90 | } 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 | } 101 | /** 102 | * /IDOTA2Match_570/GetTournamentPlayerStats/v1/ 103 | * 104 | * @param string $account_id 105 | * @param string $league_id 106 | * @param string $hero_id 107 | * @param string $time_frame 108 | * @param uint64 $match_id 109 | * @param uint32 $phase_id 110 | */ 111 | public function GetTournamentPlayerStatsV1($account_id, $league_id = null, $hero_id = null, $time_frame = null, $match_id = null, $phase_id = null) 112 | { 113 | return $this->_call(__METHOD__, 'GET', array('account_id' => $account_id, 'league_id' => $league_id, 'hero_id' => $hero_id, 'time_frame' => $time_frame, 'match_id' => $match_id, 'phase_id' => $phase_id)); 114 | } 115 | /** 116 | * /IDOTA2Match_570/GetTournamentPlayerStats/v2/ 117 | * 118 | * @param string $account_id 119 | * @param string $league_id 120 | * @param string $hero_id 121 | * @param string $time_frame 122 | * @param uint64 $match_id 123 | * @param uint32 $phase_id 124 | */ 125 | public function GetTournamentPlayerStatsV2($account_id, $league_id = null, $hero_id = null, $time_frame = null, $match_id = null, $phase_id = null) 126 | { 127 | return $this->_call(__METHOD__, 'GET', array('account_id' => $account_id, 'league_id' => $league_id, 'hero_id' => $hero_id, 'time_frame' => $time_frame, 'match_id' => $match_id, 'phase_id' => $phase_id)); 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2StreamSystem_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('broadcaster_steam_id' => $broadcaster_steam_id, 'league_id' => $league_id)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2StreamSystem_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('broadcaster_steam_id' => $broadcaster_steam_id, 'league_id' => $league_id)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Teams_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('team_id' => $team_id, 'league_id' => $league_id)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Teams_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('team_id' => $team_id, 'league_id' => $league_id)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Ticket_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('eventid' => $eventid, 'BadgeID' => $BadgeID)); 17 | } 18 | /** 19 | * /IDOTA2Ticket_205790/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 | } 27 | /** 28 | * /IDOTA2Ticket_205790/SetSteamAccountPurchased/v1/ 29 | * 30 | * @param uint32 $eventid Event ID 31 | * @param uint64 $steamid The 64-bit Steam ID 32 | */ 33 | public function SetSteamAccountPurchasedV1($eventid, $steamid) 34 | { 35 | return $this->_call(__METHOD__, 'POST', array('eventid' => $eventid, 'steamid' => $steamid)); 36 | } 37 | /** 38 | * /IDOTA2Ticket_205790/SteamAccountValidForEvent/v1/ 39 | * 40 | * @param uint32 $eventid Event ID 41 | * @param uint64 $steamid The 64-bit Steam ID 42 | */ 43 | public function SteamAccountValidForEventV1($eventid, $steamid) 44 | { 45 | return $this->_call(__METHOD__, 'GET', array('eventid' => $eventid, 'steamid' => $steamid)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IDOTA2Ticket_570.php: -------------------------------------------------------------------------------- 1 | _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 | } 27 | /** 28 | * /IDOTA2Ticket_570/SetSteamAccountPurchased/v1/ 29 | * 30 | * @param uint32 $eventid Event ID 31 | * @param uint64 $steamid The 64-bit Steam ID 32 | */ 33 | public function SetSteamAccountPurchasedV1($eventid, $steamid) 34 | { 35 | return $this->_call(__METHOD__, 'POST', array('eventid' => $eventid, 'steamid' => $steamid)); 36 | } 37 | /** 38 | * /IDOTA2Ticket_570/SteamAccountValidForEvent/v1/ 39 | * 40 | * @param uint32 $eventid Event ID 41 | * @param uint64 $steamid The 64-bit Steam ID 42 | */ 43 | public function SteamAccountValidForEventV1($eventid, $steamid) 44 | { 45 | return $this->_call(__METHOD__, 'GET', array('eventid' => $eventid, 'steamid' => $steamid)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconDOTA2_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('eventid' => $eventid, 'accountid' => $accountid, 'language' => $language)); 18 | } 19 | /** 20 | * /IEconDOTA2_205790/GetGameItems/v1/ 21 | * 22 | * @param string $language The language to provide item names in. 23 | */ 24 | public function GetGameItemsV1($language = null) 25 | { 26 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 27 | } 28 | /** 29 | * /IEconDOTA2_205790/GetHeroes/v1/ 30 | * 31 | * @param string $language The language to provide hero names in. 32 | * @param bool $itemizedonly Return a list of itemized heroes only. 33 | */ 34 | public function GetHeroesV1($language = null, $itemizedonly = null) 35 | { 36 | return $this->_call(__METHOD__, 'GET', array('language' => $language, 'itemizedonly' => $itemizedonly)); 37 | } 38 | /** 39 | * /IEconDOTA2_205790/GetItemIconPath/v1/ 40 | * 41 | * @param string $iconname The item icon name to get the CDN path of 42 | * @param uint32 $icontype The type of image you want. 0 = normal, 1 = large, 2 = ingame 43 | */ 44 | public function GetItemIconPathV1($iconname, $icontype = null) 45 | { 46 | return $this->_call(__METHOD__, 'GET', array('iconname' => $iconname, 'icontype' => $icontype)); 47 | } 48 | /** 49 | * /IEconDOTA2_205790/GetRarities/v1/ 50 | * 51 | * @param string $language The language to provide rarity names in. 52 | */ 53 | public function GetRaritiesV1($language = null) 54 | { 55 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 56 | } 57 | /** 58 | * /IEconDOTA2_205790/GetTournamentPrizePool/v1/ 59 | * 60 | * @param uint32 $leagueid The ID of the league to get the prize pool of 61 | */ 62 | public function GetTournamentPrizePoolV1($leagueid = null) 63 | { 64 | return $this->_call(__METHOD__, 'GET', array('leagueid' => $leagueid)); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconDOTA2_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('eventid' => $eventid, 'accountid' => $accountid, 'language' => $language)); 18 | } 19 | /** 20 | * /IEconDOTA2_570/GetGameItems/v1/ 21 | * 22 | * @param string $language The language to provide item names in. 23 | */ 24 | public function GetGameItemsV1($language = null) 25 | { 26 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 27 | } 28 | /** 29 | * /IEconDOTA2_570/GetHeroes/v1/ 30 | * 31 | * @param string $language The language to provide hero names in. 32 | * @param bool $itemizedonly Return a list of itemized heroes only. 33 | */ 34 | public function GetHeroesV1($language = null, $itemizedonly = null) 35 | { 36 | return $this->_call(__METHOD__, 'GET', array('language' => $language, 'itemizedonly' => $itemizedonly)); 37 | } 38 | /** 39 | * /IEconDOTA2_570/GetItemIconPath/v1/ 40 | * 41 | * @param string $iconname The item icon name to get the CDN path of 42 | * @param uint32 $icontype The type of image you want. 0 = normal, 1 = large, 2 = ingame 43 | */ 44 | public function GetItemIconPathV1($iconname, $icontype = null) 45 | { 46 | return $this->_call(__METHOD__, 'GET', array('iconname' => $iconname, 'icontype' => $icontype)); 47 | } 48 | /** 49 | * /IEconDOTA2_570/GetRarities/v1/ 50 | * 51 | * @param string $language The language to provide rarity names in. 52 | */ 53 | public function GetRaritiesV1($language = null) 54 | { 55 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 56 | } 57 | /** 58 | * /IEconDOTA2_570/GetTournamentPrizePool/v1/ 59 | * 60 | * @param uint32 $leagueid The ID of the league to get the prize pool of 61 | */ 62 | public function GetTournamentPrizePoolV1($leagueid = null) 63 | { 64 | return $this->_call(__METHOD__, 'GET', array('leagueid' => $leagueid)); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'class_id' => $class_id)); 17 | } 18 | /** 19 | * /IEconItems_205790/GetPlayerItems/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | */ 23 | public function GetPlayerItemsV1($steamid) 24 | { 25 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid)); 26 | } 27 | /** 28 | * /IEconItems_205790/GetSchema/v1/ 29 | * 30 | * @param string $language The language to return the names in. Defaults to returning string keys. 31 | */ 32 | public function GetSchemaV1($language = null) 33 | { 34 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 35 | } 36 | /** 37 | * /IEconItems_205790/GetSchemaURL/v1/ 38 | * 39 | */ 40 | public function GetSchemaURLV1() 41 | { 42 | return $this->_call(__METHOD__, 'GET', array()); 43 | } 44 | /** 45 | * /IEconItems_205790/GetStoreMetaData/v1/ 46 | * 47 | * @param string $language The language to results in. 48 | */ 49 | public function GetStoreMetaDataV1($language = null) 50 | { 51 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_218620.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_221540.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_238460.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_440.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | /** 18 | * /IEconItems_440/GetSchema/v1/ 19 | * 20 | * @param string $language The language to return the names in. Defaults to returning string keys. 21 | */ 22 | public function GetSchemaV1($language = null) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 25 | } 26 | /** 27 | * /IEconItems_440/GetSchemaURL/v1/ 28 | * 29 | */ 30 | public function GetSchemaURLV1() 31 | { 32 | return $this->_call(__METHOD__, 'GET', array()); 33 | } 34 | /** 35 | * /IEconItems_440/GetStoreMetaData/v1/ 36 | * 37 | * @param string $language The language to results in. 38 | */ 39 | public function GetStoreMetaDataV1($language = null) 40 | { 41 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 42 | } 43 | /** 44 | * /IEconItems_440/GetStoreStatus/v1/ 45 | * 46 | */ 47 | public function GetStoreStatusV1() 48 | { 49 | return $this->_call(__METHOD__, 'GET', array()); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'class_id' => $class_id)); 17 | } 18 | /** 19 | * /IEconItems_570/GetPlayerItems/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | */ 23 | public function GetPlayerItemsV1($steamid) 24 | { 25 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid)); 26 | } 27 | /** 28 | * /IEconItems_570/GetSchema/v1/ 29 | * 30 | * @param string $language The language to return the names in. Defaults to returning string keys. 31 | */ 32 | public function GetSchemaV1($language = null) 33 | { 34 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 35 | } 36 | /** 37 | * /IEconItems_570/GetSchemaURL/v1/ 38 | * 39 | */ 40 | public function GetSchemaURLV1() 41 | { 42 | return $this->_call(__METHOD__, 'GET', array()); 43 | } 44 | /** 45 | * /IEconItems_570/GetStoreMetaData/v1/ 46 | * 47 | * @param string $language The language to results in. 48 | */ 49 | public function GetStoreMetaDataV1($language = null) 50 | { 51 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_620.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | /** 18 | * /IEconItems_620/GetSchema/v1/ 19 | * 20 | * @param string $language The language to return the names in. Defaults to returning string keys. 21 | */ 22 | public function GetSchemaV1($language = null) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_730.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | /** 18 | * /IEconItems_730/GetSchema/v2/ 19 | * 20 | * @param string $language The language to return the names in. Defaults to returning string keys. 21 | */ 22 | public function GetSchemaV2($language = null) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 25 | } 26 | /** 27 | * /IEconItems_730/GetSchemaURL/v2/ 28 | * 29 | */ 30 | public function GetSchemaURLV2() 31 | { 32 | return $this->_call(__METHOD__, 'GET', array()); 33 | } 34 | /** 35 | * /IEconItems_730/GetStoreMetaData/v1/ 36 | * 37 | * @param string $language The language to results in. 38 | */ 39 | public function GetStoreMetaDataV1($language = null) 40 | { 41 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconItems_841.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid)); 16 | } 17 | /** 18 | * /IEconItems_841/GetSchema/v1/ 19 | * 20 | * @param string $language The language to return the names in. Defaults to returning string keys. 21 | */ 22 | public function GetSchemaV1($language = null) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('language' => $language)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IEconService.php: -------------------------------------------------------------------------------- 1 | _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 | } 24 | /** 25 | * /IEconService/GetTradeOffers/v1/ 26 | * 27 | * @param bool $get_sent_offers Request the list of sent offers. 28 | * @param bool $get_received_offers Request the list of received offers. 29 | * @param bool $get_descriptions If set, the item display data for the items included in the returned trade offers will also be returned. 30 | * @param string $language The language to use when loading item display data. 31 | * @param bool $active_only Indicates we should only return offers which are still active, or offers that have changed in state since the time_historical_cutoff 32 | * @param bool $historical_only Indicates we should only return offers which are not active. 33 | * @param uint32 $time_historical_cutoff When active_only is set, offers updated since this time will also be returned 34 | */ 35 | public function GetTradeOffersV1($get_sent_offers, $get_received_offers, $get_descriptions, $language, $active_only, $historical_only, $time_historical_cutoff) 36 | { 37 | return $this->_call(__METHOD__, 'GET', array('get_sent_offers' => $get_sent_offers, 'get_received_offers' => $get_received_offers, 'get_descriptions' => $get_descriptions, 'language' => $language, 'active_only' => $active_only, 'historical_only' => $historical_only, 'time_historical_cutoff' => $time_historical_cutoff)); 38 | } 39 | /** 40 | * /IEconService/GetTradeOffer/v1/ 41 | * 42 | * @param uint64 $tradeofferid 43 | * @param string $language 44 | */ 45 | public function GetTradeOfferV1($tradeofferid, $language) 46 | { 47 | return $this->_call(__METHOD__, 'GET', array('tradeofferid' => $tradeofferid, 'language' => $language)); 48 | } 49 | /** 50 | * /IEconService/GetTradeOffersSummary/v1/ 51 | * 52 | * @param uint32 $time_last_visit The time the user last visited. If not passed, will use the time the user last visited the trade offer page. 53 | */ 54 | public function GetTradeOffersSummaryV1($time_last_visit) 55 | { 56 | return $this->_call(__METHOD__, 'GET', array('time_last_visit' => $time_last_visit)); 57 | } 58 | /** 59 | * /IEconService/DeclineTradeOffer/v1/ 60 | * 61 | * @param uint64 $tradeofferid 62 | */ 63 | public function DeclineTradeOfferV1($tradeofferid) 64 | { 65 | return $this->_call(__METHOD__, 'POST', array('tradeofferid' => $tradeofferid)); 66 | } 67 | /** 68 | * /IEconService/CancelTradeOffer/v1/ 69 | * 70 | * @param uint64 $tradeofferid 71 | */ 72 | public function CancelTradeOfferV1($tradeofferid) 73 | { 74 | return $this->_call(__METHOD__, 'POST', array('tradeofferid' => $tradeofferid)); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IGCVersion_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /IGCVersion_205790/GetServerVersion/v1/ 18 | * 19 | */ 20 | public function GetServerVersionV1() 21 | { 22 | return $this->_call(__METHOD__, 'GET', array()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IGCVersion_440.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /IGCVersion_440/GetServerVersion/v1/ 18 | * 19 | */ 20 | public function GetServerVersionV1() 21 | { 22 | return $this->_call(__METHOD__, 'GET', array()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IGCVersion_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /IGCVersion_570/GetServerVersion/v1/ 18 | * 19 | */ 20 | public function GetServerVersionV1() 21 | { 22 | return $this->_call(__METHOD__, 'GET', array()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IGCVersion_730.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IGameServersService.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /IGameServersService/CreateAccount/v1/ 18 | * 19 | * @param uint32 $appid The app to use the account for 20 | * @param string $memo The memo to set on the new account 21 | */ 22 | public function CreateAccountV1($appid, $memo) 23 | { 24 | return $this->_call(__METHOD__, 'POST', array('appid' => $appid, 'memo' => $memo)); 25 | } 26 | /** 27 | * /IGameServersService/SetMemo/v1/ 28 | * 29 | * @param uint64 $steamid The SteamID of the game server to set the memo on 30 | * @param string $memo The memo to set on the new account 31 | */ 32 | public function SetMemoV1($steamid, $memo) 33 | { 34 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'memo' => $memo)); 35 | } 36 | /** 37 | * /IGameServersService/ResetLoginToken/v1/ 38 | * 39 | * @param uint64 $steamid The SteamID of the game server to reset the login token of 40 | */ 41 | public function ResetLoginTokenV1($steamid) 42 | { 43 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid)); 44 | } 45 | /** 46 | * /IGameServersService/DeleteAccount/v1/ 47 | * 48 | * @param uint64 $steamid The SteamID of the game server account to delete 49 | */ 50 | public function DeleteAccountV1($steamid) 51 | { 52 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid)); 53 | } 54 | /** 55 | * /IGameServersService/GetAccountPublicInfo/v1/ 56 | * 57 | * @param uint64 $steamid The SteamID of the game server to get info on 58 | */ 59 | public function GetAccountPublicInfoV1($steamid) 60 | { 61 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid)); 62 | } 63 | /** 64 | * /IGameServersService/QueryLoginToken/v1/ 65 | * 66 | * @param string $login_token Login token to query 67 | */ 68 | public function QueryLoginTokenV1($login_token) 69 | { 70 | return $this->_call(__METHOD__, 'GET', array('login_token' => $login_token)); 71 | } 72 | /** 73 | * /IGameServersService/GetServerSteamIDsByIP/v1/ 74 | * 75 | * @param string $server_ips 76 | */ 77 | public function GetServerSteamIDsByIPV1($server_ips) 78 | { 79 | return $this->_call(__METHOD__, 'GET', array('server_ips' => $server_ips)); 80 | } 81 | /** 82 | * /IGameServersService/GetServerIPsBySteamID/v1/ 83 | * 84 | * @param uint64 $server_steamids 85 | */ 86 | public function GetServerIPsBySteamIDV1($server_steamids) 87 | { 88 | return $this->_call(__METHOD__, 'GET', array('server_steamids' => $server_steamids)); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IInventoryService.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('ecurrency' => $ecurrency)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IPlayerService.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('steamid' => $steamid, 'ticket' => $ticket, 'play_sessions' => $play_sessions)); 18 | } 19 | /** 20 | * /IPlayerService/GetRecentlyPlayedGames/v1/ 21 | * 22 | * @param uint64 $steamid The player we're asking about 23 | * @param uint32 $count The number of games to return (0/unset: all) 24 | */ 25 | public function GetRecentlyPlayedGamesV1($steamid, $count) 26 | { 27 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'count' => $count)); 28 | } 29 | /** 30 | * /IPlayerService/GetOwnedGames/v1/ 31 | * 32 | * @param uint64 $steamid The player we're asking about 33 | * @param bool $include_appinfo true if we want additional details (name, icon) about each game 34 | * @param bool $include_played_free_games Free games are excluded by default. If this is set, free games the user has played will be returned. 35 | * @param uint32 $appids_filter if set, restricts result set to the passed in apps 36 | */ 37 | public function GetOwnedGamesV1($steamid, $include_appinfo, $include_played_free_games, $appids_filter) 38 | { 39 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'include_appinfo' => $include_appinfo, 'include_played_free_games' => $include_played_free_games, 'appids_filter' => $appids_filter)); 40 | } 41 | /** 42 | * /IPlayerService/GetSteamLevel/v1/ 43 | * 44 | * @param uint64 $steamid The player we're asking about 45 | */ 46 | public function GetSteamLevelV1($steamid) 47 | { 48 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid)); 49 | } 50 | /** 51 | * /IPlayerService/GetBadges/v1/ 52 | * 53 | * @param uint64 $steamid The player we're asking about 54 | */ 55 | public function GetBadgesV1($steamid) 56 | { 57 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid)); 58 | } 59 | /** 60 | * /IPlayerService/GetCommunityBadgeProgress/v1/ 61 | * 62 | * @param uint64 $steamid The player we're asking about 63 | * @param int32 $badgeid The badge we're asking about 64 | */ 65 | public function GetCommunityBadgeProgressV1($steamid, $badgeid) 66 | { 67 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'badgeid' => $badgeid)); 68 | } 69 | /** 70 | * /IPlayerService/IsPlayingSharedGame/v1/ 71 | * 72 | * @param uint64 $steamid The player we're asking about 73 | * @param uint32 $appid_playing The game player is currently playing 74 | */ 75 | public function IsPlayingSharedGameV1($steamid, $appid_playing) 76 | { 77 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'appid_playing' => $appid_playing)); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IPortal2Leaderboards_620.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('leaderboardName' => $leaderboardName)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IPortal2Leaderboards_841.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('leaderboardName' => $leaderboardName)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/IPublishedFileService.php: -------------------------------------------------------------------------------- 1 | _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, 'return_playtime_stats' => $return_playtime_stats)); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamApps.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /ISteamApps/GetAppList/v2/ 18 | * 19 | */ 20 | public function GetAppListV2() 21 | { 22 | return $this->_call(__METHOD__, 'GET', array()); 23 | } 24 | /** 25 | * /ISteamApps/GetServersAtAddress/v1/ 26 | * 27 | * @param string $addr IP or IP:queryport to list 28 | */ 29 | public function GetServersAtAddressV1($addr) 30 | { 31 | return $this->_call(__METHOD__, 'GET', array('addr' => $addr)); 32 | } 33 | /** 34 | * /ISteamApps/UpToDateCheck/v1/ 35 | * 36 | * @param uint32 $appid AppID of game 37 | * @param uint32 $version The installed version of the game 38 | */ 39 | public function UpToDateCheckV1($appid, $version) 40 | { 41 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'version' => $version)); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamBitPay.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamCDN.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('cdnname' => $cdnname, 'allowedipblocks' => $allowedipblocks, 'allowedasns' => $allowedasns, 'allowedipcountries' => $allowedipcountries)); 19 | } 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 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamDirectory.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('cellid' => $cellid, 'maxcount' => $maxcount)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamEconomy.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('appid' => $appid, 'language' => $language, 'class_count' => $class_count, 'classid0' => $classid0, 'instanceid0' => $instanceid0)); 20 | } 21 | /** 22 | * /ISteamEconomy/GetAssetPrices/v1/ 23 | * 24 | * @param uint32 $appid Must be a steam economy app. 25 | * @param string $currency The currency to filter for 26 | * @param string $language The user's local language 27 | */ 28 | public function GetAssetPricesV1($appid, $currency = null, $language = null) 29 | { 30 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'currency' => $currency, 'language' => $language)); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamEnvoy.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array()); 15 | } 16 | /** 17 | * /ISteamEnvoy/PaymentOutReversalNotification/v1/ 18 | * 19 | */ 20 | public function PaymentOutReversalNotificationV1() 21 | { 22 | return $this->_call(__METHOD__, 'POST', array()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamNews.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('appid' => $appid, 'maxlength' => $maxlength, 'enddate' => $enddate, 'count' => $count)); 19 | } 20 | /** 21 | * /ISteamNews/GetNewsForApp/v2/ 22 | * 23 | * @param uint32 $appid AppID to retrieve news for 24 | * @param uint32 $maxlength Maximum length for the content to return, if this is 0 the full content is returned, if it's less then a blurb is generated to fit. 25 | * @param uint32 $enddate Retrieve posts earlier than this date (unix epoch timestamp) 26 | * @param uint32 $count # of posts to retrieve (default 20) 27 | * @param string $feeds Comma-seperated list of feed names to return news for 28 | */ 29 | public function GetNewsForAppV2($appid, $maxlength = null, $enddate = null, $count = null, $feeds = null) 30 | { 31 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'maxlength' => $maxlength, 'enddate' => $enddate, 'count' => $count, 'feeds' => $feeds)); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamPayPalPaymentsHub.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamRemoteStorage.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('collectioncount' => $collectioncount, 'publishedfileids[0]' => $publishedfileids)); 17 | } 18 | /** 19 | * /ISteamRemoteStorage/GetPublishedFileDetails/v1/ 20 | * 21 | * @param uint32 $itemcount Number of items being requested 22 | * @param uint64 $publishedfileids published file id to look up 23 | */ 24 | public function GetPublishedFileDetailsV1($itemcount, $publishedfileids) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('itemcount' => $itemcount, 'publishedfileids[0]' => $publishedfileids)); 27 | } 28 | /** 29 | * /ISteamRemoteStorage/GetUGCFileDetails/v1/ 30 | * 31 | * @param uint64 $steamid If specified, only returns details if the file is owned by the SteamID specified 32 | * @param uint64 $ugcid ID of UGC file to get info for 33 | * @param uint32 $appid appID of product 34 | */ 35 | public function GetUGCFileDetailsV1($steamid = null, $ugcid, $appid) 36 | { 37 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'ugcid' => $ugcid, 'appid' => $appid)); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamUser.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'relationship' => $relationship)); 17 | } 18 | /** 19 | * /ISteamUser/GetPlayerBans/v1/ 20 | * 21 | * @param string $steamids Comma-delimited list of SteamIDs 22 | */ 23 | public function GetPlayerBansV1($steamids) 24 | { 25 | return $this->_call(__METHOD__, 'GET', array('steamids' => $steamids)); 26 | } 27 | /** 28 | * /ISteamUser/GetPlayerSummaries/v1/ 29 | * 30 | * @param string $steamids Comma-delimited list of SteamIDs 31 | */ 32 | public function GetPlayerSummariesV1($steamids) 33 | { 34 | return $this->_call(__METHOD__, 'GET', array('steamids' => $steamids)); 35 | } 36 | /** 37 | * /ISteamUser/GetPlayerSummaries/v2/ 38 | * 39 | * @param string $steamids Comma-delimited list of SteamIDs (max: 100) 40 | */ 41 | public function GetPlayerSummariesV2($steamids) 42 | { 43 | return $this->_call(__METHOD__, 'GET', array('steamids' => $steamids)); 44 | } 45 | /** 46 | * /ISteamUser/GetUserGroupList/v1/ 47 | * 48 | * @param uint64 $steamid SteamID of user 49 | */ 50 | public function GetUserGroupListV1($steamid) 51 | { 52 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid)); 53 | } 54 | /** 55 | * /ISteamUser/ResolveVanityURL/v1/ 56 | * 57 | * @param string $vanityurl The vanity URL to get a SteamID for 58 | * @param int32 $url_type The type of vanity URL. 1 (default): Individual profile, 2: Group, 3: Official game group 59 | */ 60 | public function ResolveVanityURLV1($vanityurl, $url_type = null) 61 | { 62 | return $this->_call(__METHOD__, 'GET', array('vanityurl' => $vanityurl, 'url_type' => $url_type)); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamUserAuth.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('steamid' => $steamid, 'sessionkey' => $sessionkey, 'encrypted_loginkey' => $encrypted_loginkey)); 18 | } 19 | /** 20 | * /ISteamUserAuth/AuthenticateUserTicket/v1/ 21 | * 22 | * @param uint32 $appid appid of game 23 | * @param string $ticket Ticket from GetAuthSessionTicket. 24 | */ 25 | public function AuthenticateUserTicketV1($appid, $ticket) 26 | { 27 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'ticket' => $ticket)); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamUserOAuth.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('access_token' => $access_token)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamUserStats.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('gameid' => $gameid)); 16 | } 17 | /** 18 | * /ISteamUserStats/GetGlobalAchievementPercentagesForApp/v2/ 19 | * 20 | * @param uint64 $gameid GameID to retrieve the achievement percentages for 21 | */ 22 | public function GetGlobalAchievementPercentagesForAppV2($gameid) 23 | { 24 | return $this->_call(__METHOD__, 'GET', array('gameid' => $gameid)); 25 | } 26 | /** 27 | * /ISteamUserStats/GetGlobalStatsForGame/v1/ 28 | * 29 | * @param uint32 $appid AppID that we're getting global stats for 30 | * @param uint32 $count Number of stats get data for 31 | * @param string $name Names of stat to get data for 32 | * @param uint32 $startdate Start date for daily totals (unix epoch timestamp) 33 | * @param uint32 $enddate End date for daily totals (unix epoch timestamp) 34 | */ 35 | public function GetGlobalStatsForGameV1($appid, $count, $name, $startdate = null, $enddate = null) 36 | { 37 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'count' => $count, 'name[0]' => $name, 'startdate' => $startdate, 'enddate' => $enddate)); 38 | } 39 | /** 40 | * /ISteamUserStats/GetNumberOfCurrentPlayers/v1/ 41 | * 42 | * @param uint32 $appid AppID that we're getting user count for 43 | */ 44 | public function GetNumberOfCurrentPlayersV1($appid) 45 | { 46 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid)); 47 | } 48 | /** 49 | * /ISteamUserStats/GetPlayerAchievements/v1/ 50 | * 51 | * @param uint64 $steamid SteamID of user 52 | * @param uint32 $appid AppID to get achievements for 53 | * @param string $l Language to return strings for 54 | */ 55 | public function GetPlayerAchievementsV1($steamid, $appid, $l = null) 56 | { 57 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'appid' => $appid, 'l' => $l)); 58 | } 59 | /** 60 | * /ISteamUserStats/GetSchemaForGame/v1/ 61 | * 62 | * @param uint32 $appid appid of game 63 | * @param string $l localized langauge to return (english, french, etc.) 64 | */ 65 | public function GetSchemaForGameV1($appid, $l = null) 66 | { 67 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'l' => $l)); 68 | } 69 | /** 70 | * /ISteamUserStats/GetSchemaForGame/v2/ 71 | * 72 | * @param uint32 $appid appid of game 73 | * @param string $l localized language to return (english, french, etc.) 74 | */ 75 | public function GetSchemaForGameV2($appid, $l = null) 76 | { 77 | return $this->_call(__METHOD__, 'GET', array('appid' => $appid, 'l' => $l)); 78 | } 79 | /** 80 | * /ISteamUserStats/GetUserStatsForGame/v1/ 81 | * 82 | * @param uint64 $steamid SteamID of user 83 | * @param uint32 $appid appid of game 84 | */ 85 | public function GetUserStatsForGameV1($steamid, $appid) 86 | { 87 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'appid' => $appid)); 88 | } 89 | /** 90 | * /ISteamUserStats/GetUserStatsForGame/v2/ 91 | * 92 | * @param uint64 $steamid SteamID of user 93 | * @param uint32 $appid appid of game 94 | */ 95 | public function GetUserStatsForGameV2($steamid, $appid) 96 | { 97 | return $this->_call(__METHOD__, 'GET', array('steamid' => $steamid, 'appid' => $appid)); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamWebAPIUtil.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /ISteamWebAPIUtil/GetSupportedAPIList/v1/ 18 | * 19 | */ 20 | public function GetSupportedAPIListV1() 21 | { 22 | return $this->_call(__METHOD__, 'GET', array()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ISteamWebUserPresenceOAuth.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'POST', array('steamid' => $steamid, 'umqid' => $umqid, 'message' => $message, 'pollid' => $pollid, 'sectimeout' => $sectimeout, 'secidletime' => $secidletime, 'use_accountids' => $use_accountids)); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFItems_440.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | /** 17 | * /ITFItems_440/GetGoldenWrenches/v2/ 18 | * 19 | */ 20 | public function GetGoldenWrenchesV2() 21 | { 22 | return $this->_call(__METHOD__, 'GET', array()); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFPromos_205790.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'promoid' => $promoid)); 17 | } 18 | /** 19 | * /ITFPromos_205790/GrantItem/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | * @param uint32 $promoid The promo ID to grant an item for 23 | */ 24 | public function GrantItemV1($steamid, $promoid) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'promoid' => $promoid)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFPromos_440.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'promoid' => $promoid)); 17 | } 18 | /** 19 | * /ITFPromos_440/GrantItem/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | * @param uint32 $promoid The promo ID to grant an item for 23 | */ 24 | public function GrantItemV1($steamid, $promoid) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'promoid' => $promoid)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFPromos_570.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'promoid' => $promoid)); 17 | } 18 | /** 19 | * /ITFPromos_570/GrantItem/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | * @param uint32 $promoid The promo ID to grant an item for 23 | */ 24 | public function GrantItemV1($steamid, $promoid) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'promoid' => $promoid)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFPromos_620.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'PromoID' => $PromoID)); 17 | } 18 | /** 19 | * /ITFPromos_620/GrantItem/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | * @param uint32 $PromoID The promo ID to grant an item for 23 | */ 24 | public function GrantItemV1($steamid, $PromoID) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'PromoID' => $PromoID)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFPromos_730.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'PromoID' => $PromoID)); 17 | } 18 | /** 19 | * /ITFPromos_730/GrantItem/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | * @param uint32 $PromoID The promo ID to grant an item for 23 | */ 24 | public function GrantItemV1($steamid, $PromoID) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'PromoID' => $PromoID)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFPromos_841.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array('steamid' => $steamid, 'PromoID' => $PromoID)); 17 | } 18 | /** 19 | * /ITFPromos_841/GrantItem/v1/ 20 | * 21 | * @param uint64 $steamid The Steam ID to fetch items for 22 | * @param uint32 $PromoID The promo ID to grant an item for 23 | */ 24 | public function GrantItemV1($steamid, $PromoID) 25 | { 26 | return $this->_call(__METHOD__, 'POST', array('steamid' => $steamid, 'PromoID' => $PromoID)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/Zyberspace/SteamWebApi/Interfaces/ITFSystem_440.php: -------------------------------------------------------------------------------- 1 | _call(__METHOD__, 'GET', array()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /phpdoc.dist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | zyberspace/steam-web-api-client 4 | 5 | phpdoc 6 | 7 | 8 | phpdoc 9 | 10 | 11 | quiet 12 | 13 | 14 | lib 15 | 16 | 17 | --------------------------------------------------------------------------------