PHP code example of wohnparc / moeware-client
1. Go to this page and download the library: Download wohnparc/moeware-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/ */
wohnparc / moeware-client example snippets
$client = new Client("<endpoint>", "<api_key>", "<api_secret>");
$date = new DateTime("now - 1 day");
$result = $client->queryUpdatedArticleAndSetRefs($date);
if ($result->hasErrors()) {
// handle errors appropriately
}
$result->getArticleRefs();
$result->getSetRefs();