Skip to content

Commit 8d9a1a3

Browse files
committed
Update request methods for onFocus and onSession from PUT to POST to match documentation
1 parent 8d7cf54 commit 8d9a1a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Devices.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function onSession($id, array $data)
147147
->setAllowedTypes('sdk', 'string')
148148
->resolve($data);
149149

150-
return $this->api->request('PUT', '/players/' . $id . '/on_session', [
150+
return $this->api->request('POST', '/players/' . $id . '/on_session', [
151151
'headers' => [
152152
'Content-Type' => 'application/json',
153153
],
@@ -207,7 +207,7 @@ public function onFocus($id, array $data)
207207
->setAllowedTypes('active_time', 'int')
208208
->resolve($data);
209209

210-
return $this->api->request('PUT', '/players/' . $id . '/on_focus', [
210+
return $this->api->request('POST', '/players/' . $id . '/on_focus', [
211211
'headers' => [
212212
'Content-Type' => 'application/json',
213213
],

0 commit comments

Comments
 (0)