metatavu/kunta-api-php-client

This package is abandoned and no longer maintained. No replacement package was suggested.

1.0.19 2019-07-09 08:12 UTC

This package is not auto-updated.

Last update: 2024-08-13 07:16:50 UTC


README

Solution to combine municipality services under single API.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 0.1.0
  • Package version: 1.0.19
  • Build date: 2019-07-09T11:12:08.838+03:00
  • Build package: class io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/metatavu/kunta-api-php-client.git"
    }
  ],
  "require": {
    "metatavu/kunta-api-php-client": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/kunta-api-php-client/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
KuntaAPI\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
KuntaAPI\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new KuntaAPI\Api\AnnouncementsApi();
$organizationId = "organizationId_example"; // string | Organization id
$announcementId = "announcementId_example"; // string | 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;
}

?>

Documentation for API Endpoints

All URIs are relative to https://demo.kuntaapi.fi/v1

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author