5. • HTTParty http://github.com/jnunemaker/httparty/ • DSL (Easy get, post requests) • JSON and XML 7. • Rails $ruby script/server : localhost:3000 • Sinatra ex.) RAILS_ROOT/lib/api_server/server.rb $ruby ./lib/api_server/server.rb : localhost:4567 8. • http://gist.github.com/122074 RAILS_ROOT/script api_server $ruby script/api_server • • CTR+C • ex.) ruby script/api_server -p 3001 Editor's Notes&
![外部サービス(アプリケーション、API)と連携するRailsアプリ開発](https://cdn-ak-scissors.b.st-hatena.com/image/square/dc5778a821c078080274337571ee08a37b90a51e/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fexternalaccesswithrails-090925011540-phpapp02-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)