PHP code example of hmennen90 / ostrom-php-client
1. Go to this page and download the library: Download hmennen90/ostrom-php-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hmennen90 / ostrom-php-client example snippets
composer
use Hmennen90\OstromPhpClient\OstromServiceConnector;
use Hmennen90\OstromPhpClient\Service\Ostrom\Requests\Users\GetMeRequest;
use Hmennen90\OstromPhpClient\Service\Ostrom\Responses\Users\GetMeResponse;
$ostrom = new OstromServiceConnector();
$request = new GetMeRequest();
/** @var GetMeResponse $response */
$response = $ostrom->executeRequest($request);
$response->getEmail();
$response->getFirstName();
$response->getLastName();
$response->getLangauge();