Skip to content

Commit 89ca1ff

Browse files
committed
Fix devices getOne request
1 parent 2460e63 commit 89ca1ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Devices.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ public function __construct(OneSignal $api)
3535
*/
3636
public function getOne($id)
3737
{
38-
return $this->api->request('GET', '/players/'.$id);
38+
$query = [
39+
'app_id' => $this->api->getConfig()->getApplicationId(),
40+
];
41+
42+
return $this->api->request('GET', '/players/'.$id.'?'.http_build_query($query));
3943
}
4044

4145
/**

0 commit comments

Comments
 (0)