deployhuman / kivra-client
Client to access kivra API
dev-main
2023-12-08 10:19 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.0
- monolog/monolog: ^2.3.0
Requires (Dev)
- laravel/pint: ^1.2
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-11-08 12:28:43 UTC
README
- API version: v2 and V1
Is suppose to be a simple client to access a Swedish company named Kivra´s API.
All help is appreciated
Composer
To install using Composer
Just type
composer require deployhuman/kivra-client dev-main
And you are good!
Getting Started
<?php require_once(__DIR__ . '/vendor/autoload.php'); //starting a Config Instance, setting up the bare minimum $Config = (new \DeployHuman\Configuration()) ->setClient_id('Your API pre-known Client Id') ->setClient_secret('Your API pre-known Client Secret') //add config to the Client to create and api instance $apiInstance = new \DeployHuman\ApiClient($Config); //from this instance you can now call All the Kivra API´s **** $fetchArray = $apiInstance->TenantManagement()->callAPIListAllTenantsAccessibleToTheClient(); ?>
Documentation for API Endpoints
*** = I´m slowly adding new calls, first its only going to be the basics one.
All URIs are relative to *https://sender.api.kivra.com