All URIs are relative to https://api.stormgateworld.com
Method | HTTP request | Description |
---|---|---|
get_statistics | GET /v0/statistics/ranked_1v1 | |
get_statistics_activity | GET /v0/statistics/activity | |
get_statistics_countries | GET /v0/statistics/countries | |
get_statistics_servers | GET /v0/statistics/servers |
get_statistics(opts)
require 'time'
require 'stormgate_world'
api_instance = StormgateWorld::StatisticsApi.new
opts = {
league: StormgateWorld::League::ASPIRANT, # League |
count: 56 # Integer |
}
begin
result = api_instance.get_statistics(opts)
p result
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_statistics_with_http_info(opts)
begin
data, status_code, headers = api_instance.get_statistics_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <StatsByTime>
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
league | League | [optional] | |
count | Integer | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_statistics_activity(opts)
require 'time'
require 'stormgate_world'
api_instance = StormgateWorld::StatisticsApi.new
opts = {
since: Date.parse('2013-10-20'), # Date |
_until: Date.parse('2013-10-20') # Date |
}
begin
result = api_instance.get_statistics_activity(opts)
p result
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_activity: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_statistics_activity_with_http_info(opts)
begin
data, status_code, headers = api_instance.get_statistics_activity_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ActivityStatistics>
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_activity_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
since | Date | [optional] | |
_until | Date | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_statistics_countries(opts)
require 'time'
require 'stormgate_world'
api_instance = StormgateWorld::StatisticsApi.new
opts = {
since: Date.parse('2013-10-20'), # Date |
_until: Date.parse('2013-10-20') # Date |
}
begin
result = api_instance.get_statistics_countries(opts)
p result
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_countries: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_statistics_countries_with_http_info(opts)
begin
data, status_code, headers = api_instance.get_statistics_countries_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CountriesStatistics>
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_countries_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
since | Date | [optional] | |
_until | Date | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_statistics_servers(opts)
require 'time'
require 'stormgate_world'
api_instance = StormgateWorld::StatisticsApi.new
opts = {
since: Date.parse('2013-10-20'), # Date |
_until: Date.parse('2013-10-20') # Date |
}
begin
result = api_instance.get_statistics_servers(opts)
p result
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_servers: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_statistics_servers_with_http_info(opts)
begin
data, status_code, headers = api_instance.get_statistics_servers_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ServersStatistics>
rescue StormgateWorld::ApiError => e
puts "Error when calling StatisticsApi->get_statistics_servers_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
since | Date | [optional] | |
_until | Date | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json