1

I want to use third party API and want to make a put and post request and get the response from API in my Rails Application

Ruby and Rails Version of My Application is Below -

Current Version of Ruby -1.8.7 and Rails 2.3.5

May I know which Gem should I have to use?

Thanks in Advance.

jitendra
  • 11
  • 2

1 Answers1

1

Basically you need HTTP client library to make http request and get response

You can use any of available ruby libraries/gems

  1. faraday
  2. httpclient
  3. httparty

I ordered by my preference. More libraries found here https://www.ruby-toolbox.com/categories/http_clients.html

You can find the usages here https://github.com/BoTreeConsultingTeam/magpress where I used faraday

Amit Patel
  • 15,609
  • 18
  • 68
  • 106