<commit_before># SteamWebApi

[![Build Status](https://api.travis-ci.org/Olgagr/steam-web-api.svg?branch=master)](https://api.travis-ci.org/Olgagr/steam-web-api.svg?branch=master)

This is gem that makes trivial to use Steam Web API. It supports all methods listed here: https://developer.valvesoftware.com/wiki/Steam_Web_API

## Supported Ruby version
Gem supports Ruby: 2.0, 2.1, 2.2

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'steam_web_api', git: 'https://github.com/Olgagr/steam-web-api.git'
```

And then execute:

    $ bundle

## Usage

### Configuration

Some Steam Web API methods return publicly accessible data and do not require authorization when called. Other methods may require clients to register for an API key and pass that in using the key parameter. There are also methods that return sensitive data or perform a protected action and require special access permissions. To retrieve API key for your application, you'll need log in to your Steam account and fill [this form](http://steamcommunity.com/dev/apikey)

When you have your API key, you can configure the gem:

```ruby
# for Rails, you can put this code in initializer: config/initializers/steam_web_api.rb
SteamWebApi.configure do |config|
	config.api_key = 'your api key'
end<commit_msg>add code climate badge<commit_after># SteamWebApi

[![Build Status](https://api.travis-ci.org/Olgagr/steam-web-api.svg?branch=master)](https://api.travis-ci.org/Olgagr/steam-web-api.svg?branch=master) [![Code Climate](https://codeclimate.com/github/Olgagr/steam-web-api/badges/gpa.svg)](https://codeclimate.com/github/Olgagr/steam-web-api)

This is gem that makes trivial to use Steam Web API. It supports all methods listed here: https://developer.valvesoftware.com/wiki/Steam_Web_API

## Supported Ruby version
Gem supports Ruby: 2.0, 2.1, 2.2

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'steam_web_api', git: 'https://github.com/Olgagr/steam-web-api.git'
```

And then execute:

    $ bundle

## Usage

### Configuration

Some Steam Web API methods return publicly accessible data and do not require authorization when called. Other methods may require clients to register for an API key and pass that in using the key parameter. There are also methods that return sensitive data or perform a protected action and require special access permissions. To retrieve API key for your application, you'll need log in to your Steam account and fill [this form](http://steamcommunity.com/dev/apikey)

When you have your API key, you can configure the gem:

```ruby
# for Rails, you can put this code in initializer: config/initializers/steam_web_api.rb
SteamWebApi.configure do |config|
	config.api_key = 'your api key'
end
{'fraction_non_alphanumeric': 0.09883720930232558, 'fraction_numerical': 0.00436046511627907, 'mean_word_length': 4.723492723492724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7400514', 'n_tokens_mistral': 852, 'n_tokens_neox': 826, 'n_words': 308}