PHP code example of salamek / servis24api

1. Go to this page and download the library: Download salamek/servis24api 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/ */

    

salamek / servis24api example snippets




alamek\Servis24;

$servis24 = new Servis24('ACCOUNT_ID', 'ACCOUNT_PASSWORD', '/my/secured/storage');


//Return transactions as array filtred by dateFrom and dateTo
$array = $servis24->getTransactions('BANK_ACCOUNT_NUMBER', new \DateTime('2016-01-20'), new \DateTime());
echo '<pre>';
print_r($array);
echo '</pre>';