Skip to content

Commit d592fba

Browse files
authored
feat: add push provider apis (#89)
1 parent 573c586 commit d592fba

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/stream-chat/client.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,21 @@ def list_roles
628628
get('roles')
629629
end
630630

631+
sig { params(push_provider: StringKeyHash).returns(StreamChat::StreamResponse) }
632+
def upsert_push_provider(push_provider)
633+
post('push_providers', data: { push_provider: push_provider })
634+
end
635+
636+
sig { params(type: String, name: String).returns(StreamChat::StreamResponse) }
637+
def delete_push_provider(type, name)
638+
delete("push_providers/#{type}/#{name}")
639+
end
640+
641+
sig { returns(StreamChat::StreamResponse) }
642+
def list_push_providers
643+
get('push_providers')
644+
end
645+
631646
private
632647

633648
sig { returns(T::Hash[String, String]) }

0 commit comments

Comments
 (0)