Raised This Month: $319 Target: $400
 79%   Almost there!

Steam Web API Wrapper


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nikkii
Member
Join Date: Feb 2012
Old 03-30-2014 , 21:04   Steam Web API Wrapper
Reply With Quote #1

I wrote this a while ago to make it a lot easier to use the Steam API from PHP.

It wraps the api methods using the __get and __call methods of PHP classes, and keeps a list of the available methods from the steam api (it also assumes that the order of variables won't change, I doubt they will)

Note: This does not handle POST requests YET.

Code:
https://paste.ee/p/te1XK

Example:
https://paste.ee/p/zspv9

For a full list of api methods, visit this page:
http://api.steampowered.com/ISteamWebAPIUtil/GetSupportedAPIList/v0001/?key=<YOUR API KEY>

If a method is added which you need, either call LoadSupportedAPIList with the file name and the second variable set to "true" ONCE, it will force an update.
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper

Last edited by Nikkii; 03-30-2014 at 21:08.
Nikkii is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:51.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode