lib/intercom/user.rb in intercom-0.0.11 vs lib/intercom/user.rb in intercom-0.0.12
- old
+ new
@@ -28,11 +28,11 @@
#
# returns Intercom::User object representing the state on our servers.
#
# @return [User]
def self.find(params)
- response = Intercom.get("users", params)
+ response = Intercom.get("/v1/users", params)
User.from_api(response)
end
# Calls GET https://api.intercom.io/v1/users?email=EMAIL
#
@@ -89,17 +89,17 @@
# returns Intercom::User object representing the user just before deletion.
#
# This operation is not idempotent.
# @return [User]
def self.delete(params)
- response = Intercom.delete("users", params)
+ response = Intercom.delete("/v1/users", params)
User.from_api(response)
end
# instance method alternative to #create
# @return [User]
def save
- response = Intercom.post("users", to_hash)
+ response = Intercom.post("/v1/users", to_hash)
self.update_from_api_response(response)
end
# @return [String] the {User}'s name
def name