Skip to content

Commit

Permalink
feat: add push provider apis (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme authored Mar 24, 2022
1 parent 573c586 commit d592fba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/stream-chat/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,21 @@ def list_roles
get('roles')
end

sig { params(push_provider: StringKeyHash).returns(StreamChat::StreamResponse) }
def upsert_push_provider(push_provider)
post('push_providers', data: { push_provider: push_provider })
end

sig { params(type: String, name: String).returns(StreamChat::StreamResponse) }
def delete_push_provider(type, name)
delete("push_providers/#{type}/#{name}")
end

sig { returns(StreamChat::StreamResponse) }
def list_push_providers
get('push_providers')
end

private

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

0 comments on commit d592fba

Please sign in to comment.