class Sendbird::GroupChannelApi
Constants
- ENDPOINT
Public Class Methods
create(body)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 7 def create(body) post(path: build_url, body: body) end
destroy(channel_url)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 19 def destroy(channel_url) delete(path: build_url(channel_url)) end
hide(channel_url, body)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 39 def hide(channel_url, body) put(path: build_url(channel_url, 'hide'), body: body) end
invite(channel_url, body)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 35 def invite(channel_url, body) post(path: build_url(channel_url, 'invite'), body: body) end
is_member?(channel_url, user_id)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 31 def is_member?(channel_url, user_id) get(path: build_url(channel_url, 'members', user_id)) end
leave(channel_url, body)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 43 def leave(channel_url, body) put(path: build_url(channel_url, 'leave'), body: body) end
list(params={})
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 11 def list(params={}) get(path: build_url, params: params) end
members(channel_url, params={})
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 27 def members(channel_url, params={}) get(path: build_url(channel_url, 'members'), params: params) end
update(channel_url, body)
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 15 def update(channel_url, body) put(path: build_url(channel_url), body: body) end
view(channel_url, params={})
click to toggle source
# File lib/sendbird/group_channel_api.rb, line 23 def view(channel_url, params={}) get(path: build_url(channel_url), params: params) end