Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.57 KB

File metadata and controls

74 lines (50 loc) · 1.57 KB

Late::UsageApi

All URIs are relative to https://zernio.com/api

Method HTTP request Description
get_usage_stats GET /v1/usage-stats Get plan and usage stats

get_usage_stats

get_usage_stats

Get plan and usage stats

Returns the current plan name, billing period, plan limits, and usage counts.

Examples

require 'time'
require 'late-sdk'
# setup authorization
Late.configure do |config|
  # Configure Bearer authorization (JWT): bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = Late::UsageApi.new

begin
  # Get plan and usage stats
  result = api_instance.get_usage_stats
  p result
rescue Late::ApiError => e
  puts "Error when calling UsageApi->get_usage_stats: #{e}"
end

Using the get_usage_stats_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_usage_stats_with_http_info

begin
  # Get plan and usage stats
  data, status_code, headers = api_instance.get_usage_stats_with_http_info
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <UsageStats>
rescue Late::ApiError => e
  puts "Error when calling UsageApi->get_usage_stats_with_http_info: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

UsageStats

Authorization

bearerAuth

HTTP request headers

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