getMetrics
Get basic metrics
Some basic metrics for the entire directory. Just stunning numbers to put on a front page and are intended purely for WoW effect :)
/metrics.json
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/apis-guru/v2//metrics.json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APIsApi;
import java.io.File;
import java.util.*;
public class APIsApiExample {
public static void main(String[] args) {
APIsApi apiInstance = new APIsApi();
String apiecoKey = apiecoKey_example; // String |
try {
Metrics result = apiInstance.getMetrics(apiecoKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling APIsApi#getMetrics");
e.printStackTrace();
}
}
}
import io.swagger.client.api.APIsApi;
public class APIsApiExample {
public static void main(String[] args) {
APIsApi apiInstance = new APIsApi();
String apiecoKey = apiecoKey_example; // String |
try {
Metrics result = apiInstance.getMetrics(apiecoKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling APIsApi#getMetrics");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
APIsApi *apiInstance = [[APIsApi alloc] init];
// Get basic metrics
[apiInstance getMetricsWith:apiecoKey
completionHandler: ^(Metrics output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApIsguru = require('ap_isguru');
var api = new ApIsguru.APIsApi()
var apiecoKey = apiecoKey_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getMetrics(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getMetricsExample
{
public void main()
{
var apiInstance = new APIsApi();
var apiecoKey = apiecoKey_example; // String |
try
{
// Get basic metrics
Metrics result = apiInstance.getMetrics(apiecoKey);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling APIsApi.getMetrics: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\APIsApi();
$apiecoKey = apiecoKey_example; // String |
try {
$result = $api_instance->getMetrics($apiecoKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling APIsApi->getMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APIsApi;
my $api_instance = WWW::SwaggerClient::APIsApi->new();
my $apiecoKey = apiecoKey_example; # String |
eval {
my $result = $api_instance->getMetrics(apiecoKey => $apiecoKey);
print Dumper($result);
};
if ($@) {
warn "Exception when calling APIsApi->getMetrics: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.APIsApi()
apiecoKey = apiecoKey_example # String |
try:
# Get basic metrics
api_response = api_instance.get_metrics(apiecoKey)
pprint(api_response)
except ApiException as e:
print("Exception when calling APIsApi->getMetrics: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|