Module: Lark::Apis::Search

Defined in:
lib/lark/apis/search.rb

Instance Method Summary collapse

Instance Method Details

#user(query:, user_access_token:, page_size: 20, page_token: nil) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/lark/apis/search.rb', line 4

def user(query:, user_access_token:, page_size: 20, page_token: nil)
  get 'search/v1/user', {
    access_token: user_access_token,
    params: {
      query: query,
      page_size: page_size,
      page_token: page_token
    }.compact
  }
end