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
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
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
- AccessibilityContactInfo
- AccessibilitySentence
- AccessibilitySentenceValue
- Address
- AddressEntrance
- Agency
- Announcement
- Area
- Attachment
- BadRequest
- Banner
- Code
- CodeExtra
- Contact
- ContactPhone
- ContactStatus
- Coordinate
- Coordinates
- DailyOpeningTime
- ElectronicServiceChannel
- Emergency
- EmergencySource
- EnvironmentalWarning
- Event
- FileDef
- Forbidden
- Fragment
- Incident
- InternalServerError
- Job
- Law
- LocalizedValue
- Menu
- MenuItem
- Municipality
- NameTypeByLanguage
- NewsArticle
- NotFound
- NotImplemented
- OntologyItem
- Organization
- OrganizationService
- OrganizationSetting
- Page
- PageMeta
- Phone
- PhoneServiceChannel
- PrintableFormServiceChannel
- Route
- Schedule
- ScheduleException
- Service
- ServiceChannelAttachment
- ServiceHour
- ServiceLocationServiceChannel
- ServiceOrganization
- ServiceVoucher
- Shortlink
- Stop
- StopTime
- Tile
- Trip
- WebPage
- WebPageServiceChannel
Documentation For Authorization
basicAuth
- Type: HTTP basic authentication