lib/steam/community/WebApi.php
/**
     * Fetches data from Steam Web API using the specified interface, method
     * and version. Additional parameters are supplied via HTTP GET. Data is
     * returned as a String in the given format.
     *
     * @param string $format The format to load from the API ('json', 'vdf', or
     *        'xml')
     * @param string $interface The Web API interface to call, e.g. ISteamUser
     * @param string $method The Web API method to call, e.g.
     *        GetPlayerSummaries
     * @param int $version The API method version to use
     * @param array $params Additional parameters to supply via HTTP GET
     * @return string Data is returned as a String in the given format (which
     *                may be 'json', 'vdf' or 'xml').
     */
Fetches data from Steam Web API using the specified interface, method
and version. Additional parameters are supplied via HTTP GET. Data is
returned as a String in the given format.


Fetches data from Steam Web API using the specified interface method and version . Additional parameters are supplied via HTTP GET . Data is returned as a String in the given format .
protected function _load($format, $interface, $method, $version = 1, $params = null) {
        $version = str_pad($version, 4, '0', STR_PAD_LEFT);
        $url = "http://api.steampowered.com/$interface/$method/v$version/";
        $params['format'] = $format;
        $params['key']    = self::$apiKey;
        if($params != null && !empty($params)) {
            $url .= '?';
            $url_params = array();
            foreach($params as $k => $v) {
                $url_params[] = "$k=$v";
            }
            $url .= join('&', $url_params);
        }
        return $this->request($url);
    }
protected function _load ( $ format , $ interface , $ method , $ version = 1 , $ params = null ) { $ version = str_pad ( $ version , 4 , '0' , STR_PAD_LEFT ) ; $ url = " http://api.steampowered.com/ $ interface / $ method /v $ version / " ; $ params [ 'format' ] = $ format ; $ params [ 'key' ] = self :: $ apiKey ; if ( $ params != null && ! empty ( $ params ) ) { $ url .= '?' ; $ url_params = array ( ) ; foreach ( $ params as $ k => $ v ) { $ url_params [ ] = " $ k = $ v " ; } $ url .= join ( '&' , $ url_params ) ; } return $ this -> request ( $ url ) ; }
Fetches data from Steam Web API using the specified interface, method
 and version.
Fetches data from Steam Web API using the specified interface method and version .