diff --git a/README.md b/README.md index a6b8ef7..eed8672 100644 --- a/README.md +++ b/README.md @@ -383,8 +383,10 @@ end class DeleteFromIntercom < ApplicationJob def perform(user) - intercom = Intercom::Client.new - intercom.users.find(email: user.email).delete + intercom = Intercom::Client.new(token: 'my_token') + user = intercom.users.find(email: user.email) + + intercom.users.delete(user) end end ```