Connecting to web services using Rails (HTTP requests)?

前端 未结 6 1682
终归单人心
终归单人心 2021-02-06 10:45

I am using Ruby on Rails 3 and I am trying to implement APIs to retrieve account information from a web service. That is, I would like to connect to a web service that has the A

6条回答
  •  终归单人心
    2021-02-06 11:29

    I would use ActiveResource if you just need a simple way to pull in rest-based resources. It's already included in rails and pretty trivial to set up. You just specify a base url and resource name in your ActiveResource subclass and then you can CRUD rest-based resources with an interface similar to that of ActiveRecord.

提交回复
热议问题