ffwagency/borgerdk-php

View on GitHub
examples/GetArticlesByIDs.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/*
 * This file is part of the borgerdk-php SDK.
 *
 * (c) Jens Beltofte <jens.beltofte@ffwagency.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

include("../vendor/autoload.php");

use BorgerDk\ArticleService\Client as BorgerDkClient;
use BorgerDk\ArticleService\Resources\Endpoints\GetArticlesByIDs;

$client = new BorgerDkClient();
$params = array('articleIDs' => array(150, 152, 154, 155), 'municipalityCode' => 157);
$articles = new GetArticlesByIDs($client, $params);

echo "<pre>";
print_r($articles->getResultFormatted());