Welcome Guest, Not a member yet? Register   Sign In
Steam API Library?
#1

[eluser]ShoeLace1291[/eluser]
I've created a library for the Steam API to integrate my website with their community. What it can do is get profile information based on a provided steam id(ie STEAM_0:1:9338691). Accessible information from my library includes profile name, friends, and online status. The Steam API has access to more information, but I'm only going to implement this if you guys think this library would be useful.

Usage example:
Code:
<?php

class Home extends Controller {

    function Home(){
        parent::Controller();
    }
    
    function index(){
    
        $this->load->library('steam');
        $config['steamid'] = 'STEAM_0:1:9338691';
        $this->steam->initialize($config);

            echo $this->steam->profileName()." is currently ".$this->steam->status()."<br>Friends Online: <br>".$this->steam->friends();
        
        
    }
    
}

Let me know if something like this would be of use to you guys. I use it for my Counter-Strike clan's website and use their steam profile names as display names for my site so other members know who they are. I'm not sure how many people code their Steam clans' websites in CodeIgniter, but I thought it would be an interesting library for me to make.


Messages In This Thread
Steam API Library? - by El Forum - 10-10-2010, 03:52 PM
Steam API Library? - by El Forum - 10-10-2010, 08:02 PM
Steam API Library? - by El Forum - 10-12-2010, 01:07 AM
Steam API Library? - by El Forum - 10-12-2010, 09:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB