Skip to content

Commit 56a953c

Browse files
committed
Updated API url
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
1 parent 63b9718 commit 56a953c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/FioApi/UrlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class UrlBuilder
99
{
10-
const BASE_URL = 'https://www.fio.cz/ib_api/rest/';
10+
const BASE_URL = 'https://fioapi.fio.cz/v1/rest/';
1111

1212
/** @var string */
1313
protected $token;

tests/FioApi/DownloaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testDownloaderSetsLastId()
9090
/** @var \GuzzleHttp\Psr7\Request $request */
9191
$request = $container[0]['request'];
9292

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

9696
public function testDownloaderSetCertificatePath()

tests/FioApi/UrlBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testBuildPeriodsUrlReturnValidUrl()
2929
{
3030
$urlBuilder = new UrlBuilder('token1');
3131
$this->assertSame(
32-
'https://www.fio.cz/ib_api/rest/periods/token1/2015-03-25/2015-03-31/transactions.json',
32+
'https://fioapi.fio.cz/v1/rest/periods/token1/2015-03-25/2015-03-31/transactions.json',
3333
$urlBuilder->buildPeriodsUrl(
3434
new \DateTimeImmutable('2015-03-25'),
3535
new \DateTimeImmutable('2015-03-31')

0 commit comments

Comments
 (0)