Method: Updox::Models::User.find

Defined in:
lib/updox/models/user.rb

.find(user_id, account_id:) ⇒ Object



49
50
51
52
53
54
55
56
57
# File 'lib/updox/models/user.rb', line 49

def self.find(user_id, account_id: )
  response = request(endpoint: FIND_ENDPOINT, account_id: , body: { userId: user_id}, required_auths: Updox::Models::Auth::AUTH_ACCT)

  if response.successful?
    response
  else
    nil
  end
end