Skip to content

Commit 08916dc

Browse files
committedFeb 24, 2017
Fix devices getOne request
1 parent 8d9a1a3 commit 08916dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/Devices.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ public function __construct(OneSignal $api)
4343
*/
4444
public function getOne($id)
4545
{
46-
return $this->api->request('GET', '/players/' . $id);
46+
$query = [
47+
'app_id' => $this->api->getConfig()->getApplicationId(),
48+
];
49+
50+
return $this->api->request('GET', '/players/' . $id . '?' . http_build_query($query));
4751
}
4852

4953
/**

0 commit comments

Comments
 (0)
Please sign in to comment.