Skip to content

stefna/skjalatilkynning-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skjalatilkynning Api Client

Latest Version on Packagist Software License

Library to communicate with Island.is mailbox (Pósthólf)

Installation

composer require stefna/skjalatilkynning-api-client

Usage

Setup

Remember to install a PSR-7, PSR-17 and PSR-18

We recommend nyholm/psr7 and kriswallsmith/buzz to fill does interfaces. If does packages are installed the api-client will auto wire the clients and factories.

Setup for production use

$bearerToken = AuthSecurityValue::bearer('token');
$service = \SkjalatilkynningApiClient\Service::createWithSecurityValues($bearerToken);

Setup for testing use

$bearerToken = AuthSecurityValue::bearer('token');
$config = new SkjalatilkynningApiClient\ServerConfiguration($bearerToken);
$config->selectServer('Development');
$service = SkjalatilkynningApiClient\Service::create($config);

Setup with custom psr implementations

$bearerToken = AuthSecurityValue::bearer('token');
$service = new SkjalatilkynningApiClient\Service(
	new SkjalatilkynningApiClient\ServerConfiguration($bearerToken),
	new GuzzleHttp\Client(),
	new GuzzleHttp\Psr7\HttpFactory(),
);

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages