shopify_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +30 -0
  6. data/Rakefile +11 -0
  7. data/lib/shopify_client.rb +10 -0
  8. data/lib/shopify_client/api/custom_collection.rb +22 -0
  9. data/lib/shopify_client/api/order.rb +22 -0
  10. data/lib/shopify_client/api/product.rb +21 -0
  11. data/lib/shopify_client/api/recurring_application_charge.rb +43 -0
  12. data/lib/shopify_client/api/script_tag.rb +35 -0
  13. data/lib/shopify_client/api/shop.rb +16 -0
  14. data/lib/shopify_client/api/smart_collection.rb +22 -0
  15. data/lib/shopify_client/api/webhook.rb +34 -0
  16. data/lib/shopify_client/base.rb +57 -0
  17. data/lib/shopify_client/client.rb +91 -0
  18. data/lib/shopify_client/custom_collection.rb +28 -0
  19. data/lib/shopify_client/error.rb +13 -0
  20. data/lib/shopify_client/error/client_error.rb +23 -0
  21. data/lib/shopify_client/error/server_error.rb +15 -0
  22. data/lib/shopify_client/image.rb +13 -0
  23. data/lib/shopify_client/order.rb +29 -0
  24. data/lib/shopify_client/product.rb +22 -0
  25. data/lib/shopify_client/recurring_application_charge.rb +20 -0
  26. data/lib/shopify_client/request/content_type.rb +20 -0
  27. data/lib/shopify_client/response/parse_json.rb +22 -0
  28. data/lib/shopify_client/response/raise_error.rb +23 -0
  29. data/lib/shopify_client/script_tag.rb +19 -0
  30. data/lib/shopify_client/shop.rb +22 -0
  31. data/lib/shopify_client/smart_collection.rb +28 -0
  32. data/lib/shopify_client/version.rb +3 -0
  33. data/lib/shopify_client/webhook.rb +21 -0
  34. data/shopify_client.gemspec +28 -0
  35. data/test/fixtures/custom_collection.json +18 -0
  36. data/test/fixtures/custom_collections.json +19 -0
  37. data/test/fixtures/order.json +274 -0
  38. data/test/fixtures/orders.json +276 -0
  39. data/test/fixtures/product.json +140 -0
  40. data/test/fixtures/products.json +170 -0
  41. data/test/fixtures/recurring_application_charge.json +18 -0
  42. data/test/fixtures/recurring_application_charges.json +34 -0
  43. data/test/fixtures/script_tag.json +9 -0
  44. data/test/fixtures/script_tags.json +18 -0
  45. data/test/fixtures/shop.json +37 -0
  46. data/test/fixtures/smart_collection.json +25 -0
  47. data/test/fixtures/smart_collections.json +26 -0
  48. data/test/fixtures/webhook.json +10 -0
  49. data/test/fixtures/webhooks.json +20 -0
  50. data/test/shopify_client/api/custom_collection_spec.rb +54 -0
  51. data/test/shopify_client/api/order_spec.rb +68 -0
  52. data/test/shopify_client/api/product_spec.rb +66 -0
  53. data/test/shopify_client/api/recurring_application_charge_spec.rb +138 -0
  54. data/test/shopify_client/api/script_tag_spec.rb +109 -0
  55. data/test/shopify_client/api/shop_spec.rb +30 -0
  56. data/test/shopify_client/api/smart_collection_spec.rb +54 -0
  57. data/test/shopify_client/api/webhook_spec.rb +109 -0
  58. data/test/shopify_client/base_spec.rb +12 -0
  59. data/test/shopify_client/client_spec.rb +12 -0
  60. data/test/shopify_client/custom_collection_spec.rb +41 -0
  61. data/test/shopify_client/error/client_error_spec.rb +19 -0
  62. data/test/shopify_client/error/server_error_spec.rb +20 -0
  63. data/test/shopify_client/order_spec.rb +30 -0
  64. data/test/shopify_client/product_spec.rb +21 -0
  65. data/test/shopify_client/recurring_application_charge_spec.rb +20 -0
  66. data/test/shopify_client/script_tag_spec.rb +22 -0
  67. data/test/shopify_client/shop_spec.rb +14 -0
  68. data/test/shopify_client/smart_collection_spec.rb +41 -0
  69. data/test/shopify_client/webhook_spec.rb +22 -0
  70. data/test/shopify_client_spec.rb +10 -0
  71. data/test/test_helper.rb +13 -0
  72. metadata +235 -0
@@ -0,0 +1,276 @@
1
+ {
2
+ "orders": [
3
+ {
4
+ "buyer_accepts_marketing": false,
5
+ "cancel_reason": null,
6
+ "cancelled_at": null,
7
+ "cart_token": "68778783ad298f1c80c3bafcddeea02f",
8
+ "checkout_token": null,
9
+ "closed_at": null,
10
+ "confirmed": false,
11
+ "created_at": "2008-01-10T11:00:00-05:00",
12
+ "currency": "USD",
13
+ "email": "bob.norman@hostmail.com",
14
+ "financial_status": "authorized",
15
+ "fulfillment_status": null,
16
+ "gateway": "authorize_net",
17
+ "id": 450789469,
18
+ "landing_site": "http://www.example.com?source=abc",
19
+ "location_id": null,
20
+ "name": "#1001",
21
+ "note": null,
22
+ "number": 1,
23
+ "reference": "fhwdgads",
24
+ "referring_site": "http://www.otherexample.com",
25
+ "source": null,
26
+ "subtotal_price": "398.00",
27
+ "taxes_included": false,
28
+ "test": false,
29
+ "token": "b1946ac92492d2347c6235b4d2611184",
30
+ "total_discounts": "0.00",
31
+ "total_line_items_price": "398.00",
32
+ "total_price": "409.94",
33
+ "total_price_usd": "409.94",
34
+ "total_tax": "11.94",
35
+ "total_weight": 0,
36
+ "updated_at": "2008-01-10T11:00:00-05:00",
37
+ "user_id": null,
38
+ "browser_ip": null,
39
+ "landing_site_ref": "abc",
40
+ "order_number": 1001,
41
+ "discount_codes": [
42
+ {
43
+ "code": "TENOFF",
44
+ "amount": "10.00"
45
+ }
46
+ ],
47
+ "note_attributes": [
48
+ {
49
+ "name": "custom engraving",
50
+ "value": "Happy Birthday"
51
+ },
52
+ {
53
+ "name": "colour",
54
+ "value": "green"
55
+ }
56
+ ],
57
+ "processing_method": "direct",
58
+ "checkout_id": 450789469,
59
+ "line_items": [
60
+ {
61
+ "fulfillment_service": "manual",
62
+ "fulfillment_status": null,
63
+ "grams": 200,
64
+ "id": 466157049,
65
+ "price": "199.00",
66
+ "product_id": 632910392,
67
+ "quantity": 1,
68
+ "requires_shipping": true,
69
+ "sku": "IPOD2008GREEN",
70
+ "title": "IPod Nano - 8gb",
71
+ "variant_id": 39072856,
72
+ "variant_title": "green",
73
+ "vendor": null,
74
+ "name": "IPod Nano - 8gb - green",
75
+ "variant_inventory_management": "shopify",
76
+ "properties": [
77
+ {
78
+ "name": "Custom Engraving",
79
+ "value": "Happy Birthday"
80
+ }
81
+ ],
82
+ "product_exists": true
83
+ },
84
+ {
85
+ "fulfillment_service": "manual",
86
+ "fulfillment_status": null,
87
+ "grams": 200,
88
+ "id": 518995019,
89
+ "price": "199.00",
90
+ "product_id": 632910392,
91
+ "quantity": 1,
92
+ "requires_shipping": true,
93
+ "sku": "IPOD2008RED",
94
+ "title": "IPod Nano - 8gb",
95
+ "variant_id": 49148385,
96
+ "variant_title": "red",
97
+ "vendor": null,
98
+ "name": "IPod Nano - 8gb - red",
99
+ "variant_inventory_management": "shopify",
100
+ "properties": [
101
+
102
+ ],
103
+ "product_exists": true
104
+ },
105
+ {
106
+ "fulfillment_service": "manual",
107
+ "fulfillment_status": null,
108
+ "grams": 200,
109
+ "id": 703073504,
110
+ "price": "199.00",
111
+ "product_id": 632910392,
112
+ "quantity": 1,
113
+ "requires_shipping": true,
114
+ "sku": "IPOD2008BLACK",
115
+ "title": "IPod Nano - 8gb",
116
+ "variant_id": 457924702,
117
+ "variant_title": "black",
118
+ "vendor": null,
119
+ "name": "IPod Nano - 8gb - black",
120
+ "variant_inventory_management": "shopify",
121
+ "properties": [
122
+
123
+ ],
124
+ "product_exists": true
125
+ }
126
+ ],
127
+ "shipping_lines": [
128
+ {
129
+ "code": "Free Shipping",
130
+ "price": "0.00",
131
+ "source": "shopify",
132
+ "title": "Free Shipping"
133
+ }
134
+ ],
135
+ "tax_lines": [
136
+ {
137
+ "price": "11.94",
138
+ "rate": 0.06,
139
+ "title": "State Tax"
140
+ }
141
+ ],
142
+ "payment_details": {
143
+ "avs_result_code": null,
144
+ "credit_card_bin": null,
145
+ "cvv_result_code": null,
146
+ "credit_card_number": "XXXX-XXXX-XXXX-4242",
147
+ "credit_card_company": "Visa"
148
+ },
149
+ "billing_address": {
150
+ "address1": "Chestnut Street 92",
151
+ "address2": "",
152
+ "city": "Louisville",
153
+ "company": null,
154
+ "country": "United States",
155
+ "first_name": "Bob",
156
+ "last_name": "Norman",
157
+ "latitude": "45.41634",
158
+ "longitude": "-75.6868",
159
+ "phone": "555-625-1199",
160
+ "province": "Kentucky",
161
+ "zip": "40202",
162
+ "name": "Bob Norman",
163
+ "country_code": "US",
164
+ "province_code": "KY"
165
+ },
166
+ "shipping_address": {
167
+ "address1": "Chestnut Street 92",
168
+ "address2": "",
169
+ "city": "Louisville",
170
+ "company": null,
171
+ "country": "United States",
172
+ "first_name": "Bob",
173
+ "last_name": "Norman",
174
+ "latitude": "45.41634",
175
+ "longitude": "-75.6868",
176
+ "phone": "555-625-1199",
177
+ "province": "Kentucky",
178
+ "zip": "40202",
179
+ "name": "Bob Norman",
180
+ "country_code": "US",
181
+ "province_code": "KY"
182
+ },
183
+ "fulfillments": [
184
+ {
185
+ "created_at": "2013-07-18T13:55:42-04:00",
186
+ "id": 255858046,
187
+ "order_id": 450789469,
188
+ "service": "manual",
189
+ "status": "failure",
190
+ "tracking_company": null,
191
+ "updated_at": "2013-07-18T13:55:42-04:00",
192
+ "tracking_number": "1Z2345",
193
+ "tracking_numbers": [
194
+ "1Z2345"
195
+ ],
196
+ "tracking_url": "http://www.google.com/search?q=1Z2345",
197
+ "tracking_urls": [
198
+ "http://www.google.com/search?q=1Z2345"
199
+ ],
200
+ "receipt": {
201
+ "testcase": true,
202
+ "authorization": "123456"
203
+ },
204
+ "line_items": [
205
+ {
206
+ "fulfillment_service": "manual",
207
+ "fulfillment_status": null,
208
+ "grams": 200,
209
+ "id": 466157049,
210
+ "price": "199.00",
211
+ "product_id": 632910392,
212
+ "quantity": 1,
213
+ "requires_shipping": true,
214
+ "sku": "IPOD2008GREEN",
215
+ "title": "IPod Nano - 8gb",
216
+ "variant_id": 39072856,
217
+ "variant_title": "green",
218
+ "vendor": null,
219
+ "name": "IPod Nano - 8gb - green",
220
+ "variant_inventory_management": "shopify",
221
+ "properties": [
222
+ {
223
+ "name": "Custom Engraving",
224
+ "value": "Happy Birthday"
225
+ }
226
+ ],
227
+ "product_exists": true
228
+ }
229
+ ]
230
+ }
231
+ ],
232
+ "client_details": {
233
+ "accept_language": null,
234
+ "browser_ip": "0.0.0.0",
235
+ "session_hash": null,
236
+ "user_agent": null
237
+ },
238
+ "customer": {
239
+ "accepts_marketing": false,
240
+ "created_at": "2013-07-18T13:55:42-04:00",
241
+ "email": "bob.norman@hostmail.com",
242
+ "first_name": "Bob",
243
+ "id": 207119551,
244
+ "last_name": "Norman",
245
+ "last_order_id": null,
246
+ "multipass_identifier": null,
247
+ "note": null,
248
+ "orders_count": 0,
249
+ "state": "disabled",
250
+ "total_spent": "0.00",
251
+ "updated_at": "2013-07-18T13:55:42-04:00",
252
+ "verified_email": true,
253
+ "tags": "",
254
+ "last_order_name": null,
255
+ "default_address": {
256
+ "address1": "Chestnut Street 92",
257
+ "address2": "",
258
+ "city": "Louisville",
259
+ "company": null,
260
+ "country": "United States",
261
+ "first_name": null,
262
+ "id": 207119551,
263
+ "last_name": null,
264
+ "phone": "555-625-1199",
265
+ "province": "Kentucky",
266
+ "zip": "40202",
267
+ "name": null,
268
+ "province_code": "KY",
269
+ "country_code": "US",
270
+ "country_name": "United States",
271
+ "default": true
272
+ }
273
+ }
274
+ }
275
+ ]
276
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "product": {
3
+ "body_html": "<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>",
4
+ "created_at": "2013-07-18T13:55:43-04:00",
5
+ "handle": "ipod-nano",
6
+ "id": 632910392,
7
+ "product_type": "Cult Products",
8
+ "published_at": "2007-12-31T19:00:00-05:00",
9
+ "published_scope": "global",
10
+ "template_suffix": null,
11
+ "title": "IPod Nano - 8GB",
12
+ "updated_at": "2013-07-18T13:55:43-04:00",
13
+ "vendor": "Apple",
14
+ "tags": "Emotive, Flash Memory, MP3, Music",
15
+ "variants": [
16
+ {
17
+ "barcode": "1234_pink",
18
+ "compare_at_price": null,
19
+ "created_at": "2013-07-18T13:55:43-04:00",
20
+ "fulfillment_service": "manual",
21
+ "grams": 200,
22
+ "id": 808950810,
23
+ "inventory_management": "shopify",
24
+ "inventory_policy": "continue",
25
+ "option1": "Pink",
26
+ "option2": null,
27
+ "option3": null,
28
+ "position": 1,
29
+ "price": "199.00",
30
+ "product_id": 632910392,
31
+ "requires_shipping": true,
32
+ "sku": "IPOD2008PINK",
33
+ "taxable": true,
34
+ "title": "Pink",
35
+ "updated_at": "2013-07-18T13:55:43-04:00",
36
+ "inventory_quantity": 10
37
+ },
38
+ {
39
+ "barcode": "1234_red",
40
+ "compare_at_price": null,
41
+ "created_at": "2013-07-18T13:55:43-04:00",
42
+ "fulfillment_service": "manual",
43
+ "grams": 200,
44
+ "id": 49148385,
45
+ "inventory_management": "shopify",
46
+ "inventory_policy": "continue",
47
+ "option1": "Red",
48
+ "option2": null,
49
+ "option3": null,
50
+ "position": 2,
51
+ "price": "199.00",
52
+ "product_id": 632910392,
53
+ "requires_shipping": true,
54
+ "sku": "IPOD2008RED",
55
+ "taxable": true,
56
+ "title": "Red",
57
+ "updated_at": "2013-07-18T13:55:43-04:00",
58
+ "inventory_quantity": 20
59
+ },
60
+ {
61
+ "barcode": "1234_green",
62
+ "compare_at_price": null,
63
+ "created_at": "2013-07-18T13:55:43-04:00",
64
+ "fulfillment_service": "manual",
65
+ "grams": 200,
66
+ "id": 39072856,
67
+ "inventory_management": "shopify",
68
+ "inventory_policy": "continue",
69
+ "option1": "Green",
70
+ "option2": null,
71
+ "option3": null,
72
+ "position": 3,
73
+ "price": "199.00",
74
+ "product_id": 632910392,
75
+ "requires_shipping": true,
76
+ "sku": "IPOD2008GREEN",
77
+ "taxable": true,
78
+ "title": "Green",
79
+ "updated_at": "2013-07-18T13:55:43-04:00",
80
+ "inventory_quantity": 30
81
+ },
82
+ {
83
+ "barcode": "1234_black",
84
+ "compare_at_price": null,
85
+ "created_at": "2013-07-18T13:55:43-04:00",
86
+ "fulfillment_service": "manual",
87
+ "grams": 200,
88
+ "id": 457924702,
89
+ "inventory_management": "shopify",
90
+ "inventory_policy": "continue",
91
+ "option1": "Black",
92
+ "option2": null,
93
+ "option3": null,
94
+ "position": 4,
95
+ "price": "199.00",
96
+ "product_id": 632910392,
97
+ "requires_shipping": true,
98
+ "sku": "IPOD2008BLACK",
99
+ "taxable": true,
100
+ "title": "Black",
101
+ "updated_at": "2013-07-18T13:55:43-04:00",
102
+ "inventory_quantity": 40
103
+ }
104
+ ],
105
+ "options": [
106
+ {
107
+ "id": 594680422,
108
+ "name": "Title",
109
+ "position": 1,
110
+ "product_id": 632910392
111
+ }
112
+ ],
113
+ "images": [
114
+ {
115
+ "created_at": "2013-07-18T13:55:42-04:00",
116
+ "id": 850703190,
117
+ "position": 1,
118
+ "product_id": 632910392,
119
+ "updated_at": "2013-07-18T13:55:42-04:00",
120
+ "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano.png?0"
121
+ },
122
+ {
123
+ "created_at": "2013-07-18T13:55:42-04:00",
124
+ "id": 562641783,
125
+ "position": 2,
126
+ "product_id": 632910392,
127
+ "updated_at": "2013-07-18T13:55:42-04:00",
128
+ "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano-2.png?0"
129
+ }
130
+ ],
131
+ "image": {
132
+ "created_at": "2013-07-18T13:55:42-04:00",
133
+ "id": 850703190,
134
+ "position": 1,
135
+ "product_id": 632910392,
136
+ "updated_at": "2013-07-18T13:55:42-04:00",
137
+ "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano.png?0"
138
+ }
139
+ }
140
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "products": [
3
+ {
4
+ "body_html": "<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>",
5
+ "created_at": "2013-07-18T13:55:43-04:00",
6
+ "handle": "ipod-nano",
7
+ "id": 632910392,
8
+ "product_type": "Cult Products",
9
+ "published_at": "2007-12-31T19:00:00-05:00",
10
+ "published_scope": "global",
11
+ "template_suffix": null,
12
+ "title": "IPod Nano - 8GB",
13
+ "updated_at": "2013-07-18T13:55:43-04:00",
14
+ "vendor": "Apple",
15
+ "tags": "Emotive, Flash Memory, MP3, Music",
16
+ "variants": [
17
+ {
18
+ "barcode": "1234_pink",
19
+ "compare_at_price": null,
20
+ "created_at": "2013-07-18T13:55:43-04:00",
21
+ "fulfillment_service": "manual",
22
+ "grams": 200,
23
+ "id": 808950810,
24
+ "inventory_management": "shopify",
25
+ "inventory_policy": "continue",
26
+ "option1": "Pink",
27
+ "option2": null,
28
+ "option3": null,
29
+ "position": 1,
30
+ "price": "199.00",
31
+ "product_id": 632910392,
32
+ "requires_shipping": true,
33
+ "sku": "IPOD2008PINK",
34
+ "taxable": true,
35
+ "title": "Pink",
36
+ "updated_at": "2013-07-18T13:55:43-04:00",
37
+ "inventory_quantity": 10
38
+ },
39
+ {
40
+ "barcode": "1234_red",
41
+ "compare_at_price": null,
42
+ "created_at": "2013-07-18T13:55:43-04:00",
43
+ "fulfillment_service": "manual",
44
+ "grams": 200,
45
+ "id": 49148385,
46
+ "inventory_management": "shopify",
47
+ "inventory_policy": "continue",
48
+ "option1": "Red",
49
+ "option2": null,
50
+ "option3": null,
51
+ "position": 2,
52
+ "price": "199.00",
53
+ "product_id": 632910392,
54
+ "requires_shipping": true,
55
+ "sku": "IPOD2008RED",
56
+ "taxable": true,
57
+ "title": "Red",
58
+ "updated_at": "2013-07-18T13:55:43-04:00",
59
+ "inventory_quantity": 20
60
+ },
61
+ {
62
+ "barcode": "1234_green",
63
+ "compare_at_price": null,
64
+ "created_at": "2013-07-18T13:55:43-04:00",
65
+ "fulfillment_service": "manual",
66
+ "grams": 200,
67
+ "id": 39072856,
68
+ "inventory_management": "shopify",
69
+ "inventory_policy": "continue",
70
+ "option1": "Green",
71
+ "option2": null,
72
+ "option3": null,
73
+ "position": 3,
74
+ "price": "199.00",
75
+ "product_id": 632910392,
76
+ "requires_shipping": true,
77
+ "sku": "IPOD2008GREEN",
78
+ "taxable": true,
79
+ "title": "Green",
80
+ "updated_at": "2013-07-18T13:55:43-04:00",
81
+ "inventory_quantity": 30
82
+ },
83
+ {
84
+ "barcode": "1234_black",
85
+ "compare_at_price": null,
86
+ "created_at": "2013-07-18T13:55:43-04:00",
87
+ "fulfillment_service": "manual",
88
+ "grams": 200,
89
+ "id": 457924702,
90
+ "inventory_management": "shopify",
91
+ "inventory_policy": "continue",
92
+ "option1": "Black",
93
+ "option2": null,
94
+ "option3": null,
95
+ "position": 4,
96
+ "price": "199.00",
97
+ "product_id": 632910392,
98
+ "requires_shipping": true,
99
+ "sku": "IPOD2008BLACK",
100
+ "taxable": true,
101
+ "title": "Black",
102
+ "updated_at": "2013-07-18T13:55:43-04:00",
103
+ "inventory_quantity": 40
104
+ }
105
+ ],
106
+ "options": [
107
+ {
108
+ "id": 594680422,
109
+ "name": "Title",
110
+ "position": 1,
111
+ "product_id": 632910392
112
+ }
113
+ ],
114
+ "images": [
115
+ {
116
+ "created_at": "2013-07-18T13:55:42-04:00",
117
+ "id": 850703190,
118
+ "position": 1,
119
+ "product_id": 632910392,
120
+ "updated_at": "2013-07-18T13:55:42-04:00",
121
+ "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano.png?0"
122
+ },
123
+ {
124
+ "created_at": "2013-07-18T13:55:42-04:00",
125
+ "id": 562641783,
126
+ "position": 2,
127
+ "product_id": 632910392,
128
+ "updated_at": "2013-07-18T13:55:42-04:00",
129
+ "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano-2.png?0"
130
+ }
131
+ ],
132
+ "image": {
133
+ "created_at": "2013-07-18T13:55:42-04:00",
134
+ "id": 850703190,
135
+ "position": 1,
136
+ "product_id": 632910392,
137
+ "updated_at": "2013-07-18T13:55:42-04:00",
138
+ "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano.png?0"
139
+ }
140
+ },
141
+ {
142
+ "body_html": "<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>",
143
+ "created_at": "2013-07-18T13:55:43-04:00",
144
+ "handle": "ipod-touch",
145
+ "id": 921728736,
146
+ "product_type": "Cult Products",
147
+ "published_at": "2008-09-25T20:00:00-04:00",
148
+ "published_scope": "global",
149
+ "template_suffix": null,
150
+ "title": "IPod Touch 8GB",
151
+ "updated_at": "2013-07-18T13:55:43-04:00",
152
+ "vendor": "Apple",
153
+ "tags": "",
154
+ "variants": [
155
+
156
+ ],
157
+ "options": [
158
+ {
159
+ "id": 891236591,
160
+ "name": "Title",
161
+ "position": 1,
162
+ "product_id": 921728736
163
+ }
164
+ ],
165
+ "images": [
166
+
167
+ ]
168
+ }
169
+ ]
170
+ }