lib/keybase/api/api.rb
# Look up a user, users, or external identity.
# @param query [Hash] the request parameters
# @option query username [String] the username to look up
# @option query usernames [Array<String>] multiple usernames to look up
# @return [OpenStruct] a struct mapping of the JSON response
# @raise [Exceptions::APIError] if the API call fails
# @example
#  Keybase::API.lookup username: "yossarian"
#  Keybase::API.lookup github: "woodruffw"
# @note Any identity supported by keybase should work (e.g, `domain`,
#  `hackernews`, `reddit`, `github`, etc.)
# @see https://keybase.io/docs/api/1.0/call/user/lookup
Look up a user, users, or external identity.
Look up a user users or external identity .
def lookup(**query)
        query[:usernames] = Core::U[query[:usernames]]
        api_call "/user/lookup.json", query
      end
def lookup ( ** query ) query [ :usernames ] = Core :: U [ query [ :usernames ] ] api_call "/user/lookup.json" , query end
Look up a user, users, or external identity.
Look up a user users or external identity .
a struct mapping of the JSON response
a struct mapping of the JSON response
OpenStruct
[Exceptions::APIError] if the API call fails
[ Exceptions :: APIError ] if the API call fails
query
usernames  multiple usernames to look up
usernames multiple usernames to look up
example
:API.lookup username: "yossarian" Keybase::API.lookup github: "woodruffw"
: API . lookup username : " yossarian " Keybase :: API . lookup github : " woodruffw "
note
Any identity supported by keybase should work
Any identity supported by keybase should work
see
None