nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Aug 3, 2011·14 min read44

Developing Shopify Apps, Part 3: More API Exploration - Shopify

Welcome back to another installment of Developing Shopify Apps! In case you missed the previous articles in this series, they are: Part 1: The Setup. In this article, we: Joined Shopify's Partner Program Created a new test shop Launched a new test shop Added an app to the test shop Played with a couple of quick API calls through the browser Part 2: Exploring the API. This article covered: Shopify's RESTful API, including a quick explanation of how to use it Retrieving general information about a shop via the admin panel and the API Retrieving information from a shop, such as products, via the API Exploring RESTful APIs with a REST Console So far, all we've done is retrieve information from a shop. We did this by using the GET verb and applying it to resources exposed by the Shopify API, such as products, blogs, articles and so on. Of all the HTTP verbs, GET is the simplest to use; you can simply request information by using your browser's address bar. Working with the other three HTTP verbs -- POST, PUT and DELETE -- usually takes a little more work. One very easy-to-use way to make calls to the Shopify API using all four verbs is a REST client. You have many options, including: cURL: the web developer's Swiss Army knife. This command line utility gets and sends files using URL syntax using a wide array of protocols including HTTP and friends, FTP and similar, LDAPS, TELNET and mail formats including IMAP, POP3 and SMTP.  Desktop REST clients such as Fiddler for Windows or WizTools' RESTClient Browser-based REST clients such as RESTClient for Firefox or REST Console for Chrome Lately, I've been using REST Console for Chrome. It's quite handy -- when installed, it's instantly available with one click on its icon, just to the left of Chrome's "Wrench" menu (which is to the right of the address bar): And here's what the REST Console looks like -- clean and simple: Let's try a simple GET operation: let's get the list of products

Read original on shopify.engineering

Score breakdown

  • Technical depth81
  • Practical value30
  • Originality60
  • Writing quality82
  • Source reputation0
  • Recency0
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

Shopify Engineering

Developing Shopify Apps, Part 4: Change is Good - Shopify

Aug 8, 2011·7 min read
Shopify Engineering

Developing Shopify Apps, Part 2: Exploring the API - Shopify

Jul 29, 2011·11 min read
Shopify Engineering

Webhook Testing Made Easy - Shopify

Aug 30, 2011·5 min read
Shopify Engineering

Developing Shopify Apps, Part 1: The Setup - Shopify

Jul 23, 2011·10 min read