Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 2.41 KB

UsageStatsApi.md

File metadata and controls

81 lines (60 loc) · 2.41 KB

UsageStatsApi

All URIs are relative to http://localhost

Method HTTP request Description
usageStatsFetch GET /api/v{version}/UsageStats/fetch

usageStatsFetch

usageStatsFetch(from, to, version)

Example

// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.UsageStatsApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost");
    
    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

    UsageStatsApi apiInstance = new UsageStatsApi(defaultClient);
    OffsetDateTime from = OffsetDateTime.now(); // OffsetDateTime | 
    OffsetDateTime to = OffsetDateTime.now(); // OffsetDateTime | 
    String version = "version_example"; // String | 
    try {
      apiInstance.usageStatsFetch(from, to, version);
    } catch (ApiException e) {
      System.err.println("Exception when calling UsageStatsApi#usageStatsFetch");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
from OffsetDateTime
to OffsetDateTime
version String

Return type

null (empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Success -