module Lark::Apis::Chat

Public Instance Methods

chatter_add(chat_id:, user_ids: nil, open_ids: nil) click to toggle source
# File lib/lark/apis/chat.rb, line 45
def chatter_add(chat_id:, user_ids: nil, open_ids: nil)
  post 'chat/v4/chatter/add/', {
    chat_id: chat_id,
    user_ids: user_ids,
    open_ids: open_ids
  }.compact
end
chatter_delete(chat_id:, user_ids: nil, open_ids: nil) click to toggle source
# File lib/lark/apis/chat.rb, line 53
def chatter_delete(chat_id:, user_ids: nil, open_ids: nil)
  post 'chat/v4/chatter/delete/', {
    chat_id: chat_id,
    user_ids: user_ids,
    open_ids: open_ids
  }.compact
end
create(payload={}) click to toggle source
# File lib/lark/apis/chat.rb, line 26
def create(payload={})
  post 'chat/v4/create/', payload
end
disband(chat_id) click to toggle source
# File lib/lark/apis/chat.rb, line 61
def disband(chat_id)
  post 'chat/v4/disband', {chat_id: chat_id}
end
info(chat_id) click to toggle source
# File lib/lark/apis/chat.rb, line 37
def info(chat_id)
  get 'chat/v4/info/', params: {chat_id: chat_id}
end
list(page_size: nil, page_token: nil) click to toggle source
# File lib/lark/apis/chat.rb, line 30
def list(page_size: nil, page_token: nil)
  get 'chat/v4/list/', params: {
    page_size: page_size,
    page_token: page_token
  }.compact
end
members(user_access_token:, chat_id:, page_size: nil, page_token: nil) click to toggle source
# File lib/lark/apis/chat.rb, line 4
def members(user_access_token:, chat_id:, page_size: nil, page_token: nil)
  get 'chat/v4/members', {
    access_token: user_access_token,
    params: {
      page_size: page_size,
      page_token: page_token
    }
  }.compact
end
update(payload={}) click to toggle source
# File lib/lark/apis/chat.rb, line 41
def update(payload={})
  post 'chat/v4/update/', payload
end