Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.58 KB

File metadata and controls

67 lines (42 loc) · 1.58 KB

Zernio\UsageApi

All URIs are relative to https://zernio.com/api, except if the operation defines another base path.

Method HTTP request Description
getUsageStats() GET /v1/usage-stats Get plan and usage stats

getUsageStats()

getUsageStats(): \Zernio\Model\UsageStats

Get plan and usage stats

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

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Zernio\Api\UsageApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->getUsageStats();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsageApi->getUsageStats: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\Zernio\Model\UsageStats

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]