getv0History
Gets all historical data
Returns data from every day where the dashboard changed
/v0/history
Usage and SDK Samples
curl -X GET "https://ritcoviddashboard.com/api/v0/history"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.V0Api;
import java.io.File;
import java.util.*;
public class V0ApiExample {
public static void main(String[] args) {
V0Api apiInstance = new V0Api();
try {
array[Day] result = apiInstance.getv0History();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling V0Api#getv0History");
e.printStackTrace();
}
}
}
import io.swagger.client.api.V0Api;
public class V0ApiExample {
public static void main(String[] args) {
V0Api apiInstance = new V0Api();
try {
array[Day] result = apiInstance.getv0History();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling V0Api#getv0History");
e.printStackTrace();
}
}
}
V0Api *apiInstance = [[V0Api alloc] init];
// Gets all historical data
[apiInstance getv0HistoryWithCompletionHandler:
^(array[Day] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var RitCovidPoller = require('rit_covid_poller');
var api = new RitCovidPoller.V0Api()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getv0History(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getv0HistoryExample
{
public void main()
{
var apiInstance = new V0Api();
try
{
// Gets all historical data
array[Day] result = apiInstance.getv0History();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V0Api.getv0History: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\V0Api();
try {
$result = $api_instance->getv0History();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling V0Api->getv0History: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::V0Api;
my $api_instance = WWW::SwaggerClient::V0Api->new();
eval {
my $result = $api_instance->getv0History();
print Dumper($result);
};
if ($@) {
warn "Exception when calling V0Api->getv0History: $@\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.V0Api()
try:
# Gets all historical data
api_response = api_instance.getv0_history()
pprint(api_response)
except ApiException as e:
print("Exception when calling V0Api->getv0History: %s\n" % e)