API for subscription to annual report events

Prenumeration

avslutaPrenumeration

Terminate subscription to annual report events

The service handles requests for termination of subscriptions to annual report events.


/handelseprenumeration

Usage and SDK Samples

curl -X delete "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v1.0/handelseprenumeration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrenumerationApi;

import java.io.File;
import java.util.*;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        
        PrenumerationApi apiInstance = new PrenumerationApi();
        AvslutaPrenumerationAnrop anropsobjekt = ; // AvslutaPrenumerationAnrop | URL and organisation number
        try {
            AvslutaPrenumerationOK result = apiInstance.avslutaPrenumeration(anropsobjekt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#avslutaPrenumeration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrenumerationApi;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        AvslutaPrenumerationAnrop anropsobjekt = ; // AvslutaPrenumerationAnrop | URL and organisation number
        try {
            AvslutaPrenumerationOK result = apiInstance.avslutaPrenumeration(anropsobjekt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#avslutaPrenumeration");
            e.printStackTrace();
        }
    }
}
AvslutaPrenumerationAnrop *anropsobjekt = ; // URL and organisation number

PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];

// Terminate subscription to annual report events
[apiInstance avslutaPrenumerationWith:anropsobjekt
              completionHandler: ^(AvslutaPrenumerationOK output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiForSubscriptionToAnnualReportEvents = require('api_for_subscription_to_annual_report_events');

var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()

var anropsobjekt = ; // {AvslutaPrenumerationAnrop} URL and organisation number


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.avslutaPrenumeration(anropsobjekt, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class avslutaPrenumerationExample
    {
        public void main()
        {
            
            var apiInstance = new PrenumerationApi();
            var anropsobjekt = new AvslutaPrenumerationAnrop(); // AvslutaPrenumerationAnrop | URL and organisation number

            try
            {
                // Terminate subscription to annual report events
                AvslutaPrenumerationOK result = apiInstance.avslutaPrenumeration(anropsobjekt);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrenumerationApi.avslutaPrenumeration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PrenumerationApi();
$anropsobjekt = ; // AvslutaPrenumerationAnrop | URL and organisation number

try {
    $result = $api_instance->avslutaPrenumeration($anropsobjekt);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrenumerationApi->avslutaPrenumeration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrenumerationApi;

my $api_instance = WWW::SwaggerClient::PrenumerationApi->new();
my $anropsobjekt = WWW::SwaggerClient::Object::AvslutaPrenumerationAnrop->new(); # AvslutaPrenumerationAnrop | URL and organisation number

eval { 
    my $result = $api_instance->avslutaPrenumeration(anropsobjekt => $anropsobjekt);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrenumerationApi->avslutaPrenumeration: $@\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.PrenumerationApi()
anropsobjekt =  # AvslutaPrenumerationAnrop | URL and organisation number

try: 
    # Terminate subscription to annual report events
    api_response = api_instance.avslutaPrenumeration(anropsobjekt)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrenumerationApi->avslutaPrenumeration: %s\n" % e)

Parameters

Body parameters
Name Description
anropsobjekt *

Responses

Status: 200 - OK

Status: 400 - Bad request

Status: 403 - Unauthorized user of service

Status: 404 - No such subscription

Status: 500 - Unspecified technical problem

Status: 503 - The service is temporarily unavailable

Status: 504 - Timeout


prenumerera

Subscribe to annual report events

The service handles requests for subscriptions to an url and verifies that the supplied organization numbers are valid.


/handelseprenumeration

Usage and SDK Samples

curl -X post "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v1.0/handelseprenumeration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrenumerationApi;

import java.io.File;
import java.util.*;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        
        PrenumerationApi apiInstance = new PrenumerationApi();
        PrenumerationAnrop anropsobjekt = ; // PrenumerationAnrop | URL and organisation number
        try {
            PrenumerationOK result = apiInstance.prenumerera(anropsobjekt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#prenumerera");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrenumerationApi;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        PrenumerationAnrop anropsobjekt = ; // PrenumerationAnrop | URL and organisation number
        try {
            PrenumerationOK result = apiInstance.prenumerera(anropsobjekt);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#prenumerera");
            e.printStackTrace();
        }
    }
}
PrenumerationAnrop *anropsobjekt = ; // URL and organisation number

PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];

// Subscribe to annual report events
[apiInstance prenumereraWith:anropsobjekt
              completionHandler: ^(PrenumerationOK output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiForSubscriptionToAnnualReportEvents = require('api_for_subscription_to_annual_report_events');

var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()

var anropsobjekt = ; // {PrenumerationAnrop} URL and organisation number


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prenumerera(anropsobjekt, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class prenumereraExample
    {
        public void main()
        {
            
            var apiInstance = new PrenumerationApi();
            var anropsobjekt = new PrenumerationAnrop(); // PrenumerationAnrop | URL and organisation number

            try
            {
                // Subscribe to annual report events
                PrenumerationOK result = apiInstance.prenumerera(anropsobjekt);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrenumerationApi.prenumerera: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PrenumerationApi();
$anropsobjekt = ; // PrenumerationAnrop | URL and organisation number

try {
    $result = $api_instance->prenumerera($anropsobjekt);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrenumerationApi->prenumerera: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrenumerationApi;

my $api_instance = WWW::SwaggerClient::PrenumerationApi->new();
my $anropsobjekt = WWW::SwaggerClient::Object::PrenumerationAnrop->new(); # PrenumerationAnrop | URL and organisation number

eval { 
    my $result = $api_instance->prenumerera(anropsobjekt => $anropsobjekt);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrenumerationApi->prenumerera: $@\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.PrenumerationApi()
anropsobjekt =  # PrenumerationAnrop | URL and organisation number

try: 
    # Subscribe to annual report events
    api_response = api_instance.prenumerera(anropsobjekt)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrenumerationApi->prenumerera: %s\n" % e)

Parameters

Body parameters
Name Description
anropsobjekt *

Responses

Status: 200 - OK

Status: 400 - Bad request

Status: 403 - Unauthorized user of service

Status: 404 - No such subscription

Status: 500 - Unspecified technical problem

Status: 503 - The service is temporarily unavailable

Status: 504 - Timeout


Generated 2018-03-16T16:37:38.316+01:00