displayGraph
Get company statistics graph
Retrieve the company statistics data for graph display.
/api/v1/graphs/companyGraph
Usage and SDK Samples
curl -X GET \
-H "Authorization: Bearer [[accessToken]]" \
-H "Accept: */*" \
"https://localhost:8443/api/v1/graphs/companyGraph"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ApiGraphsControllerApi;
import java.io.File;
import java.util.*;
public class ApiGraphsControllerApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure Bearer (JWT) access token for authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
// Create an instance of the API class
ApiGraphsControllerApi apiInstance = new ApiGraphsControllerApi();
try {
array[CompanyStadsDTO] result = apiInstance.displayGraph();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiGraphsControllerApi#displayGraph");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
try {
final result = await api_instance.displayGraph();
print(result);
} catch (e) {
print('Exception when calling DefaultApi->displayGraph: $e\n');
}
import org.openapitools.client.api.ApiGraphsControllerApi;
public class ApiGraphsControllerApiExample {
public static void main(String[] args) {
ApiGraphsControllerApi apiInstance = new ApiGraphsControllerApi();
try {
array[CompanyStadsDTO] result = apiInstance.displayGraph();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiGraphsControllerApi#displayGraph");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure Bearer (JWT) access token for authorization: bearerAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
ApiGraphsControllerApi *apiInstance = [[ApiGraphsControllerApi alloc] init];
// Get company statistics graph
[apiInstance displayGraphWithCompletionHandler:
^(array[CompanyStadsDTO] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenApiDefinition = require('open_api_definition');
var defaultClient = OpenApiDefinition.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new OpenApiDefinition.ApiGraphsControllerApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.displayGraph(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class displayGraphExample
{
public void main()
{
// Configure Bearer (JWT) access token for authorization: bearerAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new ApiGraphsControllerApi();
try {
// Get company statistics graph
array[CompanyStadsDTO] result = apiInstance.displayGraph();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ApiGraphsControllerApi.displayGraph: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) access token for authorization: bearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ApiGraphsControllerApi();
try {
$result = $api_instance->displayGraph();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApiGraphsControllerApi->displayGraph: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ApiGraphsControllerApi;
# Configure Bearer (JWT) access token for authorization: bearerAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ApiGraphsControllerApi->new();
eval {
my $result = $api_instance->displayGraph();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ApiGraphsControllerApi->displayGraph: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure Bearer (JWT) access token for authorization: bearerAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.ApiGraphsControllerApi()
try:
# Get company statistics graph
api_response = api_instance.display_graph()
pprint(api_response)
except ApiException as e:
print("Exception when calling ApiGraphsControllerApi->displayGraph: %s\n" % e)
extern crate ApiGraphsControllerApi;
pub fn main() {
let mut context = ApiGraphsControllerApi::Context::default();
let result = client.displayGraph(&context).wait();
println!("{:?}", result);
}