Steam API provides services to interact with steam using the official Steam Web API.

* Please note that only ISteamNews, ISteamUser and ISteamUserStats class are supported actually.

To submit bug reports and feature suggestions, or to track changes: https://drupal.org/project/issues/steam_api

Installation

Install as you would normally install a contributed Drupal module.

Configuration

After the module has been enabled, access /admin/config/services/steam_api and set your Steam API key.

* The configuration form provides a link to the Steam page where you can create or retrieve your Steam API key.

How to use it

3 services provided :

  • steam_api.news (covers calls to ISteamNews methods)
    • getNewsForApp(string $appid, int $count, string $feed_names)
  • steam_api.user (covers calls to ISteamUser methods)
    • getFriendList(string $steamcommunity_id)
    • getPlayerBans(string $steamcommunity_ids)
    • getPlayerSummaries(string $steamcommunity_ids)
  • steam_api.userstats (covers calls to ISteamUserStats methods)
    • getGlobalAchievementPercentagesForApp(string $app_id)
    • getPlayerAchievements(string $steamcommunity_id, string $app_id, string $language = '')
    • getSchemaForGame(string $app_id, string $language = '')
    • getUserStatsForGame(string $steamcommunity_id, string $app_id, string $language = '')

Read more about Services and dependency injection in Drupal 8

Recommended modules

Mainteners

Current maintainers:

Project information

Releases