我有一个 sendgrid 提供的 json URL。它需要被触摸。我该怎么做?
def suspend
@user = User.find(params[:id])
@user.update_attribute("suspended", true)
# the url I need to touch => https://sendgrid.com/api/unsubscribes.add.xml?api_user=username%40website.com&api_key=secret_password&email=#{@user.email}
end