Changeset 969


Ignore:
Timestamp:
Jul 17, 2024, 8:18:15 PM (3 months ago)
Author:
chronos
Message:
  • Modified: New Fio bank API server URL.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r968 r969  
    11<?php
    22
    3 $Revision = 968; // Subversion revision
     3$Revision = 969; // Subversion revision
    44$DatabaseRevision = 967; // SQL structure revision
    5 $ReleaseTime = strtotime('2024-04-12');
     5$ReleaseTime = strtotime('2024-07-17');
  • trunk/Modules/FinanceBankAPI/FioAPI.php

    r911 r969  
    11<?php
    22
    3 // Specifikace API: https://www.fio.cz/docs/cz/API_Bankovnictvi.pdf
     3// API specification: https://www.fio.cz/docs/cz/API_Bankovnictvi.pdf
    44
    55include('GPC.php');
     
    2727    if ($this->Token == '') throw new Exception('Missing value for Token property.');
    2828
    29     // URL format: https://www.fio.cz/ib_api/rest/periods/{token}/{datum od}/{datum do}/transactions.{format}
     29    // URL format: https://fioapi.fio.cz/v1/rest/periods/{token}/{datum od}/{datum do}/transactions.{format}
    3030    // Send request
    31     $RequestURL = '/ib_api/rest/periods/'.$this->Token.'/'.
     31    $RequestURL = '/v1/rest/periods/'.$this->Token.'/'.
    3232      date('Y-m-d', $TimeFrom).'/'.date('Y-m-d', $TimeTo).'/transactions.'.$this->Format;
    3333    $Response = '';
    34     $Response = @file_get_contents('https://www.fio.cz'.$RequestURL);
     34    $Response = @file_get_contents('https://fioapi.fio.cz'.$RequestURL);
    3535    if ($Response == FALSE)
    3636    {
Note: See TracChangeset for help on using the changeset viewer.