mad_cart 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2242589c28d1a7b9945af40b37c0148d5a35369e
4
- data.tar.gz: 007d24a879edf61f1357bf8ff5f4d80ff53075cf
3
+ metadata.gz: 8622d8d7b39dc467815b5b059ba9d21e79d6b513
4
+ data.tar.gz: bb1548cbf6dcc3f92c83e13de23a2fd11594687e
5
5
  SHA512:
6
- metadata.gz: b1b0050db667f536d5e666164bd477b0cf31920250c3b4ab68f49f626af9072bf7fbd802e242c8b5c13eccb70e9702ac2b6dd453b0873653052c85e56f37cf2a
7
- data.tar.gz: 3f427925fdcf6e17bb1c7e02decf6efe6b7861b0c23f6d7ec545a5d29cf6e7b75103366e1e79e8a139b214c3505933c1ec8f0527668922f8e21083fba9560180
6
+ metadata.gz: a00f3e214aa1e70b390998b928d4a93e384618064f93658c49d0d1418984ddcc10a11c1255408756922920d4256eabdb5159e3a8aba2252396d140b466ee3176
7
+ data.tar.gz: 8a8325c9390eb75a863eb3af25886a03e76c1bd15474637862a923c7d220484fdea41ed2e4c65711c218cd4befbf5ae3cc9c4e1db3b47a7a00041ea40ac89513
@@ -3,7 +3,8 @@ module MadCart
3
3
  class Spree
4
4
  include MadCart::Store::Base
5
5
 
6
- ORDERS_PER_PAGE = 50
6
+ PRODUCTS_PER_PAGE = 50
7
+ ORDERS_PER_PAGE = 50
7
8
 
8
9
  create_connection_with :create_connection, :requires => [:api_key, :store_url]
9
10
  fetch :customers, :with => :get_customer_hashes
@@ -19,19 +20,27 @@ module MadCart
19
20
  end
20
21
 
21
22
  def products_count
22
- (parse_response { connection.get('products.json') })["count"]
23
+ (parse_response { connection.get('products.json') })["total_count"]
23
24
  end
24
25
 
25
26
  private
26
27
 
27
28
  def make_order_request(params={})
28
- params = params.deep_merge({ :page => 1, :per_page => ORDERS_PER_PAGE })
29
- parse_response { connection.get('orders.json', params) }["orders"]
29
+ params = params.reverse_merge({ :page => 1, :per_page => ORDERS_PER_PAGE })
30
+ parse_response { connection.get('orders.json', params) }
31
+ end
32
+
33
+ def make_product_request(params={})
34
+ params = params.reverse_merge({ :page => 1, :per_page => PRODUCTS_PER_PAGE })
35
+ parse_response { connection.get('products.json', params) }
30
36
  end
31
37
 
32
38
  def get_products(options={})
33
- product_hashes = connection.get('products.json', options).try{ |c| c.body["products"] }
34
- return [] unless product_hashes
39
+ product_hashes = []
40
+
41
+ loop(:make_product_request, :products) do |r|
42
+ product_hashes << r
43
+ end
35
44
 
36
45
  product_hashes.map do |product|
37
46
  if product["master"]["images"]
@@ -48,16 +57,16 @@ module MadCart
48
57
  end
49
58
 
50
59
  def get_customer_hashes
51
- result = []
60
+ orders = []
52
61
 
53
- loop(:make_order_request) do |c|
54
- result << {
55
- order_number: c["number"],
56
- user_email: c["email"]
62
+ loop(:make_order_request, :orders) do |r|
63
+ orders << {
64
+ order_number: r["number"],
65
+ user_email: r["email"]
57
66
  }
58
67
  end
59
68
 
60
- result.reverse.select{ |r| r[:user_email].present? }.uniq{ |r| r[:user_email] }.map do |r|
69
+ orders.reverse.select{ |r| r[:user_email].present? }.uniq{ |r| r[:user_email] }.map do |r|
61
70
  c = parse_response { connection.get("orders/#{ r[:order_number] }.json") }
62
71
  if c['email']
63
72
  {
@@ -70,16 +79,16 @@ module MadCart
70
79
  end.compact
71
80
  end
72
81
 
73
- def loop(source, &block)
74
- page = 1
75
- items = send(source, { :page => page })
82
+ def loop(source, items_key, &block)
83
+ response = send(source, { :page => 1 })
84
+ items = response[items_key.to_s]
85
+ pages_count = response['pages']
76
86
 
77
- while true
78
- items.each &block
79
- break if items.count < ORDERS_PER_PAGE
80
- items = send(source, { :page => page += 1 })
87
+ (2..pages_count).each do |page|
88
+ items += send(source, { :page => page })[items_key.to_s]
81
89
  end
82
90
 
91
+ items.each(&block)
83
92
  end
84
93
 
85
94
  def parse_response(&block)
@@ -1,3 +1,3 @@
1
1
  module MadCart
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1874,4 +1874,393 @@ http_interactions:
1874
1874
  21 Sep 2012 04:33:36 +0000","is_sample":false}]'
1875
1875
  http_version:
1876
1876
  recorded_at: Thu, 21 Aug 2014 21:42:20 GMT
1877
+ - request:
1878
+ method: get
1879
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/36/images.json
1880
+ body:
1881
+ encoding: US-ASCII
1882
+ string: ''
1883
+ headers:
1884
+ User-Agent:
1885
+ - Faraday v0.9.1
1886
+ Accept-Encoding:
1887
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1888
+ Accept:
1889
+ - "*/*"
1890
+ response:
1891
+ status:
1892
+ code: 200
1893
+ message: OK
1894
+ headers:
1895
+ Server:
1896
+ - nginx
1897
+ Date:
1898
+ - Wed, 11 Feb 2015 13:58:41 GMT
1899
+ Content-Type:
1900
+ - application/json
1901
+ Transfer-Encoding:
1902
+ - chunked
1903
+ Connection:
1904
+ - keep-alive
1905
+ Set-Cookie:
1906
+ - fornax_anonymousId=4888a218-5483-4c4d-8cc1-4ee7496061bb; path=/; domain=.store-cr4wsh4.mybigcommerce.com
1907
+ X-Bc-Apilimit-Remaining:
1908
+ - '19997'
1909
+ X-Bc-Store-Version:
1910
+ - 7.6.0
1911
+ X-Bc-Is-Ha:
1912
+ - '1'
1913
+ body:
1914
+ encoding: UTF-8
1915
+ string: '[{"id":140,"product_id":36,"image_file":"sample_images\/p-s-win-portmans095__18030.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.44.58.jpg?c=2","is_thumbnail":true,"sort_order":0,"description":null,"date_created":"Fri,
1916
+ 21 Sep 2012 04:17:42 +0000","is_sample":false}]'
1917
+ http_version:
1918
+ recorded_at: Wed, 11 Feb 2015 13:58:46 GMT
1919
+ - request:
1920
+ method: get
1921
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/40/images.json
1922
+ body:
1923
+ encoding: US-ASCII
1924
+ string: ''
1925
+ headers:
1926
+ User-Agent:
1927
+ - Faraday v0.9.1
1928
+ Accept-Encoding:
1929
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1930
+ Accept:
1931
+ - "*/*"
1932
+ response:
1933
+ status:
1934
+ code: 200
1935
+ message: OK
1936
+ headers:
1937
+ Server:
1938
+ - nginx
1939
+ Date:
1940
+ - Wed, 11 Feb 2015 13:58:41 GMT
1941
+ Content-Type:
1942
+ - application/json
1943
+ Transfer-Encoding:
1944
+ - chunked
1945
+ Connection:
1946
+ - keep-alive
1947
+ Set-Cookie:
1948
+ - fornax_anonymousId=d3d85c1d-bdf9-44c1-af1e-5fdde0f72557; path=/; domain=.store-cr4wsh4.mybigcommerce.com
1949
+ X-Bc-Apilimit-Remaining:
1950
+ - '19997'
1951
+ X-Bc-Store-Version:
1952
+ - 7.6.0
1953
+ X-Bc-Is-Ha:
1954
+ - '1'
1955
+ body:
1956
+ encoding: UTF-8
1957
+ string: '[{"id":146,"product_id":40,"image_file":"sample_images\/HERO_COCO_100413__25837.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":0,"description":null,"date_created":"Fri,
1958
+ 21 Sep 2012 04:38:02 +0000","is_sample":false},{"id":147,"product_id":40,"image_file":"sample_images\/COCO_100415__75369.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.44.58.jpg?c=2","is_thumbnail":false,"sort_order":1,"description":null,"date_created":"Fri,
1959
+ 21 Sep 2012 04:38:09 +0000","is_sample":false},{"id":256,"product_id":40,"image_file":"sample_images\/donatello.1280.1280__61380.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.44.58.jpg?c=2","is_thumbnail":true,"sort_order":2,"description":null,"date_created":"Mon,
1960
+ 24 Sep 2012 06:05:59 +0000","is_sample":false}]'
1961
+ http_version:
1962
+ recorded_at: Wed, 11 Feb 2015 13:58:46 GMT
1963
+ - request:
1964
+ method: get
1965
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/41/images.json
1966
+ body:
1967
+ encoding: US-ASCII
1968
+ string: ''
1969
+ headers:
1970
+ User-Agent:
1971
+ - Faraday v0.9.1
1972
+ Accept-Encoding:
1973
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1974
+ Accept:
1975
+ - "*/*"
1976
+ response:
1977
+ status:
1978
+ code: 200
1979
+ message: OK
1980
+ headers:
1981
+ Server:
1982
+ - nginx
1983
+ Date:
1984
+ - Wed, 11 Feb 2015 13:58:41 GMT
1985
+ Content-Type:
1986
+ - application/json
1987
+ Transfer-Encoding:
1988
+ - chunked
1989
+ Connection:
1990
+ - keep-alive
1991
+ Set-Cookie:
1992
+ - fornax_anonymousId=c0993ef4-4066-4d2f-93a6-f800cde5717e; path=/; domain=.store-cr4wsh4.mybigcommerce.com
1993
+ X-Bc-Apilimit-Remaining:
1994
+ - '19997'
1995
+ X-Bc-Store-Version:
1996
+ - 7.6.0
1997
+ X-Bc-Is-Ha:
1998
+ - '1'
1999
+ body:
2000
+ encoding: UTF-8
2001
+ string: '[{"id":149,"product_id":41,"image_file":"sample_images\/Giddion_canvas_07111191649__16196.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":0,"description":null,"date_created":"Fri,
2002
+ 21 Sep 2012 05:20:58 +0000","is_sample":false},{"id":150,"product_id":41,"image_file":"sample_images\/Giddion_canvas_07111191650__10275.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":1,"description":null,"date_created":"Fri,
2003
+ 21 Sep 2012 05:30:49 +0000","is_sample":false},{"id":151,"product_id":41,"image_file":"sample_images\/Giddion_canvas_07111191652__23794.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":2,"description":null,"date_created":"Fri,
2004
+ 21 Sep 2012 05:30:56 +0000","is_sample":false},{"id":152,"product_id":41,"image_file":"sample_images\/HERO_Giddion_canvas_07111191651__21691.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.44.58.jpg?c=2","is_thumbnail":true,"sort_order":3,"description":null,"date_created":"Fri,
2005
+ 21 Sep 2012 05:31:01 +0000","is_sample":false}]'
2006
+ http_version:
2007
+ recorded_at: Wed, 11 Feb 2015 13:58:46 GMT
2008
+ - request:
2009
+ method: get
2010
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/40/images.json
2011
+ body:
2012
+ encoding: US-ASCII
2013
+ string: ''
2014
+ headers:
2015
+ User-Agent:
2016
+ - Faraday v0.9.1
2017
+ Accept-Encoding:
2018
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2019
+ Accept:
2020
+ - "*/*"
2021
+ response:
2022
+ status:
2023
+ code: 200
2024
+ message: OK
2025
+ headers:
2026
+ Server:
2027
+ - nginx
2028
+ Date:
2029
+ - Wed, 11 Feb 2015 14:07:48 GMT
2030
+ Content-Type:
2031
+ - application/json
2032
+ Transfer-Encoding:
2033
+ - chunked
2034
+ Connection:
2035
+ - keep-alive
2036
+ Set-Cookie:
2037
+ - fornax_anonymousId=d6cba28b-e016-41c9-a349-99fda4e6bf26; path=/; domain=.store-cr4wsh4.mybigcommerce.com
2038
+ X-Bc-Apilimit-Remaining:
2039
+ - '19995'
2040
+ X-Bc-Store-Version:
2041
+ - 7.6.0
2042
+ X-Bc-Is-Ha:
2043
+ - '1'
2044
+ body:
2045
+ encoding: UTF-8
2046
+ string: '[{"id":146,"product_id":40,"image_file":"sample_images\/HERO_COCO_100413__25837.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/146\/HERO_COCO_100413__25837.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":0,"description":null,"date_created":"Fri,
2047
+ 21 Sep 2012 04:38:02 +0000","is_sample":false},{"id":147,"product_id":40,"image_file":"sample_images\/COCO_100415__75369.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/147\/COCO_100415__75369.1405299803.44.58.jpg?c=2","is_thumbnail":false,"sort_order":1,"description":null,"date_created":"Fri,
2048
+ 21 Sep 2012 04:38:09 +0000","is_sample":false},{"id":256,"product_id":40,"image_file":"sample_images\/donatello.1280.1280__61380.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/40\/images\/256\/donatello.1280.1280__61380.1405299819.44.58.jpg?c=2","is_thumbnail":true,"sort_order":2,"description":null,"date_created":"Mon,
2049
+ 24 Sep 2012 06:05:59 +0000","is_sample":false}]'
2050
+ http_version:
2051
+ recorded_at: Wed, 11 Feb 2015 14:07:53 GMT
2052
+ - request:
2053
+ method: get
2054
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/36/images.json
2055
+ body:
2056
+ encoding: US-ASCII
2057
+ string: ''
2058
+ headers:
2059
+ User-Agent:
2060
+ - Faraday v0.9.1
2061
+ Accept-Encoding:
2062
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2063
+ Accept:
2064
+ - "*/*"
2065
+ response:
2066
+ status:
2067
+ code: 200
2068
+ message: OK
2069
+ headers:
2070
+ Server:
2071
+ - nginx
2072
+ Date:
2073
+ - Wed, 11 Feb 2015 14:07:48 GMT
2074
+ Content-Type:
2075
+ - application/json
2076
+ Transfer-Encoding:
2077
+ - chunked
2078
+ Connection:
2079
+ - keep-alive
2080
+ Set-Cookie:
2081
+ - fornax_anonymousId=9d840894-aa3e-42c5-8ced-93ffb47b5117; path=/; domain=.store-cr4wsh4.mybigcommerce.com
2082
+ X-Bc-Apilimit-Remaining:
2083
+ - '19993'
2084
+ X-Bc-Store-Version:
2085
+ - 7.6.0
2086
+ X-Bc-Is-Ha:
2087
+ - '1'
2088
+ body:
2089
+ encoding: UTF-8
2090
+ string: '[{"id":140,"product_id":36,"image_file":"sample_images\/p-s-win-portmans095__18030.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/36\/images\/140\/p-s-win-portmans095__18030.1405299849.44.58.jpg?c=2","is_thumbnail":true,"sort_order":0,"description":null,"date_created":"Fri,
2091
+ 21 Sep 2012 04:17:42 +0000","is_sample":false}]'
2092
+ http_version:
2093
+ recorded_at: Wed, 11 Feb 2015 14:07:53 GMT
2094
+ - request:
2095
+ method: get
2096
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/39/images.json
2097
+ body:
2098
+ encoding: US-ASCII
2099
+ string: ''
2100
+ headers:
2101
+ User-Agent:
2102
+ - Faraday v0.9.1
2103
+ Accept-Encoding:
2104
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2105
+ Accept:
2106
+ - "*/*"
2107
+ response:
2108
+ status:
2109
+ code: 200
2110
+ message: OK
2111
+ headers:
2112
+ Server:
2113
+ - nginx
2114
+ Date:
2115
+ - Wed, 11 Feb 2015 14:07:48 GMT
2116
+ Content-Type:
2117
+ - application/json
2118
+ Transfer-Encoding:
2119
+ - chunked
2120
+ Connection:
2121
+ - keep-alive
2122
+ Set-Cookie:
2123
+ - fornax_anonymousId=e03799a4-63af-4fe7-a76e-738c920b72c6; path=/; domain=.store-cr4wsh4.mybigcommerce.com
2124
+ X-Bc-Apilimit-Remaining:
2125
+ - '19993'
2126
+ X-Bc-Store-Version:
2127
+ - 7.6.0
2128
+ X-Bc-Is-Ha:
2129
+ - '1'
2130
+ body:
2131
+ encoding: UTF-8
2132
+ string: '[{"id":144,"product_id":39,"image_file":"sample_images\/GF_luv2shop_6625__63295.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/39\/images\/144\/GF_luv2shop_6625__63295.1405299805.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/39\/images\/144\/GF_luv2shop_6625__63295.1405299805.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/39\/images\/144\/GF_luv2shop_6625__63295.1405299805.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/39\/images\/144\/GF_luv2shop_6625__63295.1405299805.44.58.jpg?c=2","is_thumbnail":true,"sort_order":0,"description":null,"date_created":"Fri,
2133
+ 21 Sep 2012 04:35:58 +0000","is_sample":false}]'
2134
+ http_version:
2135
+ recorded_at: Wed, 11 Feb 2015 14:07:53 GMT
2136
+ - request:
2137
+ method: get
2138
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/37/images.json
2139
+ body:
2140
+ encoding: US-ASCII
2141
+ string: ''
2142
+ headers:
2143
+ User-Agent:
2144
+ - Faraday v0.9.1
2145
+ Accept-Encoding:
2146
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2147
+ Accept:
2148
+ - "*/*"
2149
+ response:
2150
+ status:
2151
+ code: 200
2152
+ message: OK
2153
+ headers:
2154
+ Server:
2155
+ - nginx
2156
+ Date:
2157
+ - Wed, 11 Feb 2015 14:07:48 GMT
2158
+ Content-Type:
2159
+ - application/json
2160
+ Transfer-Encoding:
2161
+ - chunked
2162
+ Connection:
2163
+ - keep-alive
2164
+ Set-Cookie:
2165
+ - fornax_anonymousId=f17ca386-d9d5-46ac-9c28-7c0f4b101a13; path=/; domain=.store-cr4wsh4.mybigcommerce.com
2166
+ X-Bc-Apilimit-Remaining:
2167
+ - '19993'
2168
+ X-Bc-Store-Version:
2169
+ - 7.6.0
2170
+ X-Bc-Is-Ha:
2171
+ - '1'
2172
+ body:
2173
+ encoding: UTF-8
2174
+ string: '[{"id":141,"product_id":37,"image_file":"sample_images\/gf-l2s-80022__72789.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/141\/gf-l2s-80022__72789.1405299820.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/141\/gf-l2s-80022__72789.1405299820.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/141\/gf-l2s-80022__72789.1405299820.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/141\/gf-l2s-80022__72789.1405299820.44.58.jpg?c=2","is_thumbnail":false,"sort_order":0,"description":null,"date_created":"Fri,
2175
+ 21 Sep 2012 04:28:29 +0000","is_sample":false},{"id":142,"product_id":37,"image_file":"sample_images\/hero-gf-l2s-80031__63154.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/142\/hero-gf-l2s-80031__63154.1405299821.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/142\/hero-gf-l2s-80031__63154.1405299821.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/142\/hero-gf-l2s-80031__63154.1405299821.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/37\/images\/142\/hero-gf-l2s-80031__63154.1405299821.44.58.jpg?c=2","is_thumbnail":true,"sort_order":1,"description":null,"date_created":"Fri,
2176
+ 21 Sep 2012 04:28:30 +0000","is_sample":false}]'
2177
+ http_version:
2178
+ recorded_at: Wed, 11 Feb 2015 14:07:53 GMT
2179
+ - request:
2180
+ method: get
2181
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/38/images.json
2182
+ body:
2183
+ encoding: US-ASCII
2184
+ string: ''
2185
+ headers:
2186
+ User-Agent:
2187
+ - Faraday v0.9.1
2188
+ Accept-Encoding:
2189
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2190
+ Accept:
2191
+ - "*/*"
2192
+ response:
2193
+ status:
2194
+ code: 200
2195
+ message: OK
2196
+ headers:
2197
+ Server:
2198
+ - nginx
2199
+ Date:
2200
+ - Wed, 11 Feb 2015 14:07:48 GMT
2201
+ Content-Type:
2202
+ - application/json
2203
+ Transfer-Encoding:
2204
+ - chunked
2205
+ Connection:
2206
+ - keep-alive
2207
+ Set-Cookie:
2208
+ - fornax_anonymousId=9b22f137-193c-4895-a0dc-180a5331c7b8; path=/; domain=.store-cr4wsh4.mybigcommerce.com
2209
+ X-Bc-Apilimit-Remaining:
2210
+ - '19991'
2211
+ X-Bc-Store-Version:
2212
+ - 7.6.0
2213
+ X-Bc-Is-Ha:
2214
+ - '1'
2215
+ body:
2216
+ encoding: UTF-8
2217
+ string: '[{"id":143,"product_id":38,"image_file":"sample_images\/NI_116__41975.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/38\/images\/143\/NI_116__41975.1405299812.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/38\/images\/143\/NI_116__41975.1405299812.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/38\/images\/143\/NI_116__41975.1405299812.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/38\/images\/143\/NI_116__41975.1405299812.44.58.jpg?c=2","is_thumbnail":true,"sort_order":0,"description":null,"date_created":"Fri,
2218
+ 21 Sep 2012 04:33:36 +0000","is_sample":false}]'
2219
+ http_version:
2220
+ recorded_at: Wed, 11 Feb 2015 14:07:53 GMT
2221
+ - request:
2222
+ method: get
2223
+ uri: https://support%40madmimi.com:0ff0e3939f5f160f36047cf0caa6f699fe24bdeb@store-cr4wsh4.mybigcommerce.com/api/v2/products/41/images.json
2224
+ body:
2225
+ encoding: US-ASCII
2226
+ string: ''
2227
+ headers:
2228
+ User-Agent:
2229
+ - Faraday v0.9.1
2230
+ Accept-Encoding:
2231
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2232
+ Accept:
2233
+ - "*/*"
2234
+ response:
2235
+ status:
2236
+ code: 200
2237
+ message: OK
2238
+ headers:
2239
+ Server:
2240
+ - nginx
2241
+ Date:
2242
+ - Wed, 11 Feb 2015 14:07:48 GMT
2243
+ Content-Type:
2244
+ - application/json
2245
+ Transfer-Encoding:
2246
+ - chunked
2247
+ Connection:
2248
+ - keep-alive
2249
+ Set-Cookie:
2250
+ - fornax_anonymousId=4d738b00-be58-4091-922d-c8d93d859e96; path=/; domain=.store-cr4wsh4.mybigcommerce.com
2251
+ X-Bc-Apilimit-Remaining:
2252
+ - '19991'
2253
+ X-Bc-Store-Version:
2254
+ - 7.6.0
2255
+ X-Bc-Is-Ha:
2256
+ - '1'
2257
+ body:
2258
+ encoding: UTF-8
2259
+ string: '[{"id":149,"product_id":41,"image_file":"sample_images\/Giddion_canvas_07111191649__16196.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/149\/Giddion_canvas_07111191649__16196.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":0,"description":null,"date_created":"Fri,
2260
+ 21 Sep 2012 05:20:58 +0000","is_sample":false},{"id":150,"product_id":41,"image_file":"sample_images\/Giddion_canvas_07111191650__10275.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/150\/Giddion_canvas_07111191650__10275.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":1,"description":null,"date_created":"Fri,
2261
+ 21 Sep 2012 05:30:49 +0000","is_sample":false},{"id":151,"product_id":41,"image_file":"sample_images\/Giddion_canvas_07111191652__23794.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/151\/Giddion_canvas_07111191652__23794.1405299806.44.58.jpg?c=2","is_thumbnail":false,"sort_order":2,"description":null,"date_created":"Fri,
2262
+ 21 Sep 2012 05:30:56 +0000","is_sample":false},{"id":152,"product_id":41,"image_file":"sample_images\/HERO_Giddion_canvas_07111191651__21691.jpg","zoom_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.1280.1280.jpg?c=2","thumbnail_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.386.513.jpg?c=2","standard_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.220.290.jpg?c=2","tiny_url":"https:\/\/cdn2.bigcommerce.com\/server3700\/cr4wsh4\/products\/41\/images\/152\/HERO_Giddion_canvas_07111191651__21691.1405299807.44.58.jpg?c=2","is_thumbnail":true,"sort_order":3,"description":null,"date_created":"Fri,
2263
+ 21 Sep 2012 05:31:01 +0000","is_sample":false}]'
2264
+ http_version:
2265
+ recorded_at: Wed, 11 Feb 2015 14:07:53 GMT
1877
2266
  recorded_with: VCR 2.5.0