Kunta API

Announcements

findOrganizationAnnouncement

Finds an organizations announcement

Finds organization's single announcement


/organizations/{organizationId}/announcements/{announcementId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/announcements/{announcementId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnnouncementsApi;

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

public class AnnouncementsApiExample {

    public static void main(String[] args) {
        
        AnnouncementsApi apiInstance = new AnnouncementsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID announcementId = announcementId_example; // UUID | Announcement id
        try {
            Announcement result = apiInstance.findOrganizationAnnouncement(organizationId, announcementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnnouncementsApi#findOrganizationAnnouncement");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnnouncementsApi;

public class AnnouncementsApiExample {

    public static void main(String[] args) {
        AnnouncementsApi apiInstance = new AnnouncementsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID announcementId = announcementId_example; // UUID | Announcement id
        try {
            Announcement result = apiInstance.findOrganizationAnnouncement(organizationId, announcementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnnouncementsApi#findOrganizationAnnouncement");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *announcementId = announcementId_example; // Announcement id

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

// Finds an organizations announcement
[apiInstance findOrganizationAnnouncementWith:organizationId
    announcementId:announcementId
              completionHandler: ^(Announcement output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.AnnouncementsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var announcementId = announcementId_example; // {UUID} Announcement id


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

namespace Example
{
    public class findOrganizationAnnouncementExample
    {
        public void main()
        {
            
            var apiInstance = new AnnouncementsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var announcementId = announcementId_example;  // UUID | Announcement id

            try
            {
                // Finds an organizations announcement
                Announcement result = apiInstance.findOrganizationAnnouncement(organizationId, announcementId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnnouncementsApi.findOrganizationAnnouncement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AnnouncementsApi();
$organizationId = organizationId_example; // UUID | Organization id
$announcementId = announcementId_example; // UUID | Announcement id

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

my $api_instance = WWW::SwaggerClient::AnnouncementsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $announcementId = announcementId_example; # UUID | Announcement id

eval { 
    my $result = $api_instance->findOrganizationAnnouncement(organizationId => $organizationId, announcementId => $announcementId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling AnnouncementsApi->findOrganizationAnnouncement: [email protected]\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.AnnouncementsApi()
organizationId = organizationId_example # UUID | Organization id
announcementId = announcementId_example # UUID | Announcement id

try: 
    # Finds an organizations announcement
    api_response = api_instance.findOrganizationAnnouncement(organizationId, announcementId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnnouncementsApi->findOrganizationAnnouncement: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
announcementId*

Responses

Status: 200 - Returns a single announcement

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationAnnouncements

Lists organizations announcements

Lists organizations announcements


/organizations/{organizationId}/announcements

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/announcements?slug=&firstResult=&maxResults=&sortBy=&sortDir="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnnouncementsApi;

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

public class AnnouncementsApiExample {

    public static void main(String[] args) {
        
        AnnouncementsApi apiInstance = new AnnouncementsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String slug = slug_example; // String | Filter with slug
        Integer firstResult = 56; // Integer | first index of results
        Integer maxResults = 56; // Integer | maximum number of results
        String sortBy = sortBy_example; // String | PUBLICATION_DATE
        String sortDir = sortDir_example; // String | ASC or DESC
        try {
            array[Announcement] result = apiInstance.listOrganizationAnnouncements(organizationId, slug, firstResult, maxResults, sortBy, sortDir);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnnouncementsApi#listOrganizationAnnouncements");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AnnouncementsApi;

public class AnnouncementsApiExample {

    public static void main(String[] args) {
        AnnouncementsApi apiInstance = new AnnouncementsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String slug = slug_example; // String | Filter with slug
        Integer firstResult = 56; // Integer | first index of results
        Integer maxResults = 56; // Integer | maximum number of results
        String sortBy = sortBy_example; // String | PUBLICATION_DATE
        String sortDir = sortDir_example; // String | ASC or DESC
        try {
            array[Announcement] result = apiInstance.listOrganizationAnnouncements(organizationId, slug, firstResult, maxResults, sortBy, sortDir);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnnouncementsApi#listOrganizationAnnouncements");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
String *slug = slug_example; // Filter with slug (optional)
Integer *firstResult = 56; // first index of results (optional)
Integer *maxResults = 56; // maximum number of results (optional)
String *sortBy = sortBy_example; // PUBLICATION_DATE (optional)
String *sortDir = sortDir_example; // ASC or DESC (optional)

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

// Lists organizations announcements
[apiInstance listOrganizationAnnouncementsWith:organizationId
    slug:slug
    firstResult:firstResult
    maxResults:maxResults
    sortBy:sortBy
    sortDir:sortDir
              completionHandler: ^(array[Announcement] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.AnnouncementsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var opts = { 
  'slug': slug_example, // {String} Filter with slug
  'firstResult': 56, // {Integer} first index of results
  'maxResults': 56, // {Integer} maximum number of results
  'sortBy': sortBy_example, // {String} PUBLICATION_DATE
  'sortDir': sortDir_example // {String} ASC or DESC
};

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

namespace Example
{
    public class listOrganizationAnnouncementsExample
    {
        public void main()
        {
            
            var apiInstance = new AnnouncementsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var slug = slug_example;  // String | Filter with slug (optional) 
            var firstResult = 56;  // Integer | first index of results (optional) 
            var maxResults = 56;  // Integer | maximum number of results (optional) 
            var sortBy = sortBy_example;  // String | PUBLICATION_DATE (optional) 
            var sortDir = sortDir_example;  // String | ASC or DESC (optional) 

            try
            {
                // Lists organizations announcements
                array[Announcement] result = apiInstance.listOrganizationAnnouncements(organizationId, slug, firstResult, maxResults, sortBy, sortDir);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AnnouncementsApi.listOrganizationAnnouncements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AnnouncementsApi();
$organizationId = organizationId_example; // UUID | Organization id
$slug = slug_example; // String | Filter with slug
$firstResult = 56; // Integer | first index of results
$maxResults = 56; // Integer | maximum number of results
$sortBy = sortBy_example; // String | PUBLICATION_DATE
$sortDir = sortDir_example; // String | ASC or DESC

try {
    $result = $api_instance->listOrganizationAnnouncements($organizationId, $slug, $firstResult, $maxResults, $sortBy, $sortDir);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AnnouncementsApi->listOrganizationAnnouncements: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnnouncementsApi;

my $api_instance = WWW::SwaggerClient::AnnouncementsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $slug = slug_example; # String | Filter with slug
my $firstResult = 56; # Integer | first index of results
my $maxResults = 56; # Integer | maximum number of results
my $sortBy = sortBy_example; # String | PUBLICATION_DATE
my $sortDir = sortDir_example; # String | ASC or DESC

eval { 
    my $result = $api_instance->listOrganizationAnnouncements(organizationId => $organizationId, slug => $slug, firstResult => $firstResult, maxResults => $maxResults, sortBy => $sortBy, sortDir => $sortDir);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling AnnouncementsApi->listOrganizationAnnouncements: [email protected]\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.AnnouncementsApi()
organizationId = organizationId_example # UUID | Organization id
slug = slug_example # String | Filter with slug (optional)
firstResult = 56 # Integer | first index of results (optional)
maxResults = 56 # Integer | maximum number of results (optional)
sortBy = sortBy_example # String | PUBLICATION_DATE (optional)
sortDir = sortDir_example # String | ASC or DESC (optional)

try: 
    # Lists organizations announcements
    api_response = api_instance.listOrganizationAnnouncements(organizationId, slug=slug, firstResult=firstResult, maxResults=maxResults, sortBy=sortBy, sortDir=sortDir)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnnouncementsApi->listOrganizationAnnouncements: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
Query parameters
Name Description
slug
firstResult
maxResults
sortBy
sortDir

Responses

Status: 200 - Returns a list of announcements

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Banners

findOrganizationBanner

Finds organizations banner

Finds single organization banner


/organizations/{organizationId}/banners/{bannerId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/banners/{bannerId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BannersApi;

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

public class BannersApiExample {

    public static void main(String[] args) {
        
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | banner id
        try {
            NewsArticle result = apiInstance.findOrganizationBanner(organizationId, bannerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#findOrganizationBanner");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BannersApi;

public class BannersApiExample {

    public static void main(String[] args) {
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | banner id
        try {
            NewsArticle result = apiInstance.findOrganizationBanner(organizationId, bannerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#findOrganizationBanner");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *bannerId = bannerId_example; // banner id

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

// Finds organizations banner
[apiInstance findOrganizationBannerWith:organizationId
    bannerId:bannerId
              completionHandler: ^(NewsArticle output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.BannersApi()

var organizationId = organizationId_example; // {UUID} Organization id

var bannerId = bannerId_example; // {UUID} banner id


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

namespace Example
{
    public class findOrganizationBannerExample
    {
        public void main()
        {
            
            var apiInstance = new BannersApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var bannerId = bannerId_example;  // UUID | banner id

            try
            {
                // Finds organizations banner
                NewsArticle result = apiInstance.findOrganizationBanner(organizationId, bannerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BannersApi.findOrganizationBanner: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BannersApi();
$organizationId = organizationId_example; // UUID | Organization id
$bannerId = bannerId_example; // UUID | banner id

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

my $api_instance = WWW::SwaggerClient::BannersApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $bannerId = bannerId_example; # UUID | banner id

eval { 
    my $result = $api_instance->findOrganizationBanner(organizationId => $organizationId, bannerId => $bannerId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling BannersApi->findOrganizationBanner: [email protected]\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.BannersApi()
organizationId = organizationId_example # UUID | Organization id
bannerId = bannerId_example # UUID | banner id

try: 
    # Finds organizations banner
    api_response = api_instance.findOrganizationBanner(organizationId, bannerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BannersApi->findOrganizationBanner: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
bannerId*

Responses

Status: 200 - Returns a single organization banner

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


findOrganizationBannerImage

Returns a single organiztion banner image

Returns a single organiztion banner image


/organizations/{organizationId}/banners/{bannerId}/images/{imageId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/banners/{bannerId}/images/{imageId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BannersApi;

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

public class BannersApiExample {

    public static void main(String[] args) {
        
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | Banner Id
        UUID imageId = imageId_example; // UUID | Banner image id
        try {
            Attachment result = apiInstance.findOrganizationBannerImage(organizationId, bannerId, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#findOrganizationBannerImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BannersApi;

public class BannersApiExample {

    public static void main(String[] args) {
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | Banner Id
        UUID imageId = imageId_example; // UUID | Banner image id
        try {
            Attachment result = apiInstance.findOrganizationBannerImage(organizationId, bannerId, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#findOrganizationBannerImage");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *bannerId = bannerId_example; // Banner Id
UUID *imageId = imageId_example; // Banner image id

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

// Returns a single organiztion banner image
[apiInstance findOrganizationBannerImageWith:organizationId
    bannerId:bannerId
    imageId:imageId
              completionHandler: ^(Attachment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.BannersApi()

var organizationId = organizationId_example; // {UUID} Organization id

var bannerId = bannerId_example; // {UUID} Banner Id

var imageId = imageId_example; // {UUID} Banner image id


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

namespace Example
{
    public class findOrganizationBannerImageExample
    {
        public void main()
        {
            
            var apiInstance = new BannersApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var bannerId = bannerId_example;  // UUID | Banner Id
            var imageId = imageId_example;  // UUID | Banner image id

            try
            {
                // Returns a single organiztion banner image
                Attachment result = apiInstance.findOrganizationBannerImage(organizationId, bannerId, imageId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BannersApi.findOrganizationBannerImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BannersApi();
$organizationId = organizationId_example; // UUID | Organization id
$bannerId = bannerId_example; // UUID | Banner Id
$imageId = imageId_example; // UUID | Banner image id

try {
    $result = $api_instance->findOrganizationBannerImage($organizationId, $bannerId, $imageId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BannersApi->findOrganizationBannerImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BannersApi;

my $api_instance = WWW::SwaggerClient::BannersApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $bannerId = bannerId_example; # UUID | Banner Id
my $imageId = imageId_example; # UUID | Banner image id

eval { 
    my $result = $api_instance->findOrganizationBannerImage(organizationId => $organizationId, bannerId => $bannerId, imageId => $imageId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling BannersApi->findOrganizationBannerImage: [email protected]\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.BannersApi()
organizationId = organizationId_example # UUID | Organization id
bannerId = bannerId_example # UUID | Banner Id
imageId = imageId_example # UUID | Banner image id

try: 
    # Returns a single organiztion banner image
    api_response = api_instance.findOrganizationBannerImage(organizationId, bannerId, imageId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BannersApi->findOrganizationBannerImage: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
bannerId*
imageId*

Responses

Status: 200 - Returns an organization banner image

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


getOrganizationBannerImageData

Returns an organization banner image data

Returns an organization banner image data


/organizations/{organizationId}/banners/{bannerId}/images/{imageId}/data

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/banners/{bannerId}/images/{imageId}/data?size="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BannersApi;

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

public class BannersApiExample {

    public static void main(String[] args) {
        
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | Banner id
        UUID imageId = imageId_example; // UUID | Banner image id
        Integer size = 56; // Integer | Maximum width or height of image
        try {
            byte[] result = apiInstance.getOrganizationBannerImageData(organizationId, bannerId, imageId, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#getOrganizationBannerImageData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BannersApi;

public class BannersApiExample {

    public static void main(String[] args) {
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | Banner id
        UUID imageId = imageId_example; // UUID | Banner image id
        Integer size = 56; // Integer | Maximum width or height of image
        try {
            byte[] result = apiInstance.getOrganizationBannerImageData(organizationId, bannerId, imageId, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#getOrganizationBannerImageData");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *bannerId = bannerId_example; // Banner id
UUID *imageId = imageId_example; // Banner image id
Integer *size = 56; // Maximum width or height of image (optional)

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

// Returns an organization banner image data
[apiInstance getOrganizationBannerImageDataWith:organizationId
    bannerId:bannerId
    imageId:imageId
    size:size
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.BannersApi()

var organizationId = organizationId_example; // {UUID} Organization id

var bannerId = bannerId_example; // {UUID} Banner id

var imageId = imageId_example; // {UUID} Banner image id

var opts = { 
  'size': 56 // {Integer} Maximum width or height of image
};

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

namespace Example
{
    public class getOrganizationBannerImageDataExample
    {
        public void main()
        {
            
            var apiInstance = new BannersApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var bannerId = bannerId_example;  // UUID | Banner id
            var imageId = imageId_example;  // UUID | Banner image id
            var size = 56;  // Integer | Maximum width or height of image (optional) 

            try
            {
                // Returns an organization banner image data
                byte[] result = apiInstance.getOrganizationBannerImageData(organizationId, bannerId, imageId, size);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BannersApi.getOrganizationBannerImageData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BannersApi();
$organizationId = organizationId_example; // UUID | Organization id
$bannerId = bannerId_example; // UUID | Banner id
$imageId = imageId_example; // UUID | Banner image id
$size = 56; // Integer | Maximum width or height of image

try {
    $result = $api_instance->getOrganizationBannerImageData($organizationId, $bannerId, $imageId, $size);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BannersApi->getOrganizationBannerImageData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BannersApi;

my $api_instance = WWW::SwaggerClient::BannersApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $bannerId = bannerId_example; # UUID | Banner id
my $imageId = imageId_example; # UUID | Banner image id
my $size = 56; # Integer | Maximum width or height of image

eval { 
    my $result = $api_instance->getOrganizationBannerImageData(organizationId => $organizationId, bannerId => $bannerId, imageId => $imageId, size => $size);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling BannersApi->getOrganizationBannerImageData: [email protected]\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.BannersApi()
organizationId = organizationId_example # UUID | Organization id
bannerId = bannerId_example # UUID | Banner id
imageId = imageId_example # UUID | Banner image id
size = 56 # Integer | Maximum width or height of image (optional)

try: 
    # Returns an organization banner image data
    api_response = api_instance.getOrganizationBannerImageData(organizationId, bannerId, imageId, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BannersApi->getOrganizationBannerImageData: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
bannerId*
imageId*
Query parameters
Name Description
size

Responses

Status: 200 - Returns an organization banner image data

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationBannerImages

Returns a list of organization banner images

Returns a list of organization banner images


/organizations/{organizationId}/banners/{bannerId}/images

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/banners/{bannerId}/images"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BannersApi;

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

public class BannersApiExample {

    public static void main(String[] args) {
        
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | Banner id
        try {
            array[Attachment] result = apiInstance.listOrganizationBannerImages(organizationId, bannerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#listOrganizationBannerImages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BannersApi;

public class BannersApiExample {

    public static void main(String[] args) {
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID bannerId = bannerId_example; // UUID | Banner id
        try {
            array[Attachment] result = apiInstance.listOrganizationBannerImages(organizationId, bannerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#listOrganizationBannerImages");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *bannerId = bannerId_example; // Banner id

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

// Returns a list of organization banner images
[apiInstance listOrganizationBannerImagesWith:organizationId
    bannerId:bannerId
              completionHandler: ^(array[Attachment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.BannersApi()

var organizationId = organizationId_example; // {UUID} Organization id

var bannerId = bannerId_example; // {UUID} Banner id


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

namespace Example
{
    public class listOrganizationBannerImagesExample
    {
        public void main()
        {
            
            var apiInstance = new BannersApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var bannerId = bannerId_example;  // UUID | Banner id

            try
            {
                // Returns a list of organization banner images
                array[Attachment] result = apiInstance.listOrganizationBannerImages(organizationId, bannerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BannersApi.listOrganizationBannerImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BannersApi();
$organizationId = organizationId_example; // UUID | Organization id
$bannerId = bannerId_example; // UUID | Banner id

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

my $api_instance = WWW::SwaggerClient::BannersApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $bannerId = bannerId_example; # UUID | Banner id

eval { 
    my $result = $api_instance->listOrganizationBannerImages(organizationId => $organizationId, bannerId => $bannerId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling BannersApi->listOrganizationBannerImages: [email protected]\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.BannersApi()
organizationId = organizationId_example # UUID | Organization id
bannerId = bannerId_example # UUID | Banner id

try: 
    # Returns a list of organization banner images
    api_response = api_instance.listOrganizationBannerImages(organizationId, bannerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BannersApi->listOrganizationBannerImages: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
bannerId*

Responses

Status: 200 - Returns list of organization banner images

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationBanners

Lists organizations banners

Lists organizations banners


/organizations/{organizationId}/banners

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/banners"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BannersApi;

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

public class BannersApiExample {

    public static void main(String[] args) {
        
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        try {
            array[Banner] result = apiInstance.listOrganizationBanners(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#listOrganizationBanners");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BannersApi;

public class BannersApiExample {

    public static void main(String[] args) {
        BannersApi apiInstance = new BannersApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        try {
            array[Banner] result = apiInstance.listOrganizationBanners(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BannersApi#listOrganizationBanners");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id

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

// Lists organizations banners
[apiInstance listOrganizationBannersWith:organizationId
              completionHandler: ^(array[Banner] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.BannersApi()

var organizationId = organizationId_example; // {UUID} Organization id


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

namespace Example
{
    public class listOrganizationBannersExample
    {
        public void main()
        {
            
            var apiInstance = new BannersApi();
            var organizationId = organizationId_example;  // UUID | Organization id

            try
            {
                // Lists organizations banners
                array[Banner] result = apiInstance.listOrganizationBanners(organizationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BannersApi.listOrganizationBanners: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BannersApi();
$organizationId = organizationId_example; // UUID | Organization id

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

my $api_instance = WWW::SwaggerClient::BannersApi->new();
my $organizationId = organizationId_example; # UUID | Organization id

eval { 
    my $result = $api_instance->listOrganizationBanners(organizationId => $organizationId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling BannersApi->listOrganizationBanners: [email protected]\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.BannersApi()
organizationId = organizationId_example # UUID | Organization id

try: 
    # Lists organizations banners
    api_response = api_instance.listOrganizationBanners(organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BannersApi->listOrganizationBanners: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*

Responses

Status: 200 - Returns a list of banners

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Contacts

findOrganizationContact

Finds an organizations contact

Finds organization's single contact


/organizations/{organizationId}/contacts/{contactId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/contacts/{contactId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

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

public class ContactsApiExample {

    public static void main(String[] args) {
        
        ContactsApi apiInstance = new ContactsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID contactId = contactId_example; // UUID | Contact id
        try {
            Contact result = apiInstance.findOrganizationContact(organizationId, contactId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#findOrganizationContact");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID contactId = contactId_example; // UUID | Contact id
        try {
            Contact result = apiInstance.findOrganizationContact(organizationId, contactId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#findOrganizationContact");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *contactId = contactId_example; // Contact id

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

// Finds an organizations contact
[apiInstance findOrganizationContactWith:organizationId
    contactId:contactId
              completionHandler: ^(Contact output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.ContactsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var contactId = contactId_example; // {UUID} Contact id


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

namespace Example
{
    public class findOrganizationContactExample
    {
        public void main()
        {
            
            var apiInstance = new ContactsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var contactId = contactId_example;  // UUID | Contact id

            try
            {
                // Finds an organizations contact
                Contact result = apiInstance.findOrganizationContact(organizationId, contactId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.findOrganizationContact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ContactsApi();
$organizationId = organizationId_example; // UUID | Organization id
$contactId = contactId_example; // UUID | Contact id

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

my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $contactId = contactId_example; # UUID | Contact id

eval { 
    my $result = $api_instance->findOrganizationContact(organizationId => $organizationId, contactId => $contactId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling ContactsApi->findOrganizationContact: [email protected]\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.ContactsApi()
organizationId = organizationId_example # UUID | Organization id
contactId = contactId_example # UUID | Contact id

try: 
    # Finds an organizations contact
    api_response = api_instance.findOrganizationContact(organizationId, contactId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->findOrganizationContact: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
contactId*

Responses

Status: 200 - Returns a single contact

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationContacts

Lists organizations contacts

Lists organizations contacts


/organizations/{organizationId}/contacts

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/contacts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

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

public class ContactsApiExample {

    public static void main(String[] args) {
        
        ContactsApi apiInstance = new ContactsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        try {
            array[Contact] result = apiInstance.listOrganizationContacts(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#listOrganizationContacts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        try {
            array[Contact] result = apiInstance.listOrganizationContacts(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#listOrganizationContacts");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id

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

// Lists organizations contacts
[apiInstance listOrganizationContactsWith:organizationId
              completionHandler: ^(array[Contact] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.ContactsApi()

var organizationId = organizationId_example; // {UUID} Organization id


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

namespace Example
{
    public class listOrganizationContactsExample
    {
        public void main()
        {
            
            var apiInstance = new ContactsApi();
            var organizationId = organizationId_example;  // UUID | Organization id

            try
            {
                // Lists organizations contacts
                array[Contact] result = apiInstance.listOrganizationContacts(organizationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.listOrganizationContacts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ContactsApi();
$organizationId = organizationId_example; // UUID | Organization id

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

my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id

eval { 
    my $result = $api_instance->listOrganizationContacts(organizationId => $organizationId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling ContactsApi->listOrganizationContacts: [email protected]\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.ContactsApi()
organizationId = organizationId_example # UUID | Organization id

try: 
    # Lists organizations contacts
    api_response = api_instance.listOrganizationContacts(organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->listOrganizationContacts: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*

Responses

Status: 200 - Returns a list of contacts

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


ElectronicChannels

findServiceElectronicChannel

finds ElectronicChannel by electronicChannelId

finds ElectronicChannels by electronicChannelId


/services/{serviceId}/electronicChannels/{electronicChannelId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/services/{serviceId}/electronicChannels/{electronicChannelId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElectronicChannelsApi;

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

public class ElectronicChannelsApiExample {

    public static void main(String[] args) {
        
        ElectronicChannelsApi apiInstance = new ElectronicChannelsApi();
        UUID serviceId = serviceId_example; // UUID | Service id
        UUID electronicChannelId = electronicChannelId_example; // UUID | electronicChannel id
        try {
            ElectronicServiceChannel result = apiInstance.findServiceElectronicChannel(serviceId, electronicChannelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicChannelsApi#findServiceElectronicChannel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElectronicChannelsApi;

public class ElectronicChannelsApiExample {

    public static void main(String[] args) {
        ElectronicChannelsApi apiInstance = new ElectronicChannelsApi();
        UUID serviceId = serviceId_example; // UUID | Service id
        UUID electronicChannelId = electronicChannelId_example; // UUID | electronicChannel id
        try {
            ElectronicServiceChannel result = apiInstance.findServiceElectronicChannel(serviceId, electronicChannelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicChannelsApi#findServiceElectronicChannel");
            e.printStackTrace();
        }
    }
}
UUID *serviceId = serviceId_example; // Service id
UUID *electronicChannelId = electronicChannelId_example; // electronicChannel id

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

// finds ElectronicChannel by electronicChannelId
[apiInstance findServiceElectronicChannelWith:serviceId
    electronicChannelId:electronicChannelId
              completionHandler: ^(ElectronicServiceChannel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.ElectronicChannelsApi()

var serviceId = serviceId_example; // {UUID} Service id

var electronicChannelId = electronicChannelId_example; // {UUID} electronicChannel id


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

namespace Example
{
    public class findServiceElectronicChannelExample
    {
        public void main()
        {
            
            var apiInstance = new ElectronicChannelsApi();
            var serviceId = serviceId_example;  // UUID | Service id
            var electronicChannelId = electronicChannelId_example;  // UUID | electronicChannel id

            try
            {
                // finds ElectronicChannel by electronicChannelId
                ElectronicServiceChannel result = apiInstance.findServiceElectronicChannel(serviceId, electronicChannelId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElectronicChannelsApi.findServiceElectronicChannel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ElectronicChannelsApi();
$serviceId = serviceId_example; // UUID | Service id
$electronicChannelId = electronicChannelId_example; // UUID | electronicChannel id

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

my $api_instance = WWW::SwaggerClient::ElectronicChannelsApi->new();
my $serviceId = serviceId_example; # UUID | Service id
my $electronicChannelId = electronicChannelId_example; # UUID | electronicChannel id

eval { 
    my $result = $api_instance->findServiceElectronicChannel(serviceId => $serviceId, electronicChannelId => $electronicChannelId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling ElectronicChannelsApi->findServiceElectronicChannel: [email protected]\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.ElectronicChannelsApi()
serviceId = serviceId_example # UUID | Service id
electronicChannelId = electronicChannelId_example # UUID | electronicChannel id

try: 
    # finds ElectronicChannel by electronicChannelId
    api_response = api_instance.findServiceElectronicChannel(serviceId, electronicChannelId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElectronicChannelsApi->findServiceElectronicChannel: %s\n" % e)

Parameters

Path parameters
Name Description
serviceId*
electronicChannelId*

Responses

Status: 200 - Returns ElectronicChannel

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 404 - Resource was not found from the server

Status: 500 - Internal server error


listServiceElectronicChannels

Lists ElectronicChannels by serviceId

Lists ElectronicChannels by serviceId


/services/{serviceId}/electronicChannels

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/services/{serviceId}/electronicChannels?firstResult=&maxResults="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElectronicChannelsApi;

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

public class ElectronicChannelsApiExample {

    public static void main(String[] args) {
        
        ElectronicChannelsApi apiInstance = new ElectronicChannelsApi();
        UUID serviceId = serviceId_example; // UUID | Service id
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[ElectronicServiceChannel] result = apiInstance.listServiceElectronicChannels(serviceId, firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicChannelsApi#listServiceElectronicChannels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElectronicChannelsApi;

public class ElectronicChannelsApiExample {

    public static void main(String[] args) {
        ElectronicChannelsApi apiInstance = new ElectronicChannelsApi();
        UUID serviceId = serviceId_example; // UUID | Service id
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[ElectronicServiceChannel] result = apiInstance.listServiceElectronicChannels(serviceId, firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicChannelsApi#listServiceElectronicChannels");
            e.printStackTrace();
        }
    }
}
UUID *serviceId = serviceId_example; // Service id
Long *firstResult = 789; // First result (optional)
Long *maxResults = 789; // Max results (optional)

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

// Lists ElectronicChannels by serviceId
[apiInstance listServiceElectronicChannelsWith:serviceId
    firstResult:firstResult
    maxResults:maxResults
              completionHandler: ^(array[ElectronicServiceChannel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.ElectronicChannelsApi()

var serviceId = serviceId_example; // {UUID} Service id

var opts = { 
  'firstResult': 789, // {Long} First result
  'maxResults': 789 // {Long} Max results
};

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

namespace Example
{
    public class listServiceElectronicChannelsExample
    {
        public void main()
        {
            
            var apiInstance = new ElectronicChannelsApi();
            var serviceId = serviceId_example;  // UUID | Service id
            var firstResult = 789;  // Long | First result (optional) 
            var maxResults = 789;  // Long | Max results (optional) 

            try
            {
                // Lists ElectronicChannels by serviceId
                array[ElectronicServiceChannel] result = apiInstance.listServiceElectronicChannels(serviceId, firstResult, maxResults);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElectronicChannelsApi.listServiceElectronicChannels: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ElectronicChannelsApi();
$serviceId = serviceId_example; // UUID | Service id
$firstResult = 789; // Long | First result
$maxResults = 789; // Long | Max results

try {
    $result = $api_instance->listServiceElectronicChannels($serviceId, $firstResult, $maxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ElectronicChannelsApi->listServiceElectronicChannels: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ElectronicChannelsApi;

my $api_instance = WWW::SwaggerClient::ElectronicChannelsApi->new();
my $serviceId = serviceId_example; # UUID | Service id
my $firstResult = 789; # Long | First result
my $maxResults = 789; # Long | Max results

eval { 
    my $result = $api_instance->listServiceElectronicChannels(serviceId => $serviceId, firstResult => $firstResult, maxResults => $maxResults);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling ElectronicChannelsApi->listServiceElectronicChannels: [email protected]\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.ElectronicChannelsApi()
serviceId = serviceId_example # UUID | Service id
firstResult = 789 # Long | First result (optional)
maxResults = 789 # Long | Max results (optional)

try: 
    # Lists ElectronicChannels by serviceId
    api_response = api_instance.listServiceElectronicChannels(serviceId, firstResult=firstResult, maxResults=maxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElectronicChannelsApi->listServiceElectronicChannels: %s\n" % e)

Parameters

Path parameters
Name Description
serviceId*
Query parameters
Name Description
firstResult
maxResults

Responses

Status: 200 - Returns array of ElectronicChannels

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 404 - Resource was not found from the server

Status: 500 - Internal server error


ElectronicServiceChannels

findElectronicServiceChannel

Finds an electronic service channel by id

Finds an electronic service channel by id


/electronicServiceChannels/{electronicServiceChannelId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/electronicServiceChannels/{electronicServiceChannelId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElectronicServiceChannelsApi;

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

public class ElectronicServiceChannelsApiExample {

    public static void main(String[] args) {
        
        ElectronicServiceChannelsApi apiInstance = new ElectronicServiceChannelsApi();
        UUID electronicServiceChannelId = electronicServiceChannelId_example; // UUID | electronicChannel id
        try {
            ElectronicServiceChannel result = apiInstance.findElectronicServiceChannel(electronicServiceChannelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicServiceChannelsApi#findElectronicServiceChannel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElectronicServiceChannelsApi;

public class ElectronicServiceChannelsApiExample {

    public static void main(String[] args) {
        ElectronicServiceChannelsApi apiInstance = new ElectronicServiceChannelsApi();
        UUID electronicServiceChannelId = electronicServiceChannelId_example; // UUID | electronicChannel id
        try {
            ElectronicServiceChannel result = apiInstance.findElectronicServiceChannel(electronicServiceChannelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicServiceChannelsApi#findElectronicServiceChannel");
            e.printStackTrace();
        }
    }
}
UUID *electronicServiceChannelId = electronicServiceChannelId_example; // electronicChannel id

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

// Finds an electronic service channel by id
[apiInstance findElectronicServiceChannelWith:electronicServiceChannelId
              completionHandler: ^(ElectronicServiceChannel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.ElectronicServiceChannelsApi()

var electronicServiceChannelId = electronicServiceChannelId_example; // {UUID} electronicChannel id


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

namespace Example
{
    public class findElectronicServiceChannelExample
    {
        public void main()
        {
            
            var apiInstance = new ElectronicServiceChannelsApi();
            var electronicServiceChannelId = electronicServiceChannelId_example;  // UUID | electronicChannel id

            try
            {
                // Finds an electronic service channel by id
                ElectronicServiceChannel result = apiInstance.findElectronicServiceChannel(electronicServiceChannelId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElectronicServiceChannelsApi.findElectronicServiceChannel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ElectronicServiceChannelsApi();
$electronicServiceChannelId = electronicServiceChannelId_example; // UUID | electronicChannel id

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

my $api_instance = WWW::SwaggerClient::ElectronicServiceChannelsApi->new();
my $electronicServiceChannelId = electronicServiceChannelId_example; # UUID | electronicChannel id

eval { 
    my $result = $api_instance->findElectronicServiceChannel(electronicServiceChannelId => $electronicServiceChannelId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling ElectronicServiceChannelsApi->findElectronicServiceChannel: [email protected]\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.ElectronicServiceChannelsApi()
electronicServiceChannelId = electronicServiceChannelId_example # UUID | electronicChannel id

try: 
    # Finds an electronic service channel by id
    api_response = api_instance.findElectronicServiceChannel(electronicServiceChannelId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElectronicServiceChannelsApi->findElectronicServiceChannel: %s\n" % e)

Parameters

Path parameters
Name Description
electronicServiceChannelId*

Responses

Status: 200 - Returns an electronic service channel by id

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 404 - Resource was not found from the server

Status: 500 - Internal server error


listElectronicServiceChannels

Lists electronic service channels

Lists electronic service channels


/electronicServiceChannels

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/electronicServiceChannels?firstResult=&maxResults="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElectronicServiceChannelsApi;

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

public class ElectronicServiceChannelsApiExample {

    public static void main(String[] args) {
        
        ElectronicServiceChannelsApi apiInstance = new ElectronicServiceChannelsApi();
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[ElectronicServiceChannel] result = apiInstance.listElectronicServiceChannels(firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicServiceChannelsApi#listElectronicServiceChannels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElectronicServiceChannelsApi;

public class ElectronicServiceChannelsApiExample {

    public static void main(String[] args) {
        ElectronicServiceChannelsApi apiInstance = new ElectronicServiceChannelsApi();
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[ElectronicServiceChannel] result = apiInstance.listElectronicServiceChannels(firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElectronicServiceChannelsApi#listElectronicServiceChannels");
            e.printStackTrace();
        }
    }
}
Long *firstResult = 789; // First result (optional)
Long *maxResults = 789; // Max results (optional)

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

// Lists electronic service channels
[apiInstance listElectronicServiceChannelsWith:firstResult
    maxResults:maxResults
              completionHandler: ^(array[ElectronicServiceChannel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.ElectronicServiceChannelsApi()

var opts = { 
  'firstResult': 789, // {Long} First result
  'maxResults': 789 // {Long} Max results
};

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

namespace Example
{
    public class listElectronicServiceChannelsExample
    {
        public void main()
        {
            
            var apiInstance = new ElectronicServiceChannelsApi();
            var firstResult = 789;  // Long | First result (optional) 
            var maxResults = 789;  // Long | Max results (optional) 

            try
            {
                // Lists electronic service channels
                array[ElectronicServiceChannel] result = apiInstance.listElectronicServiceChannels(firstResult, maxResults);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElectronicServiceChannelsApi.listElectronicServiceChannels: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ElectronicServiceChannelsApi();
$firstResult = 789; // Long | First result
$maxResults = 789; // Long | Max results

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

my $api_instance = WWW::SwaggerClient::ElectronicServiceChannelsApi->new();
my $firstResult = 789; # Long | First result
my $maxResults = 789; # Long | Max results

eval { 
    my $result = $api_instance->listElectronicServiceChannels(firstResult => $firstResult, maxResults => $maxResults);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling ElectronicServiceChannelsApi->listElectronicServiceChannels: [email protected]\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.ElectronicServiceChannelsApi()
firstResult = 789 # Long | First result (optional)
maxResults = 789 # Long | Max results (optional)

try: 
    # Lists electronic service channels
    api_response = api_instance.listElectronicServiceChannels(firstResult=firstResult, maxResults=maxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElectronicServiceChannelsApi->listElectronicServiceChannels: %s\n" % e)

Parameters

Query parameters
Name Description
firstResult
maxResults

Responses

Status: 200 - Returns array of electronic service channels

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 404 - Resource was not found from the server

Status: 500 - Internal server error


Events

findOrganizationEvent

Returns organizations event by id

Returns organizations event by id


/organizations/{organizationId}/events/{eventId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/events/{eventId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        try {
            Event result = apiInstance.findOrganizationEvent(organizationId, eventId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#findOrganizationEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        try {
            Event result = apiInstance.findOrganizationEvent(organizationId, eventId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#findOrganizationEvent");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *eventId = eventId_example; // Event id

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

// Returns organizations event by id
[apiInstance findOrganizationEventWith:organizationId
    eventId:eventId
              completionHandler: ^(Event output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.EventsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var eventId = eventId_example; // {UUID} Event id


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

namespace Example
{
    public class findOrganizationEventExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var eventId = eventId_example;  // UUID | Event id

            try
            {
                // Returns organizations event by id
                Event result = apiInstance.findOrganizationEvent(organizationId, eventId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.findOrganizationEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$organizationId = organizationId_example; // UUID | Organization id
$eventId = eventId_example; // UUID | Event id

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

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $eventId = eventId_example; # UUID | Event id

eval { 
    my $result = $api_instance->findOrganizationEvent(organizationId => $organizationId, eventId => $eventId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling EventsApi->findOrganizationEvent: [email protected]\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.EventsApi()
organizationId = organizationId_example # UUID | Organization id
eventId = eventId_example # UUID | Event id

try: 
    # Returns organizations event by id
    api_response = api_instance.findOrganizationEvent(organizationId, eventId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->findOrganizationEvent: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
eventId*

Responses

Status: 200 - Returns a single event

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


findOrganizationEventImage

Returns an event image

Returns an event image


/organizations/{organizationId}/events/{eventId}/images/{imageId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/events/{eventId}/images/{imageId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        UUID imageId = imageId_example; // UUID | Event image id
        try {
            Attachment result = apiInstance.findOrganizationEventImage(organizationId, eventId, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#findOrganizationEventImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        UUID imageId = imageId_example; // UUID | Event image id
        try {
            Attachment result = apiInstance.findOrganizationEventImage(organizationId, eventId, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#findOrganizationEventImage");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *eventId = eventId_example; // Event id
UUID *imageId = imageId_example; // Event image id

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

// Returns an event image
[apiInstance findOrganizationEventImageWith:organizationId
    eventId:eventId
    imageId:imageId
              completionHandler: ^(Attachment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.EventsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var eventId = eventId_example; // {UUID} Event id

var imageId = imageId_example; // {UUID} Event image id


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

namespace Example
{
    public class findOrganizationEventImageExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var eventId = eventId_example;  // UUID | Event id
            var imageId = imageId_example;  // UUID | Event image id

            try
            {
                // Returns an event image
                Attachment result = apiInstance.findOrganizationEventImage(organizationId, eventId, imageId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.findOrganizationEventImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$organizationId = organizationId_example; // UUID | Organization id
$eventId = eventId_example; // UUID | Event id
$imageId = imageId_example; // UUID | Event image id

try {
    $result = $api_instance->findOrganizationEventImage($organizationId, $eventId, $imageId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsApi->findOrganizationEventImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $eventId = eventId_example; # UUID | Event id
my $imageId = imageId_example; # UUID | Event image id

eval { 
    my $result = $api_instance->findOrganizationEventImage(organizationId => $organizationId, eventId => $eventId, imageId => $imageId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling EventsApi->findOrganizationEventImage: [email protected]\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.EventsApi()
organizationId = organizationId_example # UUID | Organization id
eventId = eventId_example # UUID | Event id
imageId = imageId_example # UUID | Event image id

try: 
    # Returns an event image
    api_response = api_instance.findOrganizationEventImage(organizationId, eventId, imageId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->findOrganizationEventImage: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
eventId*
imageId*

Responses

Status: 200 - Returns an event image

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


getOrganizationEventImageData

Returns an event image data

Returns an event image data


/organizations/{organizationId}/events/{eventId}/images/{imageId}/data

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/events/{eventId}/images/{imageId}/data?size="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        UUID imageId = imageId_example; // UUID | Event image id
        Integer size = 56; // Integer | Maximum width or height of image
        try {
            byte[] result = apiInstance.getOrganizationEventImageData(organizationId, eventId, imageId, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#getOrganizationEventImageData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        UUID imageId = imageId_example; // UUID | Event image id
        Integer size = 56; // Integer | Maximum width or height of image
        try {
            byte[] result = apiInstance.getOrganizationEventImageData(organizationId, eventId, imageId, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#getOrganizationEventImageData");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *eventId = eventId_example; // Event id
UUID *imageId = imageId_example; // Event image id
Integer *size = 56; // Maximum width or height of image (optional)

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

// Returns an event image data
[apiInstance getOrganizationEventImageDataWith:organizationId
    eventId:eventId
    imageId:imageId
    size:size
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.EventsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var eventId = eventId_example; // {UUID} Event id

var imageId = imageId_example; // {UUID} Event image id

var opts = { 
  'size': 56 // {Integer} Maximum width or height of image
};

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

namespace Example
{
    public class getOrganizationEventImageDataExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var eventId = eventId_example;  // UUID | Event id
            var imageId = imageId_example;  // UUID | Event image id
            var size = 56;  // Integer | Maximum width or height of image (optional) 

            try
            {
                // Returns an event image data
                byte[] result = apiInstance.getOrganizationEventImageData(organizationId, eventId, imageId, size);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.getOrganizationEventImageData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$organizationId = organizationId_example; // UUID | Organization id
$eventId = eventId_example; // UUID | Event id
$imageId = imageId_example; // UUID | Event image id
$size = 56; // Integer | Maximum width or height of image

try {
    $result = $api_instance->getOrganizationEventImageData($organizationId, $eventId, $imageId, $size);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsApi->getOrganizationEventImageData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $eventId = eventId_example; # UUID | Event id
my $imageId = imageId_example; # UUID | Event image id
my $size = 56; # Integer | Maximum width or height of image

eval { 
    my $result = $api_instance->getOrganizationEventImageData(organizationId => $organizationId, eventId => $eventId, imageId => $imageId, size => $size);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling EventsApi->getOrganizationEventImageData: [email protected]\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.EventsApi()
organizationId = organizationId_example # UUID | Organization id
eventId = eventId_example # UUID | Event id
imageId = imageId_example # UUID | Event image id
size = 56 # Integer | Maximum width or height of image (optional)

try: 
    # Returns an event image data
    api_response = api_instance.getOrganizationEventImageData(organizationId, eventId, imageId, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->getOrganizationEventImageData: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
eventId*
imageId*
Query parameters
Name Description
size

Responses

Status: 200 - Returns an event image data

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationEventImages

Returns list of event images

Returns list of event images


/organizations/{organizationId}/events/{eventId}/images

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/events/{eventId}/images"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        try {
            array[Attachment] result = apiInstance.listOrganizationEventImages(organizationId, eventId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#listOrganizationEventImages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID eventId = eventId_example; // UUID | Event id
        try {
            array[Attachment] result = apiInstance.listOrganizationEventImages(organizationId, eventId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#listOrganizationEventImages");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *eventId = eventId_example; // Event id

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

// Returns list of event images
[apiInstance listOrganizationEventImagesWith:organizationId
    eventId:eventId
              completionHandler: ^(array[Attachment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.EventsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var eventId = eventId_example; // {UUID} Event id


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

namespace Example
{
    public class listOrganizationEventImagesExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var eventId = eventId_example;  // UUID | Event id

            try
            {
                // Returns list of event images
                array[Attachment] result = apiInstance.listOrganizationEventImages(organizationId, eventId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.listOrganizationEventImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$organizationId = organizationId_example; // UUID | Organization id
$eventId = eventId_example; // UUID | Event id

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

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $eventId = eventId_example; # UUID | Event id

eval { 
    my $result = $api_instance->listOrganizationEventImages(organizationId => $organizationId, eventId => $eventId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling EventsApi->listOrganizationEventImages: [email protected]\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.EventsApi()
organizationId = organizationId_example # UUID | Organization id
eventId = eventId_example # UUID | Event id

try: 
    # Returns list of event images
    api_response = api_instance.listOrganizationEventImages(organizationId, eventId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->listOrganizationEventImages: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
eventId*

Responses

Status: 200 - Returns a list of event images

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationEvents

Lists organizations events

Lists organizations events


/organizations/{organizationId}/events

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/events?startBefore=&startAfter=&endBefore=&endAfter=&firstResult=&maxResults=&orderBy=&orderDir="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventsApi;

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

public class EventsApiExample {

    public static void main(String[] args) {
        
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String startBefore = startBefore_example; // String | return only events starting before the date
        String startAfter = startAfter_example; // String | return only events starting after the date
        String endBefore = endBefore_example; // String | return only events ending before the date
        String endAfter = endAfter_example; // String | return only events ending after the date
        Integer firstResult = 56; // Integer | first index of results
        Integer maxResults = 56; // Integer | maximum number of results
        String orderBy = orderBy_example; // String | define order (startDate, endDate). Default is startDate
        String orderDir = orderDir_example; // String | ascending, descending. Default is ascending
        try {
            array[Event] result = apiInstance.listOrganizationEvents(organizationId, startBefore, startAfter, endBefore, endAfter, firstResult, maxResults, orderBy, orderDir);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#listOrganizationEvents");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventsApi;

public class EventsApiExample {

    public static void main(String[] args) {
        EventsApi apiInstance = new EventsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String startBefore = startBefore_example; // String | return only events starting before the date
        String startAfter = startAfter_example; // String | return only events starting after the date
        String endBefore = endBefore_example; // String | return only events ending before the date
        String endAfter = endAfter_example; // String | return only events ending after the date
        Integer firstResult = 56; // Integer | first index of results
        Integer maxResults = 56; // Integer | maximum number of results
        String orderBy = orderBy_example; // String | define order (startDate, endDate). Default is startDate
        String orderDir = orderDir_example; // String | ascending, descending. Default is ascending
        try {
            array[Event] result = apiInstance.listOrganizationEvents(organizationId, startBefore, startAfter, endBefore, endAfter, firstResult, maxResults, orderBy, orderDir);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventsApi#listOrganizationEvents");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
String *startBefore = startBefore_example; // return only events starting before the date (optional)
String *startAfter = startAfter_example; // return only events starting after the date (optional)
String *endBefore = endBefore_example; // return only events ending before the date (optional)
String *endAfter = endAfter_example; // return only events ending after the date (optional)
Integer *firstResult = 56; // first index of results (optional)
Integer *maxResults = 56; // maximum number of results (optional)
String *orderBy = orderBy_example; // define order (startDate, endDate). Default is startDate (optional)
String *orderDir = orderDir_example; // ascending, descending. Default is ascending (optional)

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

// Lists organizations events
[apiInstance listOrganizationEventsWith:organizationId
    startBefore:startBefore
    startAfter:startAfter
    endBefore:endBefore
    endAfter:endAfter
    firstResult:firstResult
    maxResults:maxResults
    orderBy:orderBy
    orderDir:orderDir
              completionHandler: ^(array[Event] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.EventsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var opts = { 
  'startBefore': startBefore_example, // {String} return only events starting before the date
  'startAfter': startAfter_example, // {String} return only events starting after the date
  'endBefore': endBefore_example, // {String} return only events ending before the date
  'endAfter': endAfter_example, // {String} return only events ending after the date
  'firstResult': 56, // {Integer} first index of results
  'maxResults': 56, // {Integer} maximum number of results
  'orderBy': orderBy_example, // {String} define order (startDate, endDate). Default is startDate
  'orderDir': orderDir_example // {String} ascending, descending. Default is ascending
};

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

namespace Example
{
    public class listOrganizationEventsExample
    {
        public void main()
        {
            
            var apiInstance = new EventsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var startBefore = startBefore_example;  // String | return only events starting before the date (optional) 
            var startAfter = startAfter_example;  // String | return only events starting after the date (optional) 
            var endBefore = endBefore_example;  // String | return only events ending before the date (optional) 
            var endAfter = endAfter_example;  // String | return only events ending after the date (optional) 
            var firstResult = 56;  // Integer | first index of results (optional) 
            var maxResults = 56;  // Integer | maximum number of results (optional) 
            var orderBy = orderBy_example;  // String | define order (startDate, endDate). Default is startDate (optional) 
            var orderDir = orderDir_example;  // String | ascending, descending. Default is ascending (optional) 

            try
            {
                // Lists organizations events
                array[Event] result = apiInstance.listOrganizationEvents(organizationId, startBefore, startAfter, endBefore, endAfter, firstResult, maxResults, orderBy, orderDir);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventsApi.listOrganizationEvents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EventsApi();
$organizationId = organizationId_example; // UUID | Organization id
$startBefore = startBefore_example; // String | return only events starting before the date
$startAfter = startAfter_example; // String | return only events starting after the date
$endBefore = endBefore_example; // String | return only events ending before the date
$endAfter = endAfter_example; // String | return only events ending after the date
$firstResult = 56; // Integer | first index of results
$maxResults = 56; // Integer | maximum number of results
$orderBy = orderBy_example; // String | define order (startDate, endDate). Default is startDate
$orderDir = orderDir_example; // String | ascending, descending. Default is ascending

try {
    $result = $api_instance->listOrganizationEvents($organizationId, $startBefore, $startAfter, $endBefore, $endAfter, $firstResult, $maxResults, $orderBy, $orderDir);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventsApi->listOrganizationEvents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventsApi;

my $api_instance = WWW::SwaggerClient::EventsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $startBefore = startBefore_example; # String | return only events starting before the date
my $startAfter = startAfter_example; # String | return only events starting after the date
my $endBefore = endBefore_example; # String | return only events ending before the date
my $endAfter = endAfter_example; # String | return only events ending after the date
my $firstResult = 56; # Integer | first index of results
my $maxResults = 56; # Integer | maximum number of results
my $orderBy = orderBy_example; # String | define order (startDate, endDate). Default is startDate
my $orderDir = orderDir_example; # String | ascending, descending. Default is ascending

eval { 
    my $result = $api_instance->listOrganizationEvents(organizationId => $organizationId, startBefore => $startBefore, startAfter => $startAfter, endBefore => $endBefore, endAfter => $endAfter, firstResult => $firstResult, maxResults => $maxResults, orderBy => $orderBy, orderDir => $orderDir);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling EventsApi->listOrganizationEvents: [email protected]\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.EventsApi()
organizationId = organizationId_example # UUID | Organization id
startBefore = startBefore_example # String | return only events starting before the date (optional)
startAfter = startAfter_example # String | return only events starting after the date (optional)
endBefore = endBefore_example # String | return only events ending before the date (optional)
endAfter = endAfter_example # String | return only events ending after the date (optional)
firstResult = 56 # Integer | first index of results (optional)
maxResults = 56 # Integer | maximum number of results (optional)
orderBy = orderBy_example # String | define order (startDate, endDate). Default is startDate (optional)
orderDir = orderDir_example # String | ascending, descending. Default is ascending (optional)

try: 
    # Lists organizations events
    api_response = api_instance.listOrganizationEvents(organizationId, startBefore=startBefore, startAfter=startAfter, endBefore=endBefore, endAfter=endAfter, firstResult=firstResult, maxResults=maxResults, orderBy=orderBy, orderDir=orderDir)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventsApi->listOrganizationEvents: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
Query parameters
Name Description
startBefore
startAfter
endBefore
endAfter
firstResult
maxResults
orderBy
orderDir

Responses

Status: 200 - Returns a list of events

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Files

findOrganizationFile

Finds organizations file

Finds single organization file


/organizations/{organizationId}/files/{fileId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/files/{fileId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

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

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID fileId = fileId_example; // UUID | file id
        try {
            FileDef result = apiInstance.findOrganizationFile(organizationId, fileId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#findOrganizationFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID fileId = fileId_example; // UUID | file id
        try {
            FileDef result = apiInstance.findOrganizationFile(organizationId, fileId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#findOrganizationFile");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *fileId = fileId_example; // file id

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

// Finds organizations file
[apiInstance findOrganizationFileWith:organizationId
    fileId:fileId
              completionHandler: ^(FileDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.FilesApi()

var organizationId = organizationId_example; // {UUID} Organization id

var fileId = fileId_example; // {UUID} file id


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

namespace Example
{
    public class findOrganizationFileExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var fileId = fileId_example;  // UUID | file id

            try
            {
                // Finds organizations file
                FileDef result = apiInstance.findOrganizationFile(organizationId, fileId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.findOrganizationFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$organizationId = organizationId_example; // UUID | Organization id
$fileId = fileId_example; // UUID | file id

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

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $fileId = fileId_example; # UUID | file id

eval { 
    my $result = $api_instance->findOrganizationFile(organizationId => $organizationId, fileId => $fileId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling FilesApi->findOrganizationFile: [email protected]\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.FilesApi()
organizationId = organizationId_example # UUID | Organization id
fileId = fileId_example # UUID | file id

try: 
    # Finds organizations file
    api_response = api_instance.findOrganizationFile(organizationId, fileId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FilesApi->findOrganizationFile: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
fileId*

Responses

Status: 200 - Returns a single organization file

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


getOrganizationFileData

Returns an organization file data

Returns an organization file data


/organizations/{organizationId}/files/{fileId}/data

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/files/{fileId}/data"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

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

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID fileId = fileId_example; // UUID | file id
        try {
            byte[] result = apiInstance.getOrganizationFileData(organizationId, fileId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#getOrganizationFileData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID fileId = fileId_example; // UUID | file id
        try {
            byte[] result = apiInstance.getOrganizationFileData(organizationId, fileId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#getOrganizationFileData");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *fileId = fileId_example; // file id

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

// Returns an organization file data
[apiInstance getOrganizationFileDataWith:organizationId
    fileId:fileId
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.FilesApi()

var organizationId = organizationId_example; // {UUID} Organization id

var fileId = fileId_example; // {UUID} file id


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

namespace Example
{
    public class getOrganizationFileDataExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var fileId = fileId_example;  // UUID | file id

            try
            {
                // Returns an organization file data
                byte[] result = apiInstance.getOrganizationFileData(organizationId, fileId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.getOrganizationFileData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$organizationId = organizationId_example; // UUID | Organization id
$fileId = fileId_example; // UUID | file id

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

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $fileId = fileId_example; # UUID | file id

eval { 
    my $result = $api_instance->getOrganizationFileData(organizationId => $organizationId, fileId => $fileId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling FilesApi->getOrganizationFileData: [email protected]\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.FilesApi()
organizationId = organizationId_example # UUID | Organization id
fileId = fileId_example # UUID | file id

try: 
    # Returns an organization file data
    api_response = api_instance.getOrganizationFileData(organizationId, fileId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FilesApi->getOrganizationFileData: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
fileId*

Responses

Status: 200 - Returns an organization file data

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationFiles

Lists organizations files

Lists organizations files


/organizations/{organizationId}/files

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/files?pageId=&search=&firstResult=&maxResults="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

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

public class FilesApiExample {

    public static void main(String[] args) {
        
        FilesApi apiInstance = new FilesApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID pageId = pageId_example; // UUID | Filter with page
        String search = search_example; // String | Search files by free-text query
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[FileDef] result = apiInstance.listOrganizationFiles(organizationId, pageId, search, firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#listOrganizationFiles");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID pageId = pageId_example; // UUID | Filter with page
        String search = search_example; // String | Search files by free-text query
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[FileDef] result = apiInstance.listOrganizationFiles(organizationId, pageId, search, firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#listOrganizationFiles");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *pageId = pageId_example; // Filter with page (optional)
String *search = search_example; // Search files by free-text query (optional)
Long *firstResult = 789; // First result (optional)
Long *maxResults = 789; // Max results (optional)

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

// Lists organizations files
[apiInstance listOrganizationFilesWith:organizationId
    pageId:pageId
    search:search
    firstResult:firstResult
    maxResults:maxResults
              completionHandler: ^(array[FileDef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.FilesApi()

var organizationId = organizationId_example; // {UUID} Organization id

var opts = { 
  'pageId': pageId_example, // {UUID} Filter with page
  'search': search_example, // {String} Search files by free-text query
  'firstResult': 789, // {Long} First result
  'maxResults': 789 // {Long} Max results
};

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

namespace Example
{
    public class listOrganizationFilesExample
    {
        public void main()
        {
            
            var apiInstance = new FilesApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var pageId = pageId_example;  // UUID | Filter with page (optional) 
            var search = search_example;  // String | Search files by free-text query (optional) 
            var firstResult = 789;  // Long | First result (optional) 
            var maxResults = 789;  // Long | Max results (optional) 

            try
            {
                // Lists organizations files
                array[FileDef] result = apiInstance.listOrganizationFiles(organizationId, pageId, search, firstResult, maxResults);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.listOrganizationFiles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FilesApi();
$organizationId = organizationId_example; // UUID | Organization id
$pageId = pageId_example; // UUID | Filter with page
$search = search_example; // String | Search files by free-text query
$firstResult = 789; // Long | First result
$maxResults = 789; // Long | Max results

try {
    $result = $api_instance->listOrganizationFiles($organizationId, $pageId, $search, $firstResult, $maxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->listOrganizationFiles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;

my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $pageId = pageId_example; # UUID | Filter with page
my $search = search_example; # String | Search files by free-text query
my $firstResult = 789; # Long | First result
my $maxResults = 789; # Long | Max results

eval { 
    my $result = $api_instance->listOrganizationFiles(organizationId => $organizationId, pageId => $pageId, search => $search, firstResult => $firstResult, maxResults => $maxResults);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling FilesApi->listOrganizationFiles: [email protected]\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.FilesApi()
organizationId = organizationId_example # UUID | Organization id
pageId = pageId_example # UUID | Filter with page (optional)
search = search_example # String | Search files by free-text query (optional)
firstResult = 789 # Long | First result (optional)
maxResults = 789 # Long | Max results (optional)

try: 
    # Lists organizations files
    api_response = api_instance.listOrganizationFiles(organizationId, pageId=pageId, search=search, firstResult=firstResult, maxResults=maxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FilesApi->listOrganizationFiles: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
Query parameters
Name Description
pageId
search
firstResult
maxResults

Responses

Status: 200 - Returns a list of organizations files

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Fragments

findOrganizationFragment

Finds organizations page fragment

Finds single organization page fragment


/organizations/{organizationId}/fragments/{fragmentId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/fragments/{fragmentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FragmentsApi;

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

public class FragmentsApiExample {

    public static void main(String[] args) {
        
        FragmentsApi apiInstance = new FragmentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID fragmentId = fragmentId_example; // UUID | fragment id
        try {
            Fragment result = apiInstance.findOrganizationFragment(organizationId, fragmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FragmentsApi#findOrganizationFragment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FragmentsApi;

public class FragmentsApiExample {

    public static void main(String[] args) {
        FragmentsApi apiInstance = new FragmentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID fragmentId = fragmentId_example; // UUID | fragment id
        try {
            Fragment result = apiInstance.findOrganizationFragment(organizationId, fragmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FragmentsApi#findOrganizationFragment");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *fragmentId = fragmentId_example; // fragment id

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

// Finds organizations page fragment
[apiInstance findOrganizationFragmentWith:organizationId
    fragmentId:fragmentId
              completionHandler: ^(Fragment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.FragmentsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var fragmentId = fragmentId_example; // {UUID} fragment id


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

namespace Example
{
    public class findOrganizationFragmentExample
    {
        public void main()
        {
            
            var apiInstance = new FragmentsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var fragmentId = fragmentId_example;  // UUID | fragment id

            try
            {
                // Finds organizations page fragment
                Fragment result = apiInstance.findOrganizationFragment(organizationId, fragmentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FragmentsApi.findOrganizationFragment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FragmentsApi();
$organizationId = organizationId_example; // UUID | Organization id
$fragmentId = fragmentId_example; // UUID | fragment id

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

my $api_instance = WWW::SwaggerClient::FragmentsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $fragmentId = fragmentId_example; # UUID | fragment id

eval { 
    my $result = $api_instance->findOrganizationFragment(organizationId => $organizationId, fragmentId => $fragmentId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling FragmentsApi->findOrganizationFragment: [email protected]\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.FragmentsApi()
organizationId = organizationId_example # UUID | Organization id
fragmentId = fragmentId_example # UUID | fragment id

try: 
    # Finds organizations page fragment
    api_response = api_instance.findOrganizationFragment(organizationId, fragmentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FragmentsApi->findOrganizationFragment: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
fragmentId*

Responses

Status: 200 - Returns a single organization page fragment

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationFragments

Lists organizations page fragments

Lists organizations page fragments


/organizations/{organizationId}/fragments

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/fragments?slug="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FragmentsApi;

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

public class FragmentsApiExample {

    public static void main(String[] args) {
        
        FragmentsApi apiInstance = new FragmentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String slug = slug_example; // String | Filter results by fragment slug
        try {
            array[Fragment] result = apiInstance.listOrganizationFragments(organizationId, slug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FragmentsApi#listOrganizationFragments");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FragmentsApi;

public class FragmentsApiExample {

    public static void main(String[] args) {
        FragmentsApi apiInstance = new FragmentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String slug = slug_example; // String | Filter results by fragment slug
        try {
            array[Fragment] result = apiInstance.listOrganizationFragments(organizationId, slug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FragmentsApi#listOrganizationFragments");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
String *slug = slug_example; // Filter results by fragment slug (optional)

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

// Lists organizations page fragments
[apiInstance listOrganizationFragmentsWith:organizationId
    slug:slug
              completionHandler: ^(array[Fragment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.FragmentsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var opts = { 
  'slug': slug_example // {String} Filter results by fragment slug
};

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

namespace Example
{
    public class listOrganizationFragmentsExample
    {
        public void main()
        {
            
            var apiInstance = new FragmentsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var slug = slug_example;  // String | Filter results by fragment slug (optional) 

            try
            {
                // Lists organizations page fragments
                array[Fragment] result = apiInstance.listOrganizationFragments(organizationId, slug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FragmentsApi.listOrganizationFragments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FragmentsApi();
$organizationId = organizationId_example; // UUID | Organization id
$slug = slug_example; // String | Filter results by fragment slug

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

my $api_instance = WWW::SwaggerClient::FragmentsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $slug = slug_example; # String | Filter results by fragment slug

eval { 
    my $result = $api_instance->listOrganizationFragments(organizationId => $organizationId, slug => $slug);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling FragmentsApi->listOrganizationFragments: [email protected]\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.FragmentsApi()
organizationId = organizationId_example # UUID | Organization id
slug = slug_example # String | Filter results by fragment slug (optional)

try: 
    # Lists organizations page fragments
    api_response = api_instance.listOrganizationFragments(organizationId, slug=slug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FragmentsApi->listOrganizationFragments: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
Query parameters
Name Description
slug

Responses

Status: 200 - Returns a list of page fragments

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Incidents

findOrganizationIncident

Returns organizations incident by id

Returns organizations incident by id


/organizations/{organizationId}/incidents/{incidentId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/incidents/{incidentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IncidentsApi;

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

public class IncidentsApiExample {

    public static void main(String[] args) {
        
        IncidentsApi apiInstance = new IncidentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID incidentId = incidentId_example; // UUID | Incident id
        try {
            Incident result = apiInstance.findOrganizationIncident(organizationId, incidentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IncidentsApi#findOrganizationIncident");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IncidentsApi;

public class IncidentsApiExample {

    public static void main(String[] args) {
        IncidentsApi apiInstance = new IncidentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID incidentId = incidentId_example; // UUID | Incident id
        try {
            Incident result = apiInstance.findOrganizationIncident(organizationId, incidentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IncidentsApi#findOrganizationIncident");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *incidentId = incidentId_example; // Incident id

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

// Returns organizations incident by id
[apiInstance findOrganizationIncidentWith:organizationId
    incidentId:incidentId
              completionHandler: ^(Incident output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.IncidentsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var incidentId = incidentId_example; // {UUID} Incident id


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

namespace Example
{
    public class findOrganizationIncidentExample
    {
        public void main()
        {
            
            var apiInstance = new IncidentsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var incidentId = incidentId_example;  // UUID | Incident id

            try
            {
                // Returns organizations incident by id
                Incident result = apiInstance.findOrganizationIncident(organizationId, incidentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IncidentsApi.findOrganizationIncident: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\IncidentsApi();
$organizationId = organizationId_example; // UUID | Organization id
$incidentId = incidentId_example; // UUID | Incident id

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

my $api_instance = WWW::SwaggerClient::IncidentsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $incidentId = incidentId_example; # UUID | Incident id

eval { 
    my $result = $api_instance->findOrganizationIncident(organizationId => $organizationId, incidentId => $incidentId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling IncidentsApi->findOrganizationIncident: [email protected]\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.IncidentsApi()
organizationId = organizationId_example # UUID | Organization id
incidentId = incidentId_example # UUID | Incident id

try: 
    # Returns organizations incident by id
    api_response = api_instance.findOrganizationIncident(organizationId, incidentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IncidentsApi->findOrganizationIncident: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
incidentId*

Responses

Status: 200 - Returns a single incident

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationIncidents

Lists organizations incidents

Lists organizations incidents


/organizations/{organizationId}/incidents

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/incidents?startBefore=&endAfter=&area=&firstResult=&maxResults=&orderBy=&orderDir="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IncidentsApi;

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

public class IncidentsApiExample {

    public static void main(String[] args) {
        
        IncidentsApi apiInstance = new IncidentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        Date startBefore = 2013-10-20T19:20:30+01:00; // Date | 
        Date endAfter = 2013-10-20T19:20:30+01:00; // Date | 
        Integer area = 56; // Integer | Return only incidents from specified area
        Integer firstResult = 56; // Integer | First index of results
        Integer maxResults = 56; // Integer | Maximum number of results
        String orderBy = orderBy_example; // String | Define order (start, end)
        String orderDir = orderDir_example; // String | Order direction (ASC, DESC). Default is ASC
        try {
            array[Incident] result = apiInstance.listOrganizationIncidents(organizationId, startBefore, endAfter, area, firstResult, maxResults, orderBy, orderDir);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IncidentsApi#listOrganizationIncidents");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IncidentsApi;

public class IncidentsApiExample {

    public static void main(String[] args) {
        IncidentsApi apiInstance = new IncidentsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        Date startBefore = 2013-10-20T19:20:30+01:00; // Date | 
        Date endAfter = 2013-10-20T19:20:30+01:00; // Date | 
        Integer area = 56; // Integer | Return only incidents from specified area
        Integer firstResult = 56; // Integer | First index of results
        Integer maxResults = 56; // Integer | Maximum number of results
        String orderBy = orderBy_example; // String | Define order (start, end)
        String orderDir = orderDir_example; // String | Order direction (ASC, DESC). Default is ASC
        try {
            array[Incident] result = apiInstance.listOrganizationIncidents(organizationId, startBefore, endAfter, area, firstResult, maxResults, orderBy, orderDir);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IncidentsApi#listOrganizationIncidents");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
Date *startBefore = 2013-10-20T19:20:30+01:00; //  (optional)
Date *endAfter = 2013-10-20T19:20:30+01:00; //  (optional)
Integer *area = 56; // Return only incidents from specified area (optional)
Integer *firstResult = 56; // First index of results (optional)
Integer *maxResults = 56; // Maximum number of results (optional)
String *orderBy = orderBy_example; // Define order (start, end) (optional)
String *orderDir = orderDir_example; // Order direction (ASC, DESC). Default is ASC (optional)

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

// Lists organizations incidents
[apiInstance listOrganizationIncidentsWith:organizationId
    startBefore:startBefore
    endAfter:endAfter
    area:area
    firstResult:firstResult
    maxResults:maxResults
    orderBy:orderBy
    orderDir:orderDir
              completionHandler: ^(array[Incident] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.IncidentsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var opts = { 
  'startBefore': 2013-10-20T19:20:30+01:00, // {Date} 
  'endAfter': 2013-10-20T19:20:30+01:00, // {Date} 
  'area': 56, // {Integer} Return only incidents from specified area
  'firstResult': 56, // {Integer} First index of results
  'maxResults': 56, // {Integer} Maximum number of results
  'orderBy': orderBy_example, // {String} Define order (start, end)
  'orderDir': orderDir_example // {String} Order direction (ASC, DESC). Default is ASC
};

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

namespace Example
{
    public class listOrganizationIncidentsExample
    {
        public void main()
        {
            
            var apiInstance = new IncidentsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var startBefore = 2013-10-20T19:20:30+01:00;  // Date |  (optional) 
            var endAfter = 2013-10-20T19:20:30+01:00;  // Date |  (optional) 
            var area = 56;  // Integer | Return only incidents from specified area (optional) 
            var firstResult = 56;  // Integer | First index of results (optional) 
            var maxResults = 56;  // Integer | Maximum number of results (optional) 
            var orderBy = orderBy_example;  // String | Define order (start, end) (optional) 
            var orderDir = orderDir_example;  // String | Order direction (ASC, DESC). Default is ASC (optional) 

            try
            {
                // Lists organizations incidents
                array[Incident] result = apiInstance.listOrganizationIncidents(organizationId, startBefore, endAfter, area, firstResult, maxResults, orderBy, orderDir);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IncidentsApi.listOrganizationIncidents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\IncidentsApi();
$organizationId = organizationId_example; // UUID | Organization id
$startBefore = 2013-10-20T19:20:30+01:00; // Date | 
$endAfter = 2013-10-20T19:20:30+01:00; // Date | 
$area = 56; // Integer | Return only incidents from specified area
$firstResult = 56; // Integer | First index of results
$maxResults = 56; // Integer | Maximum number of results
$orderBy = orderBy_example; // String | Define order (start, end)
$orderDir = orderDir_example; // String | Order direction (ASC, DESC). Default is ASC

try {
    $result = $api_instance->listOrganizationIncidents($organizationId, $startBefore, $endAfter, $area, $firstResult, $maxResults, $orderBy, $orderDir);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IncidentsApi->listOrganizationIncidents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::IncidentsApi;

my $api_instance = WWW::SwaggerClient::IncidentsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $startBefore = 2013-10-20T19:20:30+01:00; # Date | 
my $endAfter = 2013-10-20T19:20:30+01:00; # Date | 
my $area = 56; # Integer | Return only incidents from specified area
my $firstResult = 56; # Integer | First index of results
my $maxResults = 56; # Integer | Maximum number of results
my $orderBy = orderBy_example; # String | Define order (start, end)
my $orderDir = orderDir_example; # String | Order direction (ASC, DESC). Default is ASC

eval { 
    my $result = $api_instance->listOrganizationIncidents(organizationId => $organizationId, startBefore => $startBefore, endAfter => $endAfter, area => $area, firstResult => $firstResult, maxResults => $maxResults, orderBy => $orderBy, orderDir => $orderDir);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling IncidentsApi->listOrganizationIncidents: [email protected]\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.IncidentsApi()
organizationId = organizationId_example # UUID | Organization id
startBefore = 2013-10-20T19:20:30+01:00 # Date |  (optional)
endAfter = 2013-10-20T19:20:30+01:00 # Date |  (optional)
area = 56 # Integer | Return only incidents from specified area (optional)
firstResult = 56 # Integer | First index of results (optional)
maxResults = 56 # Integer | Maximum number of results (optional)
orderBy = orderBy_example # String | Define order (start, end) (optional)
orderDir = orderDir_example # String | Order direction (ASC, DESC). Default is ASC (optional)

try: 
    # Lists organizations incidents
    api_response = api_instance.listOrganizationIncidents(organizationId, startBefore=startBefore, endAfter=endAfter, area=area, firstResult=firstResult, maxResults=maxResults, orderBy=orderBy, orderDir=orderDir)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IncidentsApi->listOrganizationIncidents: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
Query parameters
Name Description
startBefore
endAfter
area
firstResult
maxResults
orderBy
orderDir

Responses

Status: 200 - Returns a list of incidents

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Jobs

findOrganizationJob

Finds organizations job

Finds single organization job


/organizations/{organizationId}/jobs/{jobId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/jobs/{jobId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.JobsApi;

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

public class JobsApiExample {

    public static void main(String[] args) {
        
        JobsApi apiInstance = new JobsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID jobId = jobId_example; // UUID | job id
        try {
            Job result = apiInstance.findOrganizationJob(organizationId, jobId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling JobsApi#findOrganizationJob");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.JobsApi;

public class JobsApiExample {

    public static void main(String[] args) {
        JobsApi apiInstance = new JobsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID jobId = jobId_example; // UUID | job id
        try {
            Job result = apiInstance.findOrganizationJob(organizationId, jobId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling JobsApi#findOrganizationJob");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *jobId = jobId_example; // job id

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

// Finds organizations job
[apiInstance findOrganizationJobWith:organizationId
    jobId:jobId
              completionHandler: ^(Job output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.JobsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var jobId = jobId_example; // {UUID} job id


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

namespace Example
{
    public class findOrganizationJobExample
    {
        public void main()
        {
            
            var apiInstance = new JobsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var jobId = jobId_example;  // UUID | job id

            try
            {
                // Finds organizations job
                Job result = apiInstance.findOrganizationJob(organizationId, jobId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling JobsApi.findOrganizationJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\JobsApi();
$organizationId = organizationId_example; // UUID | Organization id
$jobId = jobId_example; // UUID | job id

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

my $api_instance = WWW::SwaggerClient::JobsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $jobId = jobId_example; # UUID | job id

eval { 
    my $result = $api_instance->findOrganizationJob(organizationId => $organizationId, jobId => $jobId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling JobsApi->findOrganizationJob: [email protected]\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.JobsApi()
organizationId = organizationId_example # UUID | Organization id
jobId = jobId_example # UUID | job id

try: 
    # Finds organizations job
    api_response = api_instance.findOrganizationJob(organizationId, jobId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling JobsApi->findOrganizationJob: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
jobId*

Responses

Status: 200 - Returns a single organization job

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


listOrganizationJobs

Lists organizations jobs

Lists organizations jobs


/organizations/{organizationId}/jobs

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/jobs?sortBy=&sortDir=&firstResult=&maxResults="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.JobsApi;

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

public class JobsApiExample {

    public static void main(String[] args) {
        
        JobsApi apiInstance = new JobsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String sortBy = sortBy_example; // String | PUBLICATION_START or PUBLICATION_END
        String sortDir = sortDir_example; // String | ASC or DESC
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[Job] result = apiInstance.listOrganizationJobs(organizationId, sortBy, sortDir, firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling JobsApi#listOrganizationJobs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.JobsApi;

public class JobsApiExample {

    public static void main(String[] args) {
        JobsApi apiInstance = new JobsApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        String sortBy = sortBy_example; // String | PUBLICATION_START or PUBLICATION_END
        String sortDir = sortDir_example; // String | ASC or DESC
        Long firstResult = 789; // Long | First result
        Long maxResults = 789; // Long | Max results
        try {
            array[Job] result = apiInstance.listOrganizationJobs(organizationId, sortBy, sortDir, firstResult, maxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling JobsApi#listOrganizationJobs");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
String *sortBy = sortBy_example; // PUBLICATION_START or PUBLICATION_END (optional)
String *sortDir = sortDir_example; // ASC or DESC (optional)
Long *firstResult = 789; // First result (optional)
Long *maxResults = 789; // Max results (optional)

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

// Lists organizations jobs
[apiInstance listOrganizationJobsWith:organizationId
    sortBy:sortBy
    sortDir:sortDir
    firstResult:firstResult
    maxResults:maxResults
              completionHandler: ^(array[Job] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.JobsApi()

var organizationId = organizationId_example; // {UUID} Organization id

var opts = { 
  'sortBy': sortBy_example, // {String} PUBLICATION_START or PUBLICATION_END
  'sortDir': sortDir_example, // {String} ASC or DESC
  'firstResult': 789, // {Long} First result
  'maxResults': 789 // {Long} Max results
};

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

namespace Example
{
    public class listOrganizationJobsExample
    {
        public void main()
        {
            
            var apiInstance = new JobsApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var sortBy = sortBy_example;  // String | PUBLICATION_START or PUBLICATION_END (optional) 
            var sortDir = sortDir_example;  // String | ASC or DESC (optional) 
            var firstResult = 789;  // Long | First result (optional) 
            var maxResults = 789;  // Long | Max results (optional) 

            try
            {
                // Lists organizations jobs
                array[Job] result = apiInstance.listOrganizationJobs(organizationId, sortBy, sortDir, firstResult, maxResults);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling JobsApi.listOrganizationJobs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\JobsApi();
$organizationId = organizationId_example; // UUID | Organization id
$sortBy = sortBy_example; // String | PUBLICATION_START or PUBLICATION_END
$sortDir = sortDir_example; // String | ASC or DESC
$firstResult = 789; // Long | First result
$maxResults = 789; // Long | Max results

try {
    $result = $api_instance->listOrganizationJobs($organizationId, $sortBy, $sortDir, $firstResult, $maxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling JobsApi->listOrganizationJobs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::JobsApi;

my $api_instance = WWW::SwaggerClient::JobsApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $sortBy = sortBy_example; # String | PUBLICATION_START or PUBLICATION_END
my $sortDir = sortDir_example; # String | ASC or DESC
my $firstResult = 789; # Long | First result
my $maxResults = 789; # Long | Max results

eval { 
    my $result = $api_instance->listOrganizationJobs(organizationId => $organizationId, sortBy => $sortBy, sortDir => $sortDir, firstResult => $firstResult, maxResults => $maxResults);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling JobsApi->listOrganizationJobs: [email protected]\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.JobsApi()
organizationId = organizationId_example # UUID | Organization id
sortBy = sortBy_example # String | PUBLICATION_START or PUBLICATION_END (optional)
sortDir = sortDir_example # String | ASC or DESC (optional)
firstResult = 789 # Long | First result (optional)
maxResults = 789 # Long | Max results (optional)

try: 
    # Lists organizations jobs
    api_response = api_instance.listOrganizationJobs(organizationId, sortBy=sortBy, sortDir=sortDir, firstResult=firstResult, maxResults=maxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling JobsApi->listOrganizationJobs: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
Query parameters
Name Description
sortBy
sortDir
firstResult
maxResults

Responses

Status: 200 - Returns a list of organizations jobs

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


Menus

findOrganizationMenu

Finds organizations menu

Finds single organization menu


/organizations/{organizationId}/menus/{menuId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/menus/{menuId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MenusApi;

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

public class MenusApiExample {

    public static void main(String[] args) {
        
        MenusApi apiInstance = new MenusApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID menuId = menuId_example; // UUID | menu id
        try {
            Menu result = apiInstance.findOrganizationMenu(organizationId, menuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenusApi#findOrganizationMenu");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MenusApi;

public class MenusApiExample {

    public static void main(String[] args) {
        MenusApi apiInstance = new MenusApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID menuId = menuId_example; // UUID | menu id
        try {
            Menu result = apiInstance.findOrganizationMenu(organizationId, menuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenusApi#findOrganizationMenu");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *menuId = menuId_example; // menu id

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

// Finds organizations menu
[apiInstance findOrganizationMenuWith:organizationId
    menuId:menuId
              completionHandler: ^(Menu output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.MenusApi()

var organizationId = organizationId_example; // {UUID} Organization id

var menuId = menuId_example; // {UUID} menu id


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

namespace Example
{
    public class findOrganizationMenuExample
    {
        public void main()
        {
            
            var apiInstance = new MenusApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var menuId = menuId_example;  // UUID | menu id

            try
            {
                // Finds organizations menu
                Menu result = apiInstance.findOrganizationMenu(organizationId, menuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenusApi.findOrganizationMenu: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MenusApi();
$organizationId = organizationId_example; // UUID | Organization id
$menuId = menuId_example; // UUID | menu id

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

my $api_instance = WWW::SwaggerClient::MenusApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $menuId = menuId_example; # UUID | menu id

eval { 
    my $result = $api_instance->findOrganizationMenu(organizationId => $organizationId, menuId => $menuId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling MenusApi->findOrganizationMenu: [email protected]\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.MenusApi()
organizationId = organizationId_example # UUID | Organization id
menuId = menuId_example # UUID | menu id

try: 
    # Finds organizations menu
    api_response = api_instance.findOrganizationMenu(organizationId, menuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MenusApi->findOrganizationMenu: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
menuId*

Responses

Status: 200 - Returns a single organization menu

Status: 400 - Invalid request was sent to the server

Status: 403 - Attempted to make a call with unauthorized client

Status: 500 - Internal server error


findOrganizationMenuItem

Finds organization menu item

Finds single organization menu item


/organizations/{organizationId}/menus/{menuId}/items/{menuItemId}

Usage and SDK Samples

curl -X get "https://demo.kuntaapi.fi/v1/organizations/{organizationId}/menus/{menuId}/items/{menuItemId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MenusApi;

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

public class MenusApiExample {

    public static void main(String[] args) {
        
        MenusApi apiInstance = new MenusApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID menuId = menuId_example; // UUID | menu id
        UUID menuItemId = menuItemId_example; // UUID | menu item id
        try {
            MenuItem result = apiInstance.findOrganizationMenuItem(organizationId, menuId, menuItemId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenusApi#findOrganizationMenuItem");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MenusApi;

public class MenusApiExample {

    public static void main(String[] args) {
        MenusApi apiInstance = new MenusApi();
        UUID organizationId = organizationId_example; // UUID | Organization id
        UUID menuId = menuId_example; // UUID | menu id
        UUID menuItemId = menuItemId_example; // UUID | menu item id
        try {
            MenuItem result = apiInstance.findOrganizationMenuItem(organizationId, menuId, menuItemId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenusApi#findOrganizationMenuItem");
            e.printStackTrace();
        }
    }
}
UUID *organizationId = organizationId_example; // Organization id
UUID *menuId = menuId_example; // menu id
UUID *menuItemId = menuItemId_example; // menu item id

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

// Finds organization menu item
[apiInstance findOrganizationMenuItemWith:organizationId
    menuId:menuId
    menuItemId:menuItemId
              completionHandler: ^(MenuItem output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KuntaApi = require('kunta_api');

var api = new KuntaApi.MenusApi()

var organizationId = organizationId_example; // {UUID} Organization id

var menuId = menuId_example; // {UUID} menu id

var menuItemId = menuItemId_example; // {UUID} menu item id


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

namespace Example
{
    public class findOrganizationMenuItemExample
    {
        public void main()
        {
            
            var apiInstance = new MenusApi();
            var organizationId = organizationId_example;  // UUID | Organization id
            var menuId = menuId_example;  // UUID | menu id
            var menuItemId = menuItemId_example;  // UUID | menu item id

            try
            {
                // Finds organization menu item
                MenuItem result = apiInstance.findOrganizationMenuItem(organizationId, menuId, menuItemId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenusApi.findOrganizationMenuItem: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MenusApi();
$organizationId = organizationId_example; // UUID | Organization id
$menuId = menuId_example; // UUID | menu id
$menuItemId = menuItemId_example; // UUID | menu item id

try {
    $result = $api_instance->findOrganizationMenuItem($organizationId, $menuId, $menuItemId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MenusApi->findOrganizationMenuItem: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MenusApi;

my $api_instance = WWW::SwaggerClient::MenusApi->new();
my $organizationId = organizationId_example; # UUID | Organization id
my $menuId = menuId_example; # UUID | menu id
my $menuItemId = menuItemId_example; # UUID | menu item id

eval { 
    my $result = $api_instance->findOrganizationMenuItem(organizationId => $organizationId, menuId => $menuId, menuItemId => $menuItemId);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling MenusApi->findOrganizationMenuItem: [email protected]\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.MenusApi()
organizationId = organizationId_example # UUID | Organization id
menuId = menuId_example # UUID | menu id
menuItemId = menuItemId_example # UUID | menu item id

try: 
    # Finds organization menu item
    api_response = api_instance.findOrganizationMenuItem(organizationId, menuId, menuItemId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MenusApi->findOrganizationMenuItem: %s\n" % e)

Parameters

Path parameters
Name Description
organizationId*
menuId*
menuItemId*