Question: I have a json URL supplied by sendgrid. All it needs to be is touched. How would I do this?

```
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

```

Answer: 
Install httpclient gem

```
HTTPClient.get("https://sendgrid.com/api/unsubscribes.add.xml?api_user=username%40website.com&api_key=secret_password&email=#{@user.email}")

```
maybe try `ActionDispatch` GET <http://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-GET>