squeejee-remixr 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History +1 -0
- data/License +20 -0
- data/Notes +0 -0
- data/README.markdown +76 -0
- data/Rakefile +103 -0
- data/VERSION.yml +4 -0
- data/examples/chaining.rb +7 -0
- data/examples/find_products.rb +13 -0
- data/examples/find_stores.rb +11 -0
- data/lib/remixr.rb +29 -0
- data/lib/remixr/client.rb +157 -0
- data/test/fixtures/product_search_digital_photo_printer.json +216 -0
- data/test/fixtures/products.json +948 -0
- data/test/fixtures/products_over_20_bucks.json +904 -0
- data/test/fixtures/products_over_3k_within_50_miles.json +776 -0
- data/test/fixtures/products_skus_only.json +42 -0
- data/test/fixtures/stores.json +162 -0
- data/test/fixtures/stores_by_zip_02184.json +27 -0
- data/test/fixtures/stores_in_list.json +57 -0
- data/test/fixtures/stores_in_texas.json +162 -0
- data/test/fixtures/stores_page_20.json +162 -0
- data/test/fixtures/stores_page_20_sort_by_store_id_desc.json +162 -0
- data/test/fixtures/stores_starting_with_zip_021.json +87 -0
- data/test/fixtures/stores_within_50_miles_products_over_3k.json +4434 -0
- data/test/fixtures/stores_within_50_of_76227.json +172 -0
- data/test/remixr/client_test.rb +143 -0
- data/test/test_helper.rb +36 -0
- metadata +154 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"totalPages": 45350,
|
3
|
+
"currentPage": 1,
|
4
|
+
"queryTime": "0.134",
|
5
|
+
"from": 1,
|
6
|
+
"products": [
|
7
|
+
{
|
8
|
+
"sku": 7000032
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"sku": 16306454
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"sku": 11467058
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"sku": 7873884
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"sku": 15444798
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"sku": 9113256
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"sku": 5797649
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"sku": 8890961
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"sku": 17338506
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"sku": 9242642
|
36
|
+
}
|
37
|
+
],
|
38
|
+
"total": 453500,
|
39
|
+
"to": 10,
|
40
|
+
"canonicalUrl": "\/v1\/products?show=sku&format=json&apiKey=OU812",
|
41
|
+
"totalTime": "0.163"
|
42
|
+
}
|
@@ -0,0 +1,162 @@
|
|
1
|
+
{
|
2
|
+
"totalPages": 105,
|
3
|
+
"currentPage": 1,
|
4
|
+
"queryTime": "0.002",
|
5
|
+
"from": 1,
|
6
|
+
"total": 1049,
|
7
|
+
"to": 10,
|
8
|
+
"stores": [
|
9
|
+
{
|
10
|
+
"fullPostalCode": "00725",
|
11
|
+
"city": "Caguas",
|
12
|
+
"longName": "Best Buy - Caguas",
|
13
|
+
"name": "Caguas",
|
14
|
+
"region": "PR",
|
15
|
+
"country": "US",
|
16
|
+
"lng": -66.04043,
|
17
|
+
"postalCode": "00725",
|
18
|
+
"phone": "787-258-0110",
|
19
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 9-9; Sun: 11-5",
|
20
|
+
"lat": 18.24562,
|
21
|
+
"address": "Las Catalinas Mall Las Americas Expry Pr52 Zafiro",
|
22
|
+
"storeId": 1504
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"fullPostalCode": "00918",
|
26
|
+
"city": "San Juan",
|
27
|
+
"longName": "Best Buy - Hato Rey",
|
28
|
+
"name": "Hato Rey",
|
29
|
+
"region": "PR",
|
30
|
+
"country": "US",
|
31
|
+
"lng": -66.07188,
|
32
|
+
"postalCode": "00918",
|
33
|
+
"phone": "787-764-4900",
|
34
|
+
"hours": "Mon: 9-9; Tue: 9-9; Wed: 9-9; Thurs: 9-9; Fri: 9-9; Sat: 9-9; Sun: 11-5",
|
35
|
+
"lat": 18.42684,
|
36
|
+
"address": "230 Calle Federico Costa Hato Rey",
|
37
|
+
"storeId": 1118
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"fullPostalCode": "00961",
|
41
|
+
"city": "Bayamon",
|
42
|
+
"longName": "Best Buy - Rio Hondo",
|
43
|
+
"name": "Rio Hondo",
|
44
|
+
"region": "PR ",
|
45
|
+
"country": "US",
|
46
|
+
"lng": -66.16224,
|
47
|
+
"postalCode": "00961",
|
48
|
+
"phone": "787-522-0999",
|
49
|
+
"hours": "Mon: 9-9; Tue: 9-9; Wed: 9-9; Thurs: 9-9; Fri: 9-9; Sat: 9-9; Sun: 11-5",
|
50
|
+
"lat": 18.42217,
|
51
|
+
"address": "60 Ave Rio Hondo Ste 60",
|
52
|
+
"storeId": 1090
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"fullPostalCode": "00987",
|
56
|
+
"city": "Carolina",
|
57
|
+
"longName": "Best Buy - Los Colobos",
|
58
|
+
"name": "Los Colobos",
|
59
|
+
"region": "PR",
|
60
|
+
"country": "US",
|
61
|
+
"lng": -65.9254,
|
62
|
+
"postalCode": "00987",
|
63
|
+
"phone": "787-522-0949",
|
64
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-5",
|
65
|
+
"lat": 18.3782,
|
66
|
+
"address": "16350 Ave 65 Infanteria",
|
67
|
+
"storeId": 1173
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"fullPostalCode": "01035",
|
71
|
+
"city": "Hadley",
|
72
|
+
"longName": "Best Buy - Hadley",
|
73
|
+
"name": "Hadley",
|
74
|
+
"region": "MA",
|
75
|
+
"country": "US",
|
76
|
+
"lng": -72.54847,
|
77
|
+
"postalCode": "01035",
|
78
|
+
"phone": "413-587-4011",
|
79
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
80
|
+
"lat": 42.357971,
|
81
|
+
"address": "367 Russell St",
|
82
|
+
"storeId": 683
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"fullPostalCode": "01040",
|
86
|
+
"city": "Holyoke",
|
87
|
+
"longName": "Best Buy - Holyoke",
|
88
|
+
"name": "Holyoke",
|
89
|
+
"region": "MA",
|
90
|
+
"country": "US",
|
91
|
+
"lng": -72.643005,
|
92
|
+
"postalCode": "01040",
|
93
|
+
"phone": "413-533-4443",
|
94
|
+
"hours": "Mon: 10-9:30; Tue: 10-9:30; Wed: 10-9:30; Thurs: 10-9:30; Fri: 10-9:30; Sat: 10-9:30; Sun: 11-7",
|
95
|
+
"lat": 42.169613,
|
96
|
+
"address": "50 Holyoke St",
|
97
|
+
"storeId": 418
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"fullPostalCode": "01237",
|
101
|
+
"city": "Lanesboro",
|
102
|
+
"longName": "Best Buy - Pittsfield",
|
103
|
+
"name": "Pittsfield",
|
104
|
+
"region": "MA",
|
105
|
+
"country": "US",
|
106
|
+
"lng": -73.205688,
|
107
|
+
"postalCode": "01237",
|
108
|
+
"phone": "413-445-5812",
|
109
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
110
|
+
"lat": 42.493664,
|
111
|
+
"address": "655 Chesire Rd",
|
112
|
+
"storeId": 548
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"fullPostalCode": "01453",
|
116
|
+
"city": "Leominster ",
|
117
|
+
"longName": "Best Buy - Leominster",
|
118
|
+
"name": "Leominster",
|
119
|
+
"region": "MA",
|
120
|
+
"country": "US",
|
121
|
+
"lng": -71.712425,
|
122
|
+
"postalCode": "01453",
|
123
|
+
"phone": "978-537-9042",
|
124
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
125
|
+
"lat": 42.527382,
|
126
|
+
"address": "33 Orchard Hill Park Dr",
|
127
|
+
"storeId": 1433
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"fullPostalCode": "01606",
|
131
|
+
"city": "Worcester",
|
132
|
+
"longName": "Best Buy - Worcester",
|
133
|
+
"name": "Worcester",
|
134
|
+
"region": "MA",
|
135
|
+
"country": "US",
|
136
|
+
"lng": -71.798485,
|
137
|
+
"postalCode": "01606",
|
138
|
+
"phone": "508-852-1800",
|
139
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
140
|
+
"lat": 42.295692,
|
141
|
+
"address": "7 Neponset St",
|
142
|
+
"storeId": 567
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"fullPostalCode": "01701",
|
146
|
+
"city": "Framingham",
|
147
|
+
"longName": "Best Buy - Framingham",
|
148
|
+
"name": "Framingham",
|
149
|
+
"region": "MA",
|
150
|
+
"country": "US",
|
151
|
+
"lng": -71.396507,
|
152
|
+
"postalCode": "01701",
|
153
|
+
"phone": "508-872-2223",
|
154
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
155
|
+
"lat": 42.301392,
|
156
|
+
"address": "1 Worcester Rd",
|
157
|
+
"storeId": 532
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"canonicalUrl": "\/v1\/stores?format=json&apiKey=OU812",
|
161
|
+
"totalTime": "0.007"
|
162
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"totalPages": 1,
|
3
|
+
"currentPage": 1,
|
4
|
+
"queryTime": "0.003",
|
5
|
+
"from": 1,
|
6
|
+
"total": 1,
|
7
|
+
"to": 1,
|
8
|
+
"stores": [
|
9
|
+
{
|
10
|
+
"fullPostalCode": "02184",
|
11
|
+
"city": "Braintree",
|
12
|
+
"longName": "Best Buy - Braintree",
|
13
|
+
"name": "Braintree",
|
14
|
+
"region": "MA",
|
15
|
+
"country": "US",
|
16
|
+
"lng": -70.999031,
|
17
|
+
"postalCode": "02184",
|
18
|
+
"phone": "781-848-1100",
|
19
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
20
|
+
"lat": 42.216267,
|
21
|
+
"address": "550 Grossman Dr",
|
22
|
+
"storeId": 530
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"canonicalUrl": "\/v1\/stores(postalCode=\"02184\")?format=json&apiKey=OU812",
|
26
|
+
"totalTime": "0.005"
|
27
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
{
|
2
|
+
"totalPages": 1,
|
3
|
+
"currentPage": 1,
|
4
|
+
"queryTime": "0.002",
|
5
|
+
"from": 1,
|
6
|
+
"total": 3,
|
7
|
+
"to": 3,
|
8
|
+
"stores": [
|
9
|
+
{
|
10
|
+
"fullPostalCode": "55423",
|
11
|
+
"city": "Richfield",
|
12
|
+
"longName": "Best Buy - Richfield",
|
13
|
+
"name": "Richfield",
|
14
|
+
"region": "MN",
|
15
|
+
"country": "US",
|
16
|
+
"lng": -93.292557,
|
17
|
+
"postalCode": "55423",
|
18
|
+
"phone": "612-861-3917",
|
19
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 9-9; Sat: 9-9; Sun: 10-7",
|
20
|
+
"lat": 44.863312,
|
21
|
+
"address": "1000 West 78th St",
|
22
|
+
"storeId": 281
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"fullPostalCode": "60431",
|
26
|
+
"city": "Joliet",
|
27
|
+
"longName": "Best Buy - Joliet",
|
28
|
+
"name": "Joliet",
|
29
|
+
"region": "IL",
|
30
|
+
"country": "US",
|
31
|
+
"lng": -88.165031,
|
32
|
+
"postalCode": "60431",
|
33
|
+
"phone": "815-609-0771",
|
34
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 10-9; Sun: 11-7",
|
35
|
+
"lat": 41.580746,
|
36
|
+
"address": "3351 Mall Loop Dr",
|
37
|
+
"storeId": 307
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"fullPostalCode": "70433",
|
41
|
+
"city": "Covington",
|
42
|
+
"longName": "Best Buy - Covington",
|
43
|
+
"name": "Covington",
|
44
|
+
"region": "LA",
|
45
|
+
"country": "US",
|
46
|
+
"lng": -90.138527,
|
47
|
+
"postalCode": "70433",
|
48
|
+
"phone": "985-892-2457",
|
49
|
+
"hours": "Mon: 9-9; Tue: 9-9; Wed: 9-9; Thurs: 9-9; Fri: 9-10; Sat: 9-10; Sun: 10-8",
|
50
|
+
"lat": 30.44239,
|
51
|
+
"address": "69344 Highway 21",
|
52
|
+
"storeId": 612
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"canonicalUrl": "\/v1\/stores(storeId in(307,281,612))?format=json&apiKey=OU812",
|
56
|
+
"totalTime": "0.004"
|
57
|
+
}
|
@@ -0,0 +1,162 @@
|
|
1
|
+
{
|
2
|
+
"totalPages": 10,
|
3
|
+
"currentPage": 1,
|
4
|
+
"queryTime": "0.104",
|
5
|
+
"from": 1,
|
6
|
+
"total": 93,
|
7
|
+
"to": 10,
|
8
|
+
"stores": [
|
9
|
+
{
|
10
|
+
"fullPostalCode": "70601",
|
11
|
+
"city": "Lake Charles",
|
12
|
+
"longName": "Best Buy - Lake Charles",
|
13
|
+
"name": "Lake Charles",
|
14
|
+
"region": "TX",
|
15
|
+
"country": "US",
|
16
|
+
"lng": -93.225464,
|
17
|
+
"postalCode": "70601",
|
18
|
+
"phone": "337-474-1196",
|
19
|
+
"hours": "Mon: 9-9; Tue: 9-9; Wed: 9-9; Thurs: 9-9; Fri: 9-10; Sat: 9-10; Sun: 10-8",
|
20
|
+
"lat": 30.199205,
|
21
|
+
"address": "715 W Prien Lake Rd",
|
22
|
+
"storeId": 1080
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"fullPostalCode": "75002",
|
26
|
+
"city": "Allen",
|
27
|
+
"longName": "Best Buy - Allen",
|
28
|
+
"name": "Allen",
|
29
|
+
"region": "TX",
|
30
|
+
"country": "US",
|
31
|
+
"lng": -96.65549,
|
32
|
+
"postalCode": "75002",
|
33
|
+
"phone": "469-675-8924",
|
34
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 10-8",
|
35
|
+
"lat": 33.1267,
|
36
|
+
"address": "190 E Stacy Rd Bldg 3000",
|
37
|
+
"storeId": 1780
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"fullPostalCode": "75022",
|
41
|
+
"city": "Flower Mound",
|
42
|
+
"longName": "Best Buy - Flower Mound",
|
43
|
+
"name": "Flower Mound",
|
44
|
+
"region": "TX",
|
45
|
+
"country": "US",
|
46
|
+
"lng": -97.080109,
|
47
|
+
"postalCode": "75022",
|
48
|
+
"phone": "972-874-0965",
|
49
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-9; Sat: 9-9; Sun: 10-8",
|
50
|
+
"lat": 33.06926,
|
51
|
+
"address": "6060 Long Prairie Rd",
|
52
|
+
"storeId": 1038
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"fullPostalCode": "75034",
|
56
|
+
"city": "Frisco",
|
57
|
+
"longName": "Best Buy - Frisco",
|
58
|
+
"name": "Frisco",
|
59
|
+
"region": "TX",
|
60
|
+
"country": "US",
|
61
|
+
"lng": -96.83974,
|
62
|
+
"postalCode": "75034",
|
63
|
+
"phone": "214-872-2079",
|
64
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 10-8",
|
65
|
+
"lat": 33.17477,
|
66
|
+
"address": "5299 Eldorado Pkwy",
|
67
|
+
"storeId": 1773
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"fullPostalCode": "75034",
|
71
|
+
"city": "Frisco",
|
72
|
+
"longName": "Best Buy - Frisco",
|
73
|
+
"name": "Frisco",
|
74
|
+
"region": "TX",
|
75
|
+
"country": "US",
|
76
|
+
"lng": -96.807182,
|
77
|
+
"postalCode": "75034",
|
78
|
+
"phone": "972-712-3939",
|
79
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 11-8",
|
80
|
+
"lat": 33.108253,
|
81
|
+
"address": "3333 Preston Rd #200",
|
82
|
+
"storeId": 180
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"fullPostalCode": "75040",
|
86
|
+
"city": "Garland",
|
87
|
+
"longName": "Best Buy - Garland",
|
88
|
+
"name": "Garland",
|
89
|
+
"region": "TX",
|
90
|
+
"country": "US",
|
91
|
+
"lng": -96.613983,
|
92
|
+
"postalCode": "75040",
|
93
|
+
"phone": "972-530-6818",
|
94
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 10-8",
|
95
|
+
"lat": 32.945286,
|
96
|
+
"address": "3171 N George Bush Fwy",
|
97
|
+
"storeId": 1412
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"fullPostalCode": "75056",
|
101
|
+
"city": "Lewisville",
|
102
|
+
"longName": "Best Buy - The Colony",
|
103
|
+
"name": "The Colony",
|
104
|
+
"region": "TX",
|
105
|
+
"country": "US",
|
106
|
+
"lng": -96.88915,
|
107
|
+
"postalCode": "75056",
|
108
|
+
"phone": "214-469-2979",
|
109
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 11-8",
|
110
|
+
"lat": 33.06501,
|
111
|
+
"address": "4800 State Hwy 121 ",
|
112
|
+
"storeId": 1796
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"fullPostalCode": "75062",
|
116
|
+
"city": "Irving",
|
117
|
+
"longName": "Best Buy - Irving",
|
118
|
+
"name": "Irving",
|
119
|
+
"region": "TX",
|
120
|
+
"country": "US",
|
121
|
+
"lng": -97.004326,
|
122
|
+
"postalCode": "75062",
|
123
|
+
"phone": "972-258-0001",
|
124
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 11-8",
|
125
|
+
"lat": 32.838085,
|
126
|
+
"address": "3915 W Airport Fwy, Irving Market Center",
|
127
|
+
"storeId": 205
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"fullPostalCode": "75063",
|
131
|
+
"city": "Irving",
|
132
|
+
"longName": "Best Buy - North Irving",
|
133
|
+
"name": "North Irving",
|
134
|
+
"region": "TX",
|
135
|
+
"country": "US",
|
136
|
+
"lng": -96.972069,
|
137
|
+
"postalCode": "75063",
|
138
|
+
"phone": "972-910-0330",
|
139
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 11-8",
|
140
|
+
"lat": 32.920174,
|
141
|
+
"address": "1900 Market Place Blvd ",
|
142
|
+
"storeId": 1032
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"fullPostalCode": "75067",
|
146
|
+
"city": "Lewisville",
|
147
|
+
"longName": "Best Buy - Lewisville",
|
148
|
+
"name": "Lewisville",
|
149
|
+
"region": "TX",
|
150
|
+
"country": "US",
|
151
|
+
"lng": -96.963219,
|
152
|
+
"postalCode": "75067",
|
153
|
+
"phone": "214-488-8624",
|
154
|
+
"hours": "Mon: 10-9; Tue: 10-9; Wed: 10-9; Thurs: 10-9; Fri: 10-10; Sat: 10-10; Sun: 10-8",
|
155
|
+
"lat": 32.999397,
|
156
|
+
"address": "2601 S Stemmons Fwy",
|
157
|
+
"storeId": 258
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"canonicalUrl": "\/v1\/stores(region=\"TX\")?format=json&apiKey=OU812",
|
161
|
+
"totalTime": "0.109"
|
162
|
+
}
|