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 plan and usage stats
Returns the current plan name, billing period, plan limits, and usage counts.
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}"
endThis 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}"
endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json