Skip to content

Latest commit

 

History

History
149 lines (103 loc) · 3.36 KB

File metadata and controls

149 lines (103 loc) · 3.36 KB

Aimastering::StatisticsApi

All URIs are relative to https://api.bakuage.com:443

Method HTTP request Description
get_group_buy_statistics GET /statistics/group_buy Get group buy statistics.
list_anonymized_masterings GET /statistics/anonymized_masterings Get anonymized masterings.
list_kpis GET /statistics/kpis Get KPIs.

get_group_buy_statistics

GroupBuyStatistics get_group_buy_statistics

Get group buy statistics.

Example

# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
  # Configure API key authorization: bearer
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = Aimastering::StatisticsApi.new

begin
  #Get group buy statistics.
  result = api_instance.get_group_buy_statistics
  p result
rescue Aimastering::ApiError => e
  puts "Exception when calling StatisticsApi->get_group_buy_statistics: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

GroupBuyStatistics

Authorization

bearer

HTTP request headers

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

list_anonymized_masterings

Array<AnonymizedMastering> list_anonymized_masterings

Get anonymized masterings.

Example

# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
  # Configure API key authorization: bearer
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = Aimastering::StatisticsApi.new

begin
  #Get anonymized masterings.
  result = api_instance.list_anonymized_masterings
  p result
rescue Aimastering::ApiError => e
  puts "Exception when calling StatisticsApi->list_anonymized_masterings: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

Array<AnonymizedMastering>

Authorization

bearer

HTTP request headers

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

list_kpis

Kpi list_kpis

Get KPIs.

Example

# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
  # Configure API key authorization: bearer
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = Aimastering::StatisticsApi.new

begin
  #Get KPIs.
  result = api_instance.list_kpis
  p result
rescue Aimastering::ApiError => e
  puts "Exception when calling StatisticsApi->list_kpis: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

Kpi

Authorization

bearer

HTTP request headers

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