getAnalyticsKpis
Get analytics KPIs
/analytics/kpis
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"//analytics/kpis?startDate=&endDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalyticsApi;
import java.io.File;
import java.util.*;
public class AnalyticsApiExample {
public static void main(String[] args) {
AnalyticsApi apiInstance = new AnalyticsApi();
Date startDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
Date endDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
try {
Hostnames result = apiInstance.getAnalyticsKpis(startDate, endDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalyticsApi#getAnalyticsKpis");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AnalyticsApi;
public class AnalyticsApiExample {
public static void main(String[] args) {
AnalyticsApi apiInstance = new AnalyticsApi();
Date startDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
Date endDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
try {
Hostnames result = apiInstance.getAnalyticsKpis(startDate, endDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalyticsApi#getAnalyticsKpis");
e.printStackTrace();
}
}
}
Date *startDate = 2013-10-20T19:20:30+01:00; // The id of the redirect to retrieve
Date *endDate = 2013-10-20T19:20:30+01:00; // The id of the redirect to retrieve
AnalyticsApi *apiInstance = [[AnalyticsApi alloc] init];
// Get analytics KPIs
[apiInstance getAnalyticsKpisWith:startDate
endDate:endDate
completionHandler: ^(Hostnames output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DomainForwardApiDefinition = require('domain_forward_api_definition');
var api = new DomainForwardApiDefinition.AnalyticsApi()
var startDate = 2013-10-20T19:20:30+01:00; // {{Date}} The id of the redirect to retrieve
var endDate = 2013-10-20T19:20:30+01:00; // {{Date}} The id of the redirect to retrieve
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAnalyticsKpis(startDate, endDate, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAnalyticsKpisExample
{
public void main()
{
var apiInstance = new AnalyticsApi();
var startDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
var endDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
try
{
// Get analytics KPIs
Hostnames result = apiInstance.getAnalyticsKpis(startDate, endDate);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AnalyticsApi.getAnalyticsKpis: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAnalyticsApi();
$startDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
$endDate = 2013-10-20T19:20:30+01:00; // Date | The id of the redirect to retrieve
try {
$result = $api_instance->getAnalyticsKpis($startDate, $endDate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnalyticsApi->getAnalyticsKpis: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalyticsApi;
my $api_instance = WWW::SwaggerClient::AnalyticsApi->new();
my $startDate = 2013-10-20T19:20:30+01:00; # Date | The id of the redirect to retrieve
my $endDate = 2013-10-20T19:20:30+01:00; # Date | The id of the redirect to retrieve
eval {
my $result = $api_instance->getAnalyticsKpis(startDate => $startDate, endDate => $endDate);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AnalyticsApi->getAnalyticsKpis: $@\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.AnalyticsApi()
startDate = 2013-10-20T19:20:30+01:00 # Date | The id of the redirect to retrieve
endDate = 2013-10-20T19:20:30+01:00 # Date | The id of the redirect to retrieve
try:
# Get analytics KPIs
api_response = api_instance.get_analytics_kpis(startDate, endDate)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnalyticsApi->getAnalyticsKpis: %s\n" % e)
Parameters
Query parameters
Name | Description |
---|---|
startDate* |
Date
(date-time)
The id of the redirect to retrieve
Required
|
endDate* |
Date
(date-time)
The id of the redirect to retrieve
Required
|