| 5944 |
mandeep.dh |
1 |
#!/usr/bin/env python
|
|
|
2 |
#
|
|
|
3 |
# Autogenerated by Thrift Compiler (0.7.0)
|
|
|
4 |
#
|
|
|
5 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
6 |
#
|
|
|
7 |
|
|
|
8 |
import sys
|
|
|
9 |
import pprint
|
|
|
10 |
from urlparse import urlparse
|
|
|
11 |
from thrift.transport import TTransport
|
|
|
12 |
from thrift.transport import TSocket
|
|
|
13 |
from thrift.transport import THttpClient
|
|
|
14 |
from thrift.protocol import TBinaryProtocol
|
|
|
15 |
|
|
|
16 |
import CatalogService
|
|
|
17 |
from ttypes import *
|
|
|
18 |
|
|
|
19 |
if len(sys.argv) <= 1 or sys.argv[1] == '--help':
|
|
|
20 |
print ''
|
|
|
21 |
print 'Usage: ' + sys.argv[0] + ' [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
|
|
|
22 |
print ''
|
|
|
23 |
print 'Functions:'
|
|
|
24 |
print ' i64 addItem(Item item)'
|
|
|
25 |
print ' i64 updateItem(Item item)'
|
|
|
26 |
print ' ItemShippingInfo isActive(i64 itemId)'
|
| 7438 |
amit.gupta |
27 |
print ' getItemsStatus( itemIds)'
|
| 5944 |
mandeep.dh |
28 |
print ' string getItemStatusDescription(i64 itemId)'
|
|
|
29 |
print ' void startItemOn(i64 item_id, i64 timestamp)'
|
|
|
30 |
print ' void retireItemOn(i64 item_id, i64 timestamp)'
|
|
|
31 |
print ' void changeItemStatus(i64 item_id, i64 timestamp, status newstatus)'
|
|
|
32 |
print ' Item getItem(i64 item_id)'
|
|
|
33 |
print ' getItemsByCatalogId(i64 catalog_item_id)'
|
|
|
34 |
print ' getValidItemsByCatalogId(i64 catalog_item_id)'
|
|
|
35 |
print ' getAllItems(bool isActive)'
|
|
|
36 |
print ' getAllItemsByStatus(status itemStatus)'
|
|
|
37 |
print ' bool markItemAsContentComplete(i64 entityId, i64 category, string brand, string modelName, string modelNumber)'
|
|
|
38 |
print ' getAllItemsInRange(i64 offset, i64 limit)'
|
|
|
39 |
print ' getAllItemsByStatusInRange(status itemStatus, i64 offset, i64 limit)'
|
|
|
40 |
print ' i32 getItemCountByStatus(bool useStatus, status itemStatus)'
|
|
|
41 |
print ' getBestSellers()'
|
|
|
42 |
print ' getBestSellersCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
|
|
43 |
print ' i64 getBestSellersCount()'
|
|
|
44 |
print ' getBestDeals()'
|
|
|
45 |
print ' getBestDealsCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
|
|
46 |
print ' i64 getBestDealsCount()'
|
|
|
47 |
print ' getComingSoon()'
|
|
|
48 |
print ' getComingSoonCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
|
|
49 |
print ' i64 getComingSoonCount()'
|
|
|
50 |
print ' getLatestArrivals()'
|
|
|
51 |
print ' getLatestArrivalsCatalogIds(i64 beginIndex, i64 totalItems, string brand, categories)'
|
|
|
52 |
print ' i64 getLatestArrivalsCount()'
|
|
|
53 |
print ' i64 generateNewEntityID()'
|
|
|
54 |
print ' bool addCategory(Category category)'
|
|
|
55 |
print ' Category getCategory(i64 id)'
|
|
|
56 |
print ' getAllCategories()'
|
|
|
57 |
print ' getAllSimilarItems(i64 itemId)'
|
|
|
58 |
print ' Item addSimilarItem(i64 itemId, i64 catalogItemId)'
|
| 6512 |
kshitij.so |
59 |
print ' bool addTag(string displayName, i64 itemId)'
|
|
|
60 |
print ' bool deleteEntityTag(string displayName, i64 itemId)'
|
|
|
61 |
print ' bool deleteTag(string displayName)'
|
|
|
62 |
print ' getAllTags()'
|
|
|
63 |
print ' getAllEntitiesByTagName(string displayName)'
|
| 6845 |
amit.gupta |
64 |
print ' getAllEntityTags()'
|
| 6903 |
anupam.sin |
65 |
print ' bool addBanner(string bannerName, string imageName, string link, i64 priority, bool isActive, bool hasMap)'
|
|
|
66 |
print ' getAllBanners()'
|
|
|
67 |
print ' bool deleteBanner(string bannerName)'
|
|
|
68 |
print ' Banner getBannerDetails(string bannerName)'
|
|
|
69 |
print ' getActiveBanners()'
|
| 6849 |
kshitij.so |
70 |
print ' bool addBannerMap(string bannerName, string mapLink, string coordinates)'
|
|
|
71 |
print ' bool deleteBannerMap(string bannerName)'
|
|
|
72 |
print ' getBannerMapDetails(string bannerName)'
|
| 5944 |
mandeep.dh |
73 |
print ' bool deleteSimilarItem(i64 itemId, i64 catalogItemId)'
|
|
|
74 |
print ' i64 checkSimilarItem(string brand, string modelNumber, string modelName, string color)'
|
|
|
75 |
print ' void validateRiskyStatus(i64 itemId)'
|
|
|
76 |
print ' void changeItemRiskyFlag(i64 itemId, bool risky)'
|
|
|
77 |
print ' getItemsByRiskyFlag()'
|
|
|
78 |
print ' getItemsForMasterSheet(string category, string brand)'
|
|
|
79 |
print ' getSimilarItemsCatalogIds(i64 beginIndex, i64 totalItems, i64 itemId)'
|
|
|
80 |
print ' bool addProductNotification(i64 itemId, string email)'
|
|
|
81 |
print ' bool sendProductNotifications()'
|
|
|
82 |
print ' getAllBrandsByCategory(i64 categoryId)'
|
|
|
83 |
print ' getAllBrands()'
|
|
|
84 |
print ' getAllSources()'
|
|
|
85 |
print ' SourceItemPricing getItemPricingBySource(i64 itemId, i64 sourceId)'
|
|
|
86 |
print ' void addSourceItemPricing(SourceItemPricing sourceItemPricing)'
|
|
|
87 |
print ' getAllSourcePricing(i64 itemId)'
|
|
|
88 |
print ' Item getItemForSource(i64 item_id, i64 sourceId)'
|
|
|
89 |
print ' searchItemsInRange( searchTerms, i64 offset, i64 limit)'
|
|
|
90 |
print ' i32 getSearchResultCount( searchTerms)'
|
|
|
91 |
print ' getProductNotifications(i64 startDateTime)'
|
| 8274 |
amit.gupta |
92 |
print ' getProductNotificationRequestCount(i64 startDateTime, i64 categoryId)'
|
| 5944 |
mandeep.dh |
93 |
print ' bool addAuthorizationLog(i64 itemId, string username, string reason)'
|
|
|
94 |
print ' bool addupdateVoucherForItem(i64 catalog_item_id, i64 voucherType, i64 voucherAmount)'
|
|
|
95 |
print ' bool deleteVoucherForItem(i64 catalog_item_id, i64 voucherType)'
|
|
|
96 |
print ' i64 getVoucherAmount(i64 itemId, i64 voucherType)'
|
|
|
97 |
print ' getAllItemVouchers(i64 itemId)'
|
|
|
98 |
print ' bool isValidCatalogItemId(i64 catalog_item_id)'
|
| 7330 |
amit.gupta |
99 |
print ' double getVatPercentageForItem(i64 itemId, i64 stateId, double price)'
|
| 6039 |
amit.gupta |
100 |
print ' double getVatAmountForItem(i64 itemId, double price)'
|
| 6531 |
vikram.rag |
101 |
print ' getAllIgnoredInventoryUpdateItemsList(i32 offset, i32 limit)'
|
| 6845 |
amit.gupta |
102 |
print ' getAllAliveItems()'
|
| 6921 |
anupam.sin |
103 |
print ' i64 getInsuranceAmount(i64 itemId, double price, i64 insurerId, i64 quantity)'
|
| 6805 |
anupam.sin |
104 |
print ' Insurer getInsurer(i64 insurerId)'
|
| 6849 |
kshitij.so |
105 |
print ' getAllInsurers()'
|
| 6962 |
rajveer |
106 |
print ' void updateInsuranceDeclaredAmount(i64 insurerId, double amount)'
|
| 7256 |
rajveer |
107 |
print ' i64 getFreebieForItem(i64 itemId)'
|
|
|
108 |
print ' void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
|
| 7272 |
amit.gupta |
109 |
print ' void addOrUpdateBrandInfo(BrandInfo brandInfo)'
|
|
|
110 |
print ' getBrandInfo()'
|
| 7256 |
rajveer |
111 |
print ' StorePricing getStorePricing(i64 itemId)'
|
| 7306 |
rajveer |
112 |
print ' getStorePricings( itemIds)'
|
| 7382 |
rajveer |
113 |
print ' void updateStorePricing(StorePricing sp, bool allColors)'
|
| 7306 |
rajveer |
114 |
print ' getAllAmazonListedItems()'
|
|
|
115 |
print ' Amazonlisted getAmazonItemDetails(i64 itemId)'
|
| 8274 |
amit.gupta |
116 |
print ' void updateAmazonItemDetails(Amazonlisted amazonlisted)'
|
| 7306 |
rajveer |
117 |
print ' void addAmazonItem(Amazonlisted amazonlisted)'
|
|
|
118 |
print ' getAsinItems()'
|
|
|
119 |
print ' getAllFbaListedItems()'
|
|
|
120 |
print ' getAllNonFbaListedItems()'
|
| 7516 |
vikram.rag |
121 |
print ' bool updateItemInventory(i64 itemId, i64 holdInventory, i64 defaultInventory)'
|
| 8274 |
amit.gupta |
122 |
print ' bool updateTimestampForAmazonFeeds(string type, sku, i64 timestamp)'
|
|
|
123 |
print ' getAllParentCategories()'
|
|
|
124 |
print ' void addPageViewEvent(PageViewEvents pageViewEvents)'
|
|
|
125 |
print ' void addCartEvent(CartEvents cartEvents)'
|
|
|
126 |
print ' void addEbayItem(EbayItem ebayItem)'
|
|
|
127 |
print ' EbayItem getEbayItem(string listingId)'
|
|
|
128 |
print ' void updateEbayItem(EbayItem ebayItem)'
|
|
|
129 |
print ' getAmazonListedItems(i64 offset, i64 limit)'
|
|
|
130 |
print ' bool updateAmazonAttributesInBulk( amazonlisted)'
|
| 5944 |
mandeep.dh |
131 |
print ''
|
|
|
132 |
sys.exit(0)
|
|
|
133 |
|
|
|
134 |
pp = pprint.PrettyPrinter(indent = 2)
|
|
|
135 |
host = 'localhost'
|
|
|
136 |
port = 9090
|
|
|
137 |
uri = ''
|
|
|
138 |
framed = False
|
|
|
139 |
http = False
|
|
|
140 |
argi = 1
|
|
|
141 |
|
|
|
142 |
if sys.argv[argi] == '-h':
|
|
|
143 |
parts = sys.argv[argi+1].split(':')
|
|
|
144 |
host = parts[0]
|
|
|
145 |
port = int(parts[1])
|
|
|
146 |
argi += 2
|
|
|
147 |
|
|
|
148 |
if sys.argv[argi] == '-u':
|
|
|
149 |
url = urlparse(sys.argv[argi+1])
|
|
|
150 |
parts = url[1].split(':')
|
|
|
151 |
host = parts[0]
|
|
|
152 |
if len(parts) > 1:
|
|
|
153 |
port = int(parts[1])
|
|
|
154 |
else:
|
|
|
155 |
port = 80
|
|
|
156 |
uri = url[2]
|
|
|
157 |
if url[4]:
|
|
|
158 |
uri += '?%s' % url[4]
|
|
|
159 |
http = True
|
|
|
160 |
argi += 2
|
|
|
161 |
|
|
|
162 |
if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
|
|
|
163 |
framed = True
|
|
|
164 |
argi += 1
|
|
|
165 |
|
|
|
166 |
cmd = sys.argv[argi]
|
|
|
167 |
args = sys.argv[argi+1:]
|
|
|
168 |
|
|
|
169 |
if http:
|
|
|
170 |
transport = THttpClient.THttpClient(host, port, uri)
|
|
|
171 |
else:
|
|
|
172 |
socket = TSocket.TSocket(host, port)
|
|
|
173 |
if framed:
|
|
|
174 |
transport = TTransport.TFramedTransport(socket)
|
|
|
175 |
else:
|
|
|
176 |
transport = TTransport.TBufferedTransport(socket)
|
|
|
177 |
protocol = TBinaryProtocol.TBinaryProtocol(transport)
|
|
|
178 |
client = CatalogService.Client(protocol)
|
|
|
179 |
transport.open()
|
|
|
180 |
|
|
|
181 |
if cmd == 'addItem':
|
|
|
182 |
if len(args) != 1:
|
|
|
183 |
print 'addItem requires 1 args'
|
|
|
184 |
sys.exit(1)
|
|
|
185 |
pp.pprint(client.addItem(eval(args[0]),))
|
|
|
186 |
|
|
|
187 |
elif cmd == 'updateItem':
|
|
|
188 |
if len(args) != 1:
|
|
|
189 |
print 'updateItem requires 1 args'
|
|
|
190 |
sys.exit(1)
|
|
|
191 |
pp.pprint(client.updateItem(eval(args[0]),))
|
|
|
192 |
|
|
|
193 |
elif cmd == 'isActive':
|
|
|
194 |
if len(args) != 1:
|
|
|
195 |
print 'isActive requires 1 args'
|
|
|
196 |
sys.exit(1)
|
|
|
197 |
pp.pprint(client.isActive(eval(args[0]),))
|
|
|
198 |
|
| 7438 |
amit.gupta |
199 |
elif cmd == 'getItemsStatus':
|
|
|
200 |
if len(args) != 1:
|
|
|
201 |
print 'getItemsStatus requires 1 args'
|
|
|
202 |
sys.exit(1)
|
|
|
203 |
pp.pprint(client.getItemsStatus(eval(args[0]),))
|
|
|
204 |
|
| 5944 |
mandeep.dh |
205 |
elif cmd == 'getItemStatusDescription':
|
|
|
206 |
if len(args) != 1:
|
|
|
207 |
print 'getItemStatusDescription requires 1 args'
|
|
|
208 |
sys.exit(1)
|
|
|
209 |
pp.pprint(client.getItemStatusDescription(eval(args[0]),))
|
|
|
210 |
|
|
|
211 |
elif cmd == 'startItemOn':
|
|
|
212 |
if len(args) != 2:
|
|
|
213 |
print 'startItemOn requires 2 args'
|
|
|
214 |
sys.exit(1)
|
|
|
215 |
pp.pprint(client.startItemOn(eval(args[0]),eval(args[1]),))
|
|
|
216 |
|
|
|
217 |
elif cmd == 'retireItemOn':
|
|
|
218 |
if len(args) != 2:
|
|
|
219 |
print 'retireItemOn requires 2 args'
|
|
|
220 |
sys.exit(1)
|
|
|
221 |
pp.pprint(client.retireItemOn(eval(args[0]),eval(args[1]),))
|
|
|
222 |
|
|
|
223 |
elif cmd == 'changeItemStatus':
|
|
|
224 |
if len(args) != 3:
|
|
|
225 |
print 'changeItemStatus requires 3 args'
|
|
|
226 |
sys.exit(1)
|
|
|
227 |
pp.pprint(client.changeItemStatus(eval(args[0]),eval(args[1]),eval(args[2]),))
|
|
|
228 |
|
|
|
229 |
elif cmd == 'getItem':
|
|
|
230 |
if len(args) != 1:
|
|
|
231 |
print 'getItem requires 1 args'
|
|
|
232 |
sys.exit(1)
|
|
|
233 |
pp.pprint(client.getItem(eval(args[0]),))
|
|
|
234 |
|
|
|
235 |
elif cmd == 'getItemsByCatalogId':
|
|
|
236 |
if len(args) != 1:
|
|
|
237 |
print 'getItemsByCatalogId requires 1 args'
|
|
|
238 |
sys.exit(1)
|
|
|
239 |
pp.pprint(client.getItemsByCatalogId(eval(args[0]),))
|
|
|
240 |
|
|
|
241 |
elif cmd == 'getValidItemsByCatalogId':
|
|
|
242 |
if len(args) != 1:
|
|
|
243 |
print 'getValidItemsByCatalogId requires 1 args'
|
|
|
244 |
sys.exit(1)
|
|
|
245 |
pp.pprint(client.getValidItemsByCatalogId(eval(args[0]),))
|
|
|
246 |
|
|
|
247 |
elif cmd == 'getAllItems':
|
|
|
248 |
if len(args) != 1:
|
|
|
249 |
print 'getAllItems requires 1 args'
|
|
|
250 |
sys.exit(1)
|
|
|
251 |
pp.pprint(client.getAllItems(eval(args[0]),))
|
|
|
252 |
|
|
|
253 |
elif cmd == 'getAllItemsByStatus':
|
|
|
254 |
if len(args) != 1:
|
|
|
255 |
print 'getAllItemsByStatus requires 1 args'
|
|
|
256 |
sys.exit(1)
|
|
|
257 |
pp.pprint(client.getAllItemsByStatus(eval(args[0]),))
|
|
|
258 |
|
|
|
259 |
elif cmd == 'markItemAsContentComplete':
|
|
|
260 |
if len(args) != 5:
|
|
|
261 |
print 'markItemAsContentComplete requires 5 args'
|
|
|
262 |
sys.exit(1)
|
|
|
263 |
pp.pprint(client.markItemAsContentComplete(eval(args[0]),eval(args[1]),args[2],args[3],args[4],))
|
|
|
264 |
|
|
|
265 |
elif cmd == 'getAllItemsInRange':
|
|
|
266 |
if len(args) != 2:
|
|
|
267 |
print 'getAllItemsInRange requires 2 args'
|
|
|
268 |
sys.exit(1)
|
|
|
269 |
pp.pprint(client.getAllItemsInRange(eval(args[0]),eval(args[1]),))
|
|
|
270 |
|
|
|
271 |
elif cmd == 'getAllItemsByStatusInRange':
|
|
|
272 |
if len(args) != 3:
|
|
|
273 |
print 'getAllItemsByStatusInRange requires 3 args'
|
|
|
274 |
sys.exit(1)
|
|
|
275 |
pp.pprint(client.getAllItemsByStatusInRange(eval(args[0]),eval(args[1]),eval(args[2]),))
|
|
|
276 |
|
|
|
277 |
elif cmd == 'getItemCountByStatus':
|
|
|
278 |
if len(args) != 2:
|
|
|
279 |
print 'getItemCountByStatus requires 2 args'
|
|
|
280 |
sys.exit(1)
|
|
|
281 |
pp.pprint(client.getItemCountByStatus(eval(args[0]),eval(args[1]),))
|
|
|
282 |
|
|
|
283 |
elif cmd == 'getBestSellers':
|
|
|
284 |
if len(args) != 0:
|
|
|
285 |
print 'getBestSellers requires 0 args'
|
|
|
286 |
sys.exit(1)
|
|
|
287 |
pp.pprint(client.getBestSellers())
|
|
|
288 |
|
|
|
289 |
elif cmd == 'getBestSellersCatalogIds':
|
|
|
290 |
if len(args) != 4:
|
|
|
291 |
print 'getBestSellersCatalogIds requires 4 args'
|
|
|
292 |
sys.exit(1)
|
|
|
293 |
pp.pprint(client.getBestSellersCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
|
|
|
294 |
|
|
|
295 |
elif cmd == 'getBestSellersCount':
|
|
|
296 |
if len(args) != 0:
|
|
|
297 |
print 'getBestSellersCount requires 0 args'
|
|
|
298 |
sys.exit(1)
|
|
|
299 |
pp.pprint(client.getBestSellersCount())
|
|
|
300 |
|
|
|
301 |
elif cmd == 'getBestDeals':
|
|
|
302 |
if len(args) != 0:
|
|
|
303 |
print 'getBestDeals requires 0 args'
|
|
|
304 |
sys.exit(1)
|
|
|
305 |
pp.pprint(client.getBestDeals())
|
|
|
306 |
|
|
|
307 |
elif cmd == 'getBestDealsCatalogIds':
|
|
|
308 |
if len(args) != 4:
|
|
|
309 |
print 'getBestDealsCatalogIds requires 4 args'
|
|
|
310 |
sys.exit(1)
|
|
|
311 |
pp.pprint(client.getBestDealsCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
|
|
|
312 |
|
|
|
313 |
elif cmd == 'getBestDealsCount':
|
|
|
314 |
if len(args) != 0:
|
|
|
315 |
print 'getBestDealsCount requires 0 args'
|
|
|
316 |
sys.exit(1)
|
|
|
317 |
pp.pprint(client.getBestDealsCount())
|
|
|
318 |
|
|
|
319 |
elif cmd == 'getComingSoon':
|
|
|
320 |
if len(args) != 0:
|
|
|
321 |
print 'getComingSoon requires 0 args'
|
|
|
322 |
sys.exit(1)
|
|
|
323 |
pp.pprint(client.getComingSoon())
|
|
|
324 |
|
|
|
325 |
elif cmd == 'getComingSoonCatalogIds':
|
|
|
326 |
if len(args) != 4:
|
|
|
327 |
print 'getComingSoonCatalogIds requires 4 args'
|
|
|
328 |
sys.exit(1)
|
|
|
329 |
pp.pprint(client.getComingSoonCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
|
|
|
330 |
|
|
|
331 |
elif cmd == 'getComingSoonCount':
|
|
|
332 |
if len(args) != 0:
|
|
|
333 |
print 'getComingSoonCount requires 0 args'
|
|
|
334 |
sys.exit(1)
|
|
|
335 |
pp.pprint(client.getComingSoonCount())
|
|
|
336 |
|
|
|
337 |
elif cmd == 'getLatestArrivals':
|
|
|
338 |
if len(args) != 0:
|
|
|
339 |
print 'getLatestArrivals requires 0 args'
|
|
|
340 |
sys.exit(1)
|
|
|
341 |
pp.pprint(client.getLatestArrivals())
|
|
|
342 |
|
|
|
343 |
elif cmd == 'getLatestArrivalsCatalogIds':
|
|
|
344 |
if len(args) != 4:
|
|
|
345 |
print 'getLatestArrivalsCatalogIds requires 4 args'
|
|
|
346 |
sys.exit(1)
|
|
|
347 |
pp.pprint(client.getLatestArrivalsCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
|
|
|
348 |
|
|
|
349 |
elif cmd == 'getLatestArrivalsCount':
|
|
|
350 |
if len(args) != 0:
|
|
|
351 |
print 'getLatestArrivalsCount requires 0 args'
|
|
|
352 |
sys.exit(1)
|
|
|
353 |
pp.pprint(client.getLatestArrivalsCount())
|
|
|
354 |
|
|
|
355 |
elif cmd == 'generateNewEntityID':
|
|
|
356 |
if len(args) != 0:
|
|
|
357 |
print 'generateNewEntityID requires 0 args'
|
|
|
358 |
sys.exit(1)
|
|
|
359 |
pp.pprint(client.generateNewEntityID())
|
|
|
360 |
|
|
|
361 |
elif cmd == 'addCategory':
|
|
|
362 |
if len(args) != 1:
|
|
|
363 |
print 'addCategory requires 1 args'
|
|
|
364 |
sys.exit(1)
|
|
|
365 |
pp.pprint(client.addCategory(eval(args[0]),))
|
|
|
366 |
|
|
|
367 |
elif cmd == 'getCategory':
|
|
|
368 |
if len(args) != 1:
|
|
|
369 |
print 'getCategory requires 1 args'
|
|
|
370 |
sys.exit(1)
|
|
|
371 |
pp.pprint(client.getCategory(eval(args[0]),))
|
|
|
372 |
|
|
|
373 |
elif cmd == 'getAllCategories':
|
|
|
374 |
if len(args) != 0:
|
|
|
375 |
print 'getAllCategories requires 0 args'
|
|
|
376 |
sys.exit(1)
|
|
|
377 |
pp.pprint(client.getAllCategories())
|
|
|
378 |
|
|
|
379 |
elif cmd == 'getAllSimilarItems':
|
|
|
380 |
if len(args) != 1:
|
|
|
381 |
print 'getAllSimilarItems requires 1 args'
|
|
|
382 |
sys.exit(1)
|
|
|
383 |
pp.pprint(client.getAllSimilarItems(eval(args[0]),))
|
|
|
384 |
|
|
|
385 |
elif cmd == 'addSimilarItem':
|
|
|
386 |
if len(args) != 2:
|
|
|
387 |
print 'addSimilarItem requires 2 args'
|
|
|
388 |
sys.exit(1)
|
|
|
389 |
pp.pprint(client.addSimilarItem(eval(args[0]),eval(args[1]),))
|
|
|
390 |
|
| 6512 |
kshitij.so |
391 |
elif cmd == 'addTag':
|
|
|
392 |
if len(args) != 2:
|
|
|
393 |
print 'addTag requires 2 args'
|
|
|
394 |
sys.exit(1)
|
|
|
395 |
pp.pprint(client.addTag(args[0],eval(args[1]),))
|
|
|
396 |
|
|
|
397 |
elif cmd == 'deleteEntityTag':
|
|
|
398 |
if len(args) != 2:
|
|
|
399 |
print 'deleteEntityTag requires 2 args'
|
|
|
400 |
sys.exit(1)
|
|
|
401 |
pp.pprint(client.deleteEntityTag(args[0],eval(args[1]),))
|
|
|
402 |
|
|
|
403 |
elif cmd == 'deleteTag':
|
|
|
404 |
if len(args) != 1:
|
|
|
405 |
print 'deleteTag requires 1 args'
|
|
|
406 |
sys.exit(1)
|
|
|
407 |
pp.pprint(client.deleteTag(args[0],))
|
|
|
408 |
|
|
|
409 |
elif cmd == 'getAllTags':
|
|
|
410 |
if len(args) != 0:
|
|
|
411 |
print 'getAllTags requires 0 args'
|
|
|
412 |
sys.exit(1)
|
|
|
413 |
pp.pprint(client.getAllTags())
|
|
|
414 |
|
|
|
415 |
elif cmd == 'getAllEntitiesByTagName':
|
|
|
416 |
if len(args) != 1:
|
|
|
417 |
print 'getAllEntitiesByTagName requires 1 args'
|
|
|
418 |
sys.exit(1)
|
|
|
419 |
pp.pprint(client.getAllEntitiesByTagName(args[0],))
|
|
|
420 |
|
| 6845 |
amit.gupta |
421 |
elif cmd == 'getAllEntityTags':
|
|
|
422 |
if len(args) != 0:
|
|
|
423 |
print 'getAllEntityTags requires 0 args'
|
|
|
424 |
sys.exit(1)
|
|
|
425 |
pp.pprint(client.getAllEntityTags())
|
|
|
426 |
|
| 6903 |
anupam.sin |
427 |
elif cmd == 'addBanner':
|
|
|
428 |
if len(args) != 6:
|
|
|
429 |
print 'addBanner requires 6 args'
|
|
|
430 |
sys.exit(1)
|
|
|
431 |
pp.pprint(client.addBanner(args[0],args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),))
|
|
|
432 |
|
|
|
433 |
elif cmd == 'getAllBanners':
|
|
|
434 |
if len(args) != 0:
|
|
|
435 |
print 'getAllBanners requires 0 args'
|
|
|
436 |
sys.exit(1)
|
|
|
437 |
pp.pprint(client.getAllBanners())
|
|
|
438 |
|
|
|
439 |
elif cmd == 'deleteBanner':
|
|
|
440 |
if len(args) != 1:
|
|
|
441 |
print 'deleteBanner requires 1 args'
|
|
|
442 |
sys.exit(1)
|
|
|
443 |
pp.pprint(client.deleteBanner(args[0],))
|
|
|
444 |
|
|
|
445 |
elif cmd == 'getBannerDetails':
|
|
|
446 |
if len(args) != 1:
|
|
|
447 |
print 'getBannerDetails requires 1 args'
|
|
|
448 |
sys.exit(1)
|
|
|
449 |
pp.pprint(client.getBannerDetails(args[0],))
|
|
|
450 |
|
|
|
451 |
elif cmd == 'getActiveBanners':
|
|
|
452 |
if len(args) != 0:
|
|
|
453 |
print 'getActiveBanners requires 0 args'
|
|
|
454 |
sys.exit(1)
|
|
|
455 |
pp.pprint(client.getActiveBanners())
|
|
|
456 |
|
| 6849 |
kshitij.so |
457 |
elif cmd == 'addBannerMap':
|
|
|
458 |
if len(args) != 3:
|
|
|
459 |
print 'addBannerMap requires 3 args'
|
|
|
460 |
sys.exit(1)
|
|
|
461 |
pp.pprint(client.addBannerMap(args[0],args[1],args[2],))
|
|
|
462 |
|
|
|
463 |
elif cmd == 'deleteBannerMap':
|
|
|
464 |
if len(args) != 1:
|
|
|
465 |
print 'deleteBannerMap requires 1 args'
|
|
|
466 |
sys.exit(1)
|
|
|
467 |
pp.pprint(client.deleteBannerMap(args[0],))
|
|
|
468 |
|
|
|
469 |
elif cmd == 'getBannerMapDetails':
|
|
|
470 |
if len(args) != 1:
|
|
|
471 |
print 'getBannerMapDetails requires 1 args'
|
|
|
472 |
sys.exit(1)
|
|
|
473 |
pp.pprint(client.getBannerMapDetails(args[0],))
|
|
|
474 |
|
| 5944 |
mandeep.dh |
475 |
elif cmd == 'deleteSimilarItem':
|
|
|
476 |
if len(args) != 2:
|
|
|
477 |
print 'deleteSimilarItem requires 2 args'
|
|
|
478 |
sys.exit(1)
|
|
|
479 |
pp.pprint(client.deleteSimilarItem(eval(args[0]),eval(args[1]),))
|
|
|
480 |
|
|
|
481 |
elif cmd == 'checkSimilarItem':
|
|
|
482 |
if len(args) != 4:
|
|
|
483 |
print 'checkSimilarItem requires 4 args'
|
|
|
484 |
sys.exit(1)
|
|
|
485 |
pp.pprint(client.checkSimilarItem(args[0],args[1],args[2],args[3],))
|
|
|
486 |
|
|
|
487 |
elif cmd == 'validateRiskyStatus':
|
|
|
488 |
if len(args) != 1:
|
|
|
489 |
print 'validateRiskyStatus requires 1 args'
|
|
|
490 |
sys.exit(1)
|
|
|
491 |
pp.pprint(client.validateRiskyStatus(eval(args[0]),))
|
|
|
492 |
|
|
|
493 |
elif cmd == 'changeItemRiskyFlag':
|
|
|
494 |
if len(args) != 2:
|
|
|
495 |
print 'changeItemRiskyFlag requires 2 args'
|
|
|
496 |
sys.exit(1)
|
|
|
497 |
pp.pprint(client.changeItemRiskyFlag(eval(args[0]),eval(args[1]),))
|
|
|
498 |
|
|
|
499 |
elif cmd == 'getItemsByRiskyFlag':
|
|
|
500 |
if len(args) != 0:
|
|
|
501 |
print 'getItemsByRiskyFlag requires 0 args'
|
|
|
502 |
sys.exit(1)
|
|
|
503 |
pp.pprint(client.getItemsByRiskyFlag())
|
|
|
504 |
|
|
|
505 |
elif cmd == 'getItemsForMasterSheet':
|
|
|
506 |
if len(args) != 2:
|
|
|
507 |
print 'getItemsForMasterSheet requires 2 args'
|
|
|
508 |
sys.exit(1)
|
|
|
509 |
pp.pprint(client.getItemsForMasterSheet(args[0],args[1],))
|
|
|
510 |
|
|
|
511 |
elif cmd == 'getSimilarItemsCatalogIds':
|
|
|
512 |
if len(args) != 3:
|
|
|
513 |
print 'getSimilarItemsCatalogIds requires 3 args'
|
|
|
514 |
sys.exit(1)
|
|
|
515 |
pp.pprint(client.getSimilarItemsCatalogIds(eval(args[0]),eval(args[1]),eval(args[2]),))
|
|
|
516 |
|
|
|
517 |
elif cmd == 'addProductNotification':
|
|
|
518 |
if len(args) != 2:
|
|
|
519 |
print 'addProductNotification requires 2 args'
|
|
|
520 |
sys.exit(1)
|
|
|
521 |
pp.pprint(client.addProductNotification(eval(args[0]),args[1],))
|
|
|
522 |
|
|
|
523 |
elif cmd == 'sendProductNotifications':
|
|
|
524 |
if len(args) != 0:
|
|
|
525 |
print 'sendProductNotifications requires 0 args'
|
|
|
526 |
sys.exit(1)
|
|
|
527 |
pp.pprint(client.sendProductNotifications())
|
|
|
528 |
|
|
|
529 |
elif cmd == 'getAllBrandsByCategory':
|
|
|
530 |
if len(args) != 1:
|
|
|
531 |
print 'getAllBrandsByCategory requires 1 args'
|
|
|
532 |
sys.exit(1)
|
|
|
533 |
pp.pprint(client.getAllBrandsByCategory(eval(args[0]),))
|
|
|
534 |
|
|
|
535 |
elif cmd == 'getAllBrands':
|
|
|
536 |
if len(args) != 0:
|
|
|
537 |
print 'getAllBrands requires 0 args'
|
|
|
538 |
sys.exit(1)
|
|
|
539 |
pp.pprint(client.getAllBrands())
|
|
|
540 |
|
|
|
541 |
elif cmd == 'getAllSources':
|
|
|
542 |
if len(args) != 0:
|
|
|
543 |
print 'getAllSources requires 0 args'
|
|
|
544 |
sys.exit(1)
|
|
|
545 |
pp.pprint(client.getAllSources())
|
|
|
546 |
|
|
|
547 |
elif cmd == 'getItemPricingBySource':
|
|
|
548 |
if len(args) != 2:
|
|
|
549 |
print 'getItemPricingBySource requires 2 args'
|
|
|
550 |
sys.exit(1)
|
|
|
551 |
pp.pprint(client.getItemPricingBySource(eval(args[0]),eval(args[1]),))
|
|
|
552 |
|
|
|
553 |
elif cmd == 'addSourceItemPricing':
|
|
|
554 |
if len(args) != 1:
|
|
|
555 |
print 'addSourceItemPricing requires 1 args'
|
|
|
556 |
sys.exit(1)
|
|
|
557 |
pp.pprint(client.addSourceItemPricing(eval(args[0]),))
|
|
|
558 |
|
|
|
559 |
elif cmd == 'getAllSourcePricing':
|
|
|
560 |
if len(args) != 1:
|
|
|
561 |
print 'getAllSourcePricing requires 1 args'
|
|
|
562 |
sys.exit(1)
|
|
|
563 |
pp.pprint(client.getAllSourcePricing(eval(args[0]),))
|
|
|
564 |
|
|
|
565 |
elif cmd == 'getItemForSource':
|
|
|
566 |
if len(args) != 2:
|
|
|
567 |
print 'getItemForSource requires 2 args'
|
|
|
568 |
sys.exit(1)
|
|
|
569 |
pp.pprint(client.getItemForSource(eval(args[0]),eval(args[1]),))
|
|
|
570 |
|
|
|
571 |
elif cmd == 'searchItemsInRange':
|
|
|
572 |
if len(args) != 3:
|
|
|
573 |
print 'searchItemsInRange requires 3 args'
|
|
|
574 |
sys.exit(1)
|
|
|
575 |
pp.pprint(client.searchItemsInRange(eval(args[0]),eval(args[1]),eval(args[2]),))
|
|
|
576 |
|
|
|
577 |
elif cmd == 'getSearchResultCount':
|
|
|
578 |
if len(args) != 1:
|
|
|
579 |
print 'getSearchResultCount requires 1 args'
|
|
|
580 |
sys.exit(1)
|
|
|
581 |
pp.pprint(client.getSearchResultCount(eval(args[0]),))
|
|
|
582 |
|
|
|
583 |
elif cmd == 'getProductNotifications':
|
|
|
584 |
if len(args) != 1:
|
|
|
585 |
print 'getProductNotifications requires 1 args'
|
|
|
586 |
sys.exit(1)
|
|
|
587 |
pp.pprint(client.getProductNotifications(eval(args[0]),))
|
|
|
588 |
|
|
|
589 |
elif cmd == 'getProductNotificationRequestCount':
|
| 8274 |
amit.gupta |
590 |
if len(args) != 2:
|
|
|
591 |
print 'getProductNotificationRequestCount requires 2 args'
|
| 5944 |
mandeep.dh |
592 |
sys.exit(1)
|
| 8274 |
amit.gupta |
593 |
pp.pprint(client.getProductNotificationRequestCount(eval(args[0]),eval(args[1]),))
|
| 5944 |
mandeep.dh |
594 |
|
|
|
595 |
elif cmd == 'addAuthorizationLog':
|
|
|
596 |
if len(args) != 3:
|
|
|
597 |
print 'addAuthorizationLog requires 3 args'
|
|
|
598 |
sys.exit(1)
|
|
|
599 |
pp.pprint(client.addAuthorizationLog(eval(args[0]),args[1],args[2],))
|
|
|
600 |
|
|
|
601 |
elif cmd == 'addupdateVoucherForItem':
|
|
|
602 |
if len(args) != 3:
|
|
|
603 |
print 'addupdateVoucherForItem requires 3 args'
|
|
|
604 |
sys.exit(1)
|
|
|
605 |
pp.pprint(client.addupdateVoucherForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
|
|
|
606 |
|
|
|
607 |
elif cmd == 'deleteVoucherForItem':
|
|
|
608 |
if len(args) != 2:
|
|
|
609 |
print 'deleteVoucherForItem requires 2 args'
|
|
|
610 |
sys.exit(1)
|
|
|
611 |
pp.pprint(client.deleteVoucherForItem(eval(args[0]),eval(args[1]),))
|
|
|
612 |
|
|
|
613 |
elif cmd == 'getVoucherAmount':
|
|
|
614 |
if len(args) != 2:
|
|
|
615 |
print 'getVoucherAmount requires 2 args'
|
|
|
616 |
sys.exit(1)
|
|
|
617 |
pp.pprint(client.getVoucherAmount(eval(args[0]),eval(args[1]),))
|
|
|
618 |
|
|
|
619 |
elif cmd == 'getAllItemVouchers':
|
|
|
620 |
if len(args) != 1:
|
|
|
621 |
print 'getAllItemVouchers requires 1 args'
|
|
|
622 |
sys.exit(1)
|
|
|
623 |
pp.pprint(client.getAllItemVouchers(eval(args[0]),))
|
|
|
624 |
|
|
|
625 |
elif cmd == 'isValidCatalogItemId':
|
|
|
626 |
if len(args) != 1:
|
|
|
627 |
print 'isValidCatalogItemId requires 1 args'
|
|
|
628 |
sys.exit(1)
|
|
|
629 |
pp.pprint(client.isValidCatalogItemId(eval(args[0]),))
|
|
|
630 |
|
| 6039 |
amit.gupta |
631 |
elif cmd == 'getVatPercentageForItem':
|
| 7330 |
amit.gupta |
632 |
if len(args) != 3:
|
|
|
633 |
print 'getVatPercentageForItem requires 3 args'
|
| 6039 |
amit.gupta |
634 |
sys.exit(1)
|
| 7330 |
amit.gupta |
635 |
pp.pprint(client.getVatPercentageForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| 6039 |
amit.gupta |
636 |
|
|
|
637 |
elif cmd == 'getVatAmountForItem':
|
|
|
638 |
if len(args) != 2:
|
|
|
639 |
print 'getVatAmountForItem requires 2 args'
|
|
|
640 |
sys.exit(1)
|
|
|
641 |
pp.pprint(client.getVatAmountForItem(eval(args[0]),eval(args[1]),))
|
|
|
642 |
|
| 6531 |
vikram.rag |
643 |
elif cmd == 'getAllIgnoredInventoryUpdateItemsList':
|
|
|
644 |
if len(args) != 2:
|
|
|
645 |
print 'getAllIgnoredInventoryUpdateItemsList requires 2 args'
|
|
|
646 |
sys.exit(1)
|
|
|
647 |
pp.pprint(client.getAllIgnoredInventoryUpdateItemsList(eval(args[0]),eval(args[1]),))
|
|
|
648 |
|
| 6845 |
amit.gupta |
649 |
elif cmd == 'getAllAliveItems':
|
|
|
650 |
if len(args) != 0:
|
|
|
651 |
print 'getAllAliveItems requires 0 args'
|
|
|
652 |
sys.exit(1)
|
|
|
653 |
pp.pprint(client.getAllAliveItems())
|
|
|
654 |
|
| 6805 |
anupam.sin |
655 |
elif cmd == 'getInsuranceAmount':
|
| 6921 |
anupam.sin |
656 |
if len(args) != 4:
|
|
|
657 |
print 'getInsuranceAmount requires 4 args'
|
| 6805 |
anupam.sin |
658 |
sys.exit(1)
|
| 6921 |
anupam.sin |
659 |
pp.pprint(client.getInsuranceAmount(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
| 6805 |
anupam.sin |
660 |
|
|
|
661 |
elif cmd == 'getInsurer':
|
|
|
662 |
if len(args) != 1:
|
|
|
663 |
print 'getInsurer requires 1 args'
|
|
|
664 |
sys.exit(1)
|
|
|
665 |
pp.pprint(client.getInsurer(eval(args[0]),))
|
|
|
666 |
|
| 6849 |
kshitij.so |
667 |
elif cmd == 'getAllInsurers':
|
|
|
668 |
if len(args) != 0:
|
|
|
669 |
print 'getAllInsurers requires 0 args'
|
|
|
670 |
sys.exit(1)
|
|
|
671 |
pp.pprint(client.getAllInsurers())
|
|
|
672 |
|
| 6962 |
rajveer |
673 |
elif cmd == 'updateInsuranceDeclaredAmount':
|
|
|
674 |
if len(args) != 2:
|
|
|
675 |
print 'updateInsuranceDeclaredAmount requires 2 args'
|
|
|
676 |
sys.exit(1)
|
|
|
677 |
pp.pprint(client.updateInsuranceDeclaredAmount(eval(args[0]),eval(args[1]),))
|
|
|
678 |
|
| 7256 |
rajveer |
679 |
elif cmd == 'getFreebieForItem':
|
|
|
680 |
if len(args) != 1:
|
|
|
681 |
print 'getFreebieForItem requires 1 args'
|
|
|
682 |
sys.exit(1)
|
|
|
683 |
pp.pprint(client.getFreebieForItem(eval(args[0]),))
|
|
|
684 |
|
|
|
685 |
elif cmd == 'addOrUpdateFreebieForItem':
|
|
|
686 |
if len(args) != 1:
|
|
|
687 |
print 'addOrUpdateFreebieForItem requires 1 args'
|
|
|
688 |
sys.exit(1)
|
|
|
689 |
pp.pprint(client.addOrUpdateFreebieForItem(eval(args[0]),))
|
|
|
690 |
|
| 7272 |
amit.gupta |
691 |
elif cmd == 'addOrUpdateBrandInfo':
|
|
|
692 |
if len(args) != 1:
|
|
|
693 |
print 'addOrUpdateBrandInfo requires 1 args'
|
|
|
694 |
sys.exit(1)
|
|
|
695 |
pp.pprint(client.addOrUpdateBrandInfo(eval(args[0]),))
|
|
|
696 |
|
|
|
697 |
elif cmd == 'getBrandInfo':
|
|
|
698 |
if len(args) != 0:
|
|
|
699 |
print 'getBrandInfo requires 0 args'
|
|
|
700 |
sys.exit(1)
|
|
|
701 |
pp.pprint(client.getBrandInfo())
|
|
|
702 |
|
| 7256 |
rajveer |
703 |
elif cmd == 'getStorePricing':
|
|
|
704 |
if len(args) != 1:
|
|
|
705 |
print 'getStorePricing requires 1 args'
|
|
|
706 |
sys.exit(1)
|
|
|
707 |
pp.pprint(client.getStorePricing(eval(args[0]),))
|
|
|
708 |
|
| 7306 |
rajveer |
709 |
elif cmd == 'getStorePricings':
|
|
|
710 |
if len(args) != 1:
|
|
|
711 |
print 'getStorePricings requires 1 args'
|
|
|
712 |
sys.exit(1)
|
|
|
713 |
pp.pprint(client.getStorePricings(eval(args[0]),))
|
|
|
714 |
|
| 7265 |
rajveer |
715 |
elif cmd == 'updateStorePricing':
|
| 7382 |
rajveer |
716 |
if len(args) != 2:
|
|
|
717 |
print 'updateStorePricing requires 2 args'
|
| 7265 |
rajveer |
718 |
sys.exit(1)
|
| 7382 |
rajveer |
719 |
pp.pprint(client.updateStorePricing(eval(args[0]),eval(args[1]),))
|
| 7265 |
rajveer |
720 |
|
| 7306 |
rajveer |
721 |
elif cmd == 'getAllAmazonListedItems':
|
|
|
722 |
if len(args) != 0:
|
|
|
723 |
print 'getAllAmazonListedItems requires 0 args'
|
|
|
724 |
sys.exit(1)
|
|
|
725 |
pp.pprint(client.getAllAmazonListedItems())
|
|
|
726 |
|
|
|
727 |
elif cmd == 'getAmazonItemDetails':
|
|
|
728 |
if len(args) != 1:
|
|
|
729 |
print 'getAmazonItemDetails requires 1 args'
|
|
|
730 |
sys.exit(1)
|
|
|
731 |
pp.pprint(client.getAmazonItemDetails(eval(args[0]),))
|
|
|
732 |
|
|
|
733 |
elif cmd == 'updateAmazonItemDetails':
|
| 8274 |
amit.gupta |
734 |
if len(args) != 1:
|
|
|
735 |
print 'updateAmazonItemDetails requires 1 args'
|
| 7306 |
rajveer |
736 |
sys.exit(1)
|
| 8274 |
amit.gupta |
737 |
pp.pprint(client.updateAmazonItemDetails(eval(args[0]),))
|
| 7306 |
rajveer |
738 |
|
|
|
739 |
elif cmd == 'addAmazonItem':
|
|
|
740 |
if len(args) != 1:
|
|
|
741 |
print 'addAmazonItem requires 1 args'
|
|
|
742 |
sys.exit(1)
|
|
|
743 |
pp.pprint(client.addAmazonItem(eval(args[0]),))
|
|
|
744 |
|
|
|
745 |
elif cmd == 'getAsinItems':
|
|
|
746 |
if len(args) != 0:
|
|
|
747 |
print 'getAsinItems requires 0 args'
|
|
|
748 |
sys.exit(1)
|
|
|
749 |
pp.pprint(client.getAsinItems())
|
|
|
750 |
|
|
|
751 |
elif cmd == 'getAllFbaListedItems':
|
|
|
752 |
if len(args) != 0:
|
|
|
753 |
print 'getAllFbaListedItems requires 0 args'
|
|
|
754 |
sys.exit(1)
|
|
|
755 |
pp.pprint(client.getAllFbaListedItems())
|
|
|
756 |
|
|
|
757 |
elif cmd == 'getAllNonFbaListedItems':
|
|
|
758 |
if len(args) != 0:
|
|
|
759 |
print 'getAllNonFbaListedItems requires 0 args'
|
|
|
760 |
sys.exit(1)
|
|
|
761 |
pp.pprint(client.getAllNonFbaListedItems())
|
|
|
762 |
|
| 7516 |
vikram.rag |
763 |
elif cmd == 'updateItemInventory':
|
|
|
764 |
if len(args) != 3:
|
|
|
765 |
print 'updateItemInventory requires 3 args'
|
|
|
766 |
sys.exit(1)
|
|
|
767 |
pp.pprint(client.updateItemInventory(eval(args[0]),eval(args[1]),eval(args[2]),))
|
|
|
768 |
|
| 8274 |
amit.gupta |
769 |
elif cmd == 'updateTimestampForAmazonFeeds':
|
|
|
770 |
if len(args) != 3:
|
|
|
771 |
print 'updateTimestampForAmazonFeeds requires 3 args'
|
|
|
772 |
sys.exit(1)
|
|
|
773 |
pp.pprint(client.updateTimestampForAmazonFeeds(args[0],eval(args[1]),eval(args[2]),))
|
|
|
774 |
|
|
|
775 |
elif cmd == 'getAllParentCategories':
|
|
|
776 |
if len(args) != 0:
|
|
|
777 |
print 'getAllParentCategories requires 0 args'
|
|
|
778 |
sys.exit(1)
|
|
|
779 |
pp.pprint(client.getAllParentCategories())
|
|
|
780 |
|
|
|
781 |
elif cmd == 'addPageViewEvent':
|
|
|
782 |
if len(args) != 1:
|
|
|
783 |
print 'addPageViewEvent requires 1 args'
|
|
|
784 |
sys.exit(1)
|
|
|
785 |
pp.pprint(client.addPageViewEvent(eval(args[0]),))
|
|
|
786 |
|
|
|
787 |
elif cmd == 'addCartEvent':
|
|
|
788 |
if len(args) != 1:
|
|
|
789 |
print 'addCartEvent requires 1 args'
|
|
|
790 |
sys.exit(1)
|
|
|
791 |
pp.pprint(client.addCartEvent(eval(args[0]),))
|
|
|
792 |
|
|
|
793 |
elif cmd == 'addEbayItem':
|
|
|
794 |
if len(args) != 1:
|
|
|
795 |
print 'addEbayItem requires 1 args'
|
|
|
796 |
sys.exit(1)
|
|
|
797 |
pp.pprint(client.addEbayItem(eval(args[0]),))
|
|
|
798 |
|
|
|
799 |
elif cmd == 'getEbayItem':
|
|
|
800 |
if len(args) != 1:
|
|
|
801 |
print 'getEbayItem requires 1 args'
|
|
|
802 |
sys.exit(1)
|
|
|
803 |
pp.pprint(client.getEbayItem(args[0],))
|
|
|
804 |
|
|
|
805 |
elif cmd == 'updateEbayItem':
|
|
|
806 |
if len(args) != 1:
|
|
|
807 |
print 'updateEbayItem requires 1 args'
|
|
|
808 |
sys.exit(1)
|
|
|
809 |
pp.pprint(client.updateEbayItem(eval(args[0]),))
|
|
|
810 |
|
|
|
811 |
elif cmd == 'getAmazonListedItems':
|
|
|
812 |
if len(args) != 2:
|
|
|
813 |
print 'getAmazonListedItems requires 2 args'
|
|
|
814 |
sys.exit(1)
|
|
|
815 |
pp.pprint(client.getAmazonListedItems(eval(args[0]),eval(args[1]),))
|
|
|
816 |
|
|
|
817 |
elif cmd == 'updateAmazonAttributesInBulk':
|
|
|
818 |
if len(args) != 1:
|
|
|
819 |
print 'updateAmazonAttributesInBulk requires 1 args'
|
|
|
820 |
sys.exit(1)
|
|
|
821 |
pp.pprint(client.updateAmazonAttributesInBulk(eval(args[0]),))
|
|
|
822 |
|
| 5944 |
mandeep.dh |
823 |
else:
|
|
|
824 |
print 'Unrecognized method %s' % cmd
|
|
|
825 |
sys.exit(1)
|
|
|
826 |
|
|
|
827 |
transport.close()
|