← Back to Upcase

Understanding API's and how to interact with them help!


(staycreativedesign) #1

Ok I haven’t found a good tutorial on how to use API’s with rails I really dont even know where t start… Any can anyone pjnt me in the right direction???


(Ben Orenstein) #2

Can you be more specific? What do you mean by use APIs?


(Jared Smith) #3

Depends on the API but in general their are gems that make consuming and using some common APIs easy. I would look for a gem for any given API first, but each API is different.

Most APIs support making a simple http request using the net/http in the ruby standard lib. Typically they return something easy to consume such as Json or XML.

Or do you mean using rails as an API for JavaScript on your front end?