lib/pupil/users.rb in pupil-0.6.3 vs lib/pupil/users.rb in pupil-0.7
- old
+ new
@@ -1,14 +1,14 @@
class Pupil
def user(target, option={})
- response = self.get("/1.1/users/show.json", {guess_parameter(target) => target}.update(option))
+ response = self.get("users/show.json", {guess_parameter(target) => target}.update(option))
return false unless response
user = User.new(response, @access_token)
return user
end
def search_user(keyword, option={})
- response = self.get("/1.1/users/search.json", {:q => keyword}.update(option))
+ response = self.get("users/search.json", {:q => keyword}.update(option))
users = Array.new
response.each do |element|
user = User.new(element, @access_token)
users << user
end
\ No newline at end of file