skapaKontrollsumma
Create checksum for iXBRL file
The service provides checksum for an iXBRL file.
/skapa-kontrollsumma
Usage and SDK Samples
curl -X POST "https://api.bolagsverket.se/hamta-arsredovisningsinformation/v1.0/skapa-kontrollsumma"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.KontrollsummaApi;
import java.io.File;
import java.util.*;
public class KontrollsummaApiExample {
public static void main(String[] args) {
KontrollsummaApi apiInstance = new KontrollsummaApi();
SkapaKontrollsummaAnrop anropsobjekt = ; // SkapaKontrollsummaAnrop | For example. annual report in iXBRL format. The file must have the charset UTF-8.
try {
SkapaKontrollsummaOK result = apiInstance.skapaKontrollsumma(anropsobjekt);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KontrollsummaApi#skapaKontrollsumma");
e.printStackTrace();
}
}
}
import io.swagger.client.api.KontrollsummaApi;
public class KontrollsummaApiExample {
public static void main(String[] args) {
KontrollsummaApi apiInstance = new KontrollsummaApi();
SkapaKontrollsummaAnrop anropsobjekt = ; // SkapaKontrollsummaAnrop | For example. annual report in iXBRL format. The file must have the charset UTF-8.
try {
SkapaKontrollsummaOK result = apiInstance.skapaKontrollsumma(anropsobjekt);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KontrollsummaApi#skapaKontrollsumma");
e.printStackTrace();
}
}
}
SkapaKontrollsummaAnrop *anropsobjekt = ; // For example. annual report in iXBRL format. The file must have the charset UTF-8.
KontrollsummaApi *apiInstance = [[KontrollsummaApi alloc] init];
// Create checksum for iXBRL file
[apiInstance skapaKontrollsummaWith:anropsobjekt
completionHandler: ^(SkapaKontrollsummaOK output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiForCreatingChecksumForIXbrlFile = require('api_for_creating_checksum_for_i_xbrl_file');
var api = new ApiForCreatingChecksumForIXbrlFile.KontrollsummaApi()
var anropsobjekt = ; // {SkapaKontrollsummaAnrop} For example. annual report in iXBRL format. The file must have the charset UTF-8.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.skapaKontrollsumma(anropsobjekt, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class skapaKontrollsummaExample
{
public void main()
{
var apiInstance = new KontrollsummaApi();
var anropsobjekt = new SkapaKontrollsummaAnrop(); // SkapaKontrollsummaAnrop | For example. annual report in iXBRL format. The file must have the charset UTF-8.
try
{
// Create checksum for iXBRL file
SkapaKontrollsummaOK result = apiInstance.skapaKontrollsumma(anropsobjekt);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling KontrollsummaApi.skapaKontrollsumma: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\KontrollsummaApi();
$anropsobjekt = ; // SkapaKontrollsummaAnrop | For example. annual report in iXBRL format. The file must have the charset UTF-8.
try {
$result = $api_instance->skapaKontrollsumma($anropsobjekt);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KontrollsummaApi->skapaKontrollsumma: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::KontrollsummaApi;
my $api_instance = WWW::SwaggerClient::KontrollsummaApi->new();
my $anropsobjekt = WWW::SwaggerClient::Object::SkapaKontrollsummaAnrop->new(); # SkapaKontrollsummaAnrop | For example. annual report in iXBRL format. The file must have the charset UTF-8.
eval {
my $result = $api_instance->skapaKontrollsumma(anropsobjekt => $anropsobjekt);
print Dumper($result);
};
if ($@) {
warn "Exception when calling KontrollsummaApi->skapaKontrollsumma: $@\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.KontrollsummaApi()
anropsobjekt = # SkapaKontrollsummaAnrop | For example. annual report in iXBRL format. The file must have the charset UTF-8.
try:
# Create checksum for iXBRL file
api_response = api_instance.skapa_kontrollsumma(anropsobjekt)
pprint(api_response)
except ApiException as e:
print("Exception when calling KontrollsummaApi->skapaKontrollsumma: %s\n" % e)
Parameters
Body parameters
Name | Description |
---|---|
anropsobjekt * |