Skip to content

Latest commit

 

History

History
275 lines (180 loc) · 6.09 KB

StatisticsApi.md

File metadata and controls

275 lines (180 loc) · 6.09 KB

StormgateWorld::StatisticsApi

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

get_statistics(opts)

Examples

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

Using the get_statistics_with_http_info variant

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

Parameters

Name Type Description Notes
league League [optional]
count Integer [optional]

Return type

StatsByTime

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_statistics_activity

get_statistics_activity(opts)

Examples

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

Using the get_statistics_activity_with_http_info variant

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

Parameters

Name Type Description Notes
since Date [optional]
_until Date [optional]

Return type

ActivityStatistics

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_statistics_countries

get_statistics_countries(opts)

Examples

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

Using the get_statistics_countries_with_http_info variant

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

Parameters

Name Type Description Notes
since Date [optional]
_until Date [optional]

Return type

CountriesStatistics

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_statistics_servers

get_statistics_servers(opts)

Examples

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

Using the get_statistics_servers_with_http_info variant

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

Parameters

Name Type Description Notes
since Date [optional]
_until Date [optional]

Return type

ServersStatistics

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json