lib/auth/lh/api.rb in auth-lh-0.0.5 vs lib/auth/lh/api.rb in auth-lh-0.0.6
- old
+ new
@@ -30,10 +30,10 @@
def logout_url
"#{@endpoint}/logout?return=#{CGI::escape(@return_url)}"
end
def get_user(code_or_login)
- User.new(get_request("/api/user/#{code_or_login}"))
+ User.new(get_request("/api/users/#{code_or_login}"))
end
def get_users(filters={})
results = get_request("/api/users", filters)
results.map { |r| User.new(r) }