Skip to content

Commit f75662e

Browse files
authored
feat: add device fields (#85)
1 parent d39c770 commit f75662e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/GetStream/StreamChat/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,12 +870,13 @@ public function deleteCommand(string $name): StreamResponse
870870
* @link https://getstream.io/chat/docs/php/push_devices/?language=php
871871
* @throws StreamException
872872
*/
873-
public function addDevice(string $deviceId, string $pushProvider, string $userId): StreamResponse
873+
public function addDevice(string $deviceId, string $pushProvider, string $userId, string $pushProviderName = null): StreamResponse
874874
{
875875
$data = [
876876
"id" => $deviceId,
877877
"push_provider" => $pushProvider,
878-
"user_id" => $userId,
878+
"push_provider_name" => $pushProviderName,
879+
"user_id" => $userId
879880
];
880881
return $this->post("devices", $data);
881882
}

0 commit comments

Comments
 (0)