Shopify Python API Cheatsheet

Introduction

After a lot of frustration with the lack of documentation, I compiled this cheatsheet that should help when developing with the Shopify API Python wrapper.

The methods are derived from the Github repository for the wrapper. I’ve included the most common JSON responses, but more detailed examples are available here.

Use the pop-out menu on the left to quick-nav to the different sections.

If you think anything’s missing, leave a comment.

Mathew @ Kano

Article

Methods

Create Article
shopify.Article({'blog_id':1008414260})
article.save()

Get Article
shopify.Article.find(6242736)

Update Article
shopify.Article.find(6242736)
article.save()

Get Articles
shopify.Article.find()

Get Articles Namespaced
shopify.Article.find(6242736, blog_id=1008414260)

Get Authors
shopify.Article.authors()

Get Authors for Blog ID
shopify.Article.authors(blog_id=1008414260)

Get Tags
shopify.Article.tags()

Get Tags for Blog ID
shopify.Article.tags(blog_id=1008414260)

Get Popular Tags
shopify.Article.tags(popular=1, limit=1)

JSON

Article
{