Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Julian Nadeau commented on How to get to everything using Ruby on Rails...

$
0
0

Hey Terry!

Glad it was of some help!

Yes, it is that easy. ShopifyAPI::ModelName, where ModelName is listed under "API Reference" at this url (http://docs.shopify.com/api)

You have a few different methods:

  • Get: This fetches the information (gets the info) from your site
  • Put: This is for updating information, or putting the information on the server.
  • Post: This is for creating a new object, for example, a new Product. 
  • Delete: This one should be obvious what it does!

Please note, not all objects have all of the methods available. Check out the corresponding API doc to understand what is and isn't available.

To learn Rails, I would suggest looking at http://railsforzombies.org/ I'm told it is good, although I have never taken that course myself.

For updating inventory quantity, take a peek at this doc, I've tagged the update section. There is actually an example there: http://docs.shopify.com/api/product_variant#update of what needs to be sent, though the API gem helps some of it for you. I would suggest using the forums and google to find examples and similar questions from other people.


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>