Skip to content

Commit 0c52c20

Browse files
author
craghurampec
committed
updating session status
1 parent b1442ec commit 0c52c20

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/BwtApiClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getAmazonSessionStatus(
6868
try {
6969
$response = $this->makeRequest(
7070
'get',
71-
$this->baseUrl .= "/$id",
71+
$this->baseUrl . "/$id",
7272
null,
7373
3,
7474
);
@@ -85,13 +85,13 @@ public function getAmazonSessionStatus(
8585

8686
public function getAmazonResults(
8787
string $id,
88-
int $limit = 1,
88+
int $limit = 1000,
8989
int $offset = 0,
9090
): AmazonResults {
9191
try {
9292
$response = $this->makeRequest(
9393
'get',
94-
$this->baseUrl .= "/$id/results?limit=$limit&offset=$offset",
94+
$this->baseUrl . "/$id/results?limit=$limit&offset=$offset",
9595
null,
9696
3,
9797
);

src/DTOs/Amazon/AmazonSessionStatusResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class AmazonSessionStatusResponse extends Data
1313
public function __construct(
1414
public readonly int $status,
1515
public readonly string $message,
16-
#[WithCast(DateTimeInterfaceCast::class, format: ['Y-m-d H:i:s', 'Y-m-d\TH:i:s\+H:i', 'Y-m-d H:i:s.u'])]
16+
#[WithCast(DateTimeInterfaceCast::class, format: ['Y-m-d H:i:s', 'Y-m-d\TH:i:s\+H:i', 'Y-m-d H:i:s.u', 'Y-m-d\TH:i:s'])]
1717
public readonly ?Carbon $created_at,
18-
#[WithCast(DateTimeInterfaceCast::class, format: ['Y-m-d H:i:s', 'Y-m-d\TH:i:s\+H:i', 'Y-m-d H:i:s.u'])]
18+
#[WithCast(DateTimeInterfaceCast::class, format: ['Y-m-d H:i:s', 'Y-m-d\TH:i:s\+H:i', 'Y-m-d H:i:s.u', 'Y-m-d\TH:i:s'])]
1919
public readonly ?Carbon $finished_at,
2020
) {}
2121
}

0 commit comments

Comments
 (0)