Skip to content

Commit

Permalink
Updated API url
Browse files Browse the repository at this point in the history
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
  • Loading branch information
feldsam committed May 30, 2024
1 parent 63b9718 commit 56a953c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FioApi/UrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class UrlBuilder
{
const BASE_URL = 'https://www.fio.cz/ib_api/rest/';
const BASE_URL = 'https://fioapi.fio.cz/v1/rest/';

/** @var string */
protected $token;
Expand Down
2 changes: 1 addition & 1 deletion tests/FioApi/DownloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function testDownloaderSetsLastId()
/** @var \GuzzleHttp\Psr7\Request $request */
$request = $container[0]['request'];

$this->assertSame('https://www.fio.cz/ib_api/rest/set-last-id/validToken/123456/', (string) $request->getUri());
$this->assertSame('https://fioapi.fio.cz/v1/rest/set-last-id/validToken/123456/', (string) $request->getUri());
}

public function testDownloaderSetCertificatePath()
Expand Down
2 changes: 1 addition & 1 deletion tests/FioApi/UrlBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testBuildPeriodsUrlReturnValidUrl()
{
$urlBuilder = new UrlBuilder('token1');
$this->assertSame(
'https://www.fio.cz/ib_api/rest/periods/token1/2015-03-25/2015-03-31/transactions.json',
'https://fioapi.fio.cz/v1/rest/periods/token1/2015-03-25/2015-03-31/transactions.json',
$urlBuilder->buildPeriodsUrl(
new \DateTimeImmutable('2015-03-25'),
new \DateTimeImmutable('2015-03-31')
Expand Down

0 comments on commit 56a953c

Please sign in to comment.