Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teliosdev/steam-mist
https://github.com/teliosdev/steam-mist
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/teliosdev/steam-mist
- Owner: teliosdev
- License: mit
- Created: 2013-03-10T21:18:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-20T19:51:28.000Z (over 10 years ago)
- Last Synced: 2023-03-23T21:40:51.073Z (over 1 year ago)
- Language: Ruby
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SteamMist [![Build Status](https://travis-ci.org/redjazz96/steam-mist.png?branch=master)](https://travis-ci.org/redjazz96/steam-mist) [![Code Climate](https://codeclimate.com/github/redjazz96/steam-mist.png)](https://codeclimate.com/github/redjazz96/steam-mist)
Steam Mist (for the lack of a better name) is a library for interfacing with
the Steam Web API. It handles the HTTP requests for you while providing a
nice API for you to use.Have some code samples:
```Ruby
require 'steam_mist'
session = SteamMist::Session.new SteamMist::Connectors::LazyConnector
session.default_arguments.merge! :key => "XXXXXXXXXXXXXXXXXXX", :format => :json
method = session.player_service.get_recently_played_games.with_version(1) \
.with_arguments(:steamid => "76561198025418738")method.request_uri # =>
# http://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v0001/
# ?key=XXXXXXXXXXXXXXXXX&steamid=76561197960434622&format=json
# It's a URI object so #inspect doesn't include the quotes ;)
method.get # => #
method.get.data # => our json data
``````Ruby
rcon = SteamMist::Rcon.new("localhost")
rcon.auth("password") # => true
rcon.send(:data => "echo hello") # =>
# [..., #, ...]
rcon.close
```