Ignore:
Timestamp:
Jul 17, 2024, 8:18:15 PM (5 months ago)
Author:
chronos
Message:
  • Modified: New Fio bank API server URL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.