Skip to content

SincosSoftware/helthjem-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helthjem PHP SDK

A simple PHP implementation of some Helthjem API's.

Supported endpoints:

Usage example:

$client = new HelthjemSDK\Shared\RequestHandler(
    new GuzzleHttp\Client([GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 1.0])
);

// some implementation of HelthjemSDK\Shared\Interfaces\Configuration
$configuration = new Configuration();

$address = HelthjemSDK\Shared\Address::fromArray([
    "countryCode" => 'NO',
    "city" => 'Oslo',
    "zipCode" => '0468',
    "streetAddress" => 'Moldegata 5'
]);

$authTokenRequest = new HelthjemSDK\Authentication\AuthTokenRequest($configuration);
$token = $client->send($authTokenRequest);

$singleAddressCheckRequest = new HelthjemSDK\SingleAddressCheck\SingleAddressCheckRequest($token, $configuration, $address);
$singleAddressCheck = $client->send($singleAddressCheckRequest);

$nearbyServicePointRequest = new HelthjemSDK\NearbyServicepoint\NearbyServicepointRequest($token, $configuration, $address);
$nearbyServicePoints = $client->send($nearbyServicePointRequest);

Created by 24nettbutikk.no

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages