Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit c6b82cb

Browse files
authored
Merge pull request #98 from apisearch-io/fix/fixed-interactions-post-method
Interactions post action fixed
2 parents 9a796fb + c08f19e commit c6b82cb

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

User/HttpUserRepository.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ public function addInteraction(Interaction $interaction)
3333
$response = $this
3434
->httpClient
3535
->get(
36-
'/interactions',
37-
'get',
38-
Http::getQueryValues($this),
39-
[
40-
'interaction' => $interaction->toArray(),
41-
]);
36+
sprintf(
37+
'/%s/interactions',
38+
$this->getAppUUID()->composeUUID()
39+
),
40+
'post',
41+
[],
42+
$interaction->toArray(),
43+
Http::getApisearchHeaders($this)
44+
);
4245

4346
self::throwTransportableExceptionIfNeeded($response);
4447
}

0 commit comments

Comments
 (0)