| Line 33... |
Line 33... |
| 33 |
print ' getItemsByCatalogId(i64 catalog_item_id)'
|
33 |
print ' getItemsByCatalogId(i64 catalog_item_id)'
|
| 34 |
print ' getValidItemsByCatalogId(i64 catalog_item_id)'
|
34 |
print ' getValidItemsByCatalogId(i64 catalog_item_id)'
|
| 35 |
print ' getAllItems(bool isActive)'
|
35 |
print ' getAllItems(bool isActive)'
|
| 36 |
print ' getAllItemsByStatus(status itemStatus)'
|
36 |
print ' getAllItemsByStatus(status itemStatus)'
|
| 37 |
print ' bool markItemAsContentComplete(i64 entityId, i64 category, string brand, string modelName, string modelNumber, bool isAndroid)'
|
37 |
print ' bool markItemAsContentComplete(i64 entityId, i64 category, string brand, string modelName, string modelNumber, bool isAndroid)'
|
| - |
|
38 |
print ' getVatRates(i64 itemId, i64 categoryId)'
|
| 38 |
print ' getAllItemsInRange(i64 offset, i64 limit)'
|
39 |
print ' getAllItemsInRange(i64 offset, i64 limit)'
|
| 39 |
print ' getAllItemsByStatusInRange(status itemStatus, i64 offset, i64 limit)'
|
40 |
print ' getAllItemsByStatusInRange(status itemStatus, i64 offset, i64 limit)'
|
| 40 |
print ' i32 getItemCountByStatus(bool useStatus, status itemStatus)'
|
41 |
print ' i32 getItemCountByStatus(bool useStatus, status itemStatus)'
|
| 41 |
print ' getBestSellers()'
|
42 |
print ' getBestSellers()'
|
| 42 |
print ' getBestSellersCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
43 |
print ' getBestSellersCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
| Line 184... |
Line 185... |
| 184 |
print ' getPrivateDealItems(i64 offset, i64 limit)'
|
185 |
print ' getPrivateDealItems(i64 offset, i64 limit)'
|
| 185 |
print ' getAllActivePrivateDeals( itemIds, i64 daysDelta)'
|
186 |
print ' getAllActivePrivateDeals( itemIds, i64 daysDelta)'
|
| 186 |
print ' bool addOrUpdatePrivateDeal(PrivateDeal privateDeal)'
|
187 |
print ' bool addOrUpdatePrivateDeal(PrivateDeal privateDeal)'
|
| 187 |
print ' getPrivateDealsCatalogIds(i64 beginIndex, i64 totalItems)'
|
188 |
print ' getPrivateDealsCatalogIds(i64 beginIndex, i64 totalItems)'
|
| 188 |
print ' i32 getPrivateDealsCount()'
|
189 |
print ' i32 getPrivateDealsCount()'
|
| - |
|
190 |
print ' AmazonOutOfSync getAmazonOutSyncItems(i64 item_id)'
|
| - |
|
191 |
print ' getAllPrivateDealsComparison()'
|
| - |
|
192 |
print ' getAllSnapdealMarketplaceItem()'
|
| - |
|
193 |
print ' getAllFlipkartMarketplaceItem()'
|
| - |
|
194 |
print ' void addCompetitorScraping( competitorPricingMap)'
|
| - |
|
195 |
print ' getPreviousCompetitorScraping(i64 delta)'
|
| - |
|
196 |
print ' getUploadResultById(i64 uploadId)'
|
| - |
|
197 |
print ' bool addAmazonPromotion( amazonPromotions)'
|
| - |
|
198 |
print ' getAmazonPromotion(i64 startDate, i64 endDate)'
|
| - |
|
199 |
print ' bool updateAmazonPromotion( amazonPromotions)'
|
| - |
|
200 |
print ' bool markPartiallyActive(i64 itemId, i64 categoryId)'
|
| - |
|
201 |
print ' bool updateItemStateVat(i64 itemId, statevat)'
|
| 189 |
print ''
|
202 |
print ''
|
| 190 |
sys.exit(0)
|
203 |
sys.exit(0)
|
| 191 |
|
204 |
|
| 192 |
pp = pprint.PrettyPrinter(indent = 2)
|
205 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 193 |
host = 'localhost'
|
206 |
host = 'localhost'
|
| Line 318... |
Line 331... |
| 318 |
if len(args) != 6:
|
331 |
if len(args) != 6:
|
| 319 |
print 'markItemAsContentComplete requires 6 args'
|
332 |
print 'markItemAsContentComplete requires 6 args'
|
| 320 |
sys.exit(1)
|
333 |
sys.exit(1)
|
| 321 |
pp.pprint(client.markItemAsContentComplete(eval(args[0]),eval(args[1]),args[2],args[3],args[4],eval(args[5]),))
|
334 |
pp.pprint(client.markItemAsContentComplete(eval(args[0]),eval(args[1]),args[2],args[3],args[4],eval(args[5]),))
|
| 322 |
|
335 |
|
| - |
|
336 |
elif cmd == 'getVatRates':
|
| - |
|
337 |
if len(args) != 2:
|
| - |
|
338 |
print 'getVatRates requires 2 args'
|
| - |
|
339 |
sys.exit(1)
|
| - |
|
340 |
pp.pprint(client.getVatRates(eval(args[0]),eval(args[1]),))
|
| - |
|
341 |
|
| 323 |
elif cmd == 'getAllItemsInRange':
|
342 |
elif cmd == 'getAllItemsInRange':
|
| 324 |
if len(args) != 2:
|
343 |
if len(args) != 2:
|
| 325 |
print 'getAllItemsInRange requires 2 args'
|
344 |
print 'getAllItemsInRange requires 2 args'
|
| 326 |
sys.exit(1)
|
345 |
sys.exit(1)
|
| 327 |
pp.pprint(client.getAllItemsInRange(eval(args[0]),eval(args[1]),))
|
346 |
pp.pprint(client.getAllItemsInRange(eval(args[0]),eval(args[1]),))
|
| Line 1224... |
Line 1243... |
| 1224 |
if len(args) != 0:
|
1243 |
if len(args) != 0:
|
| 1225 |
print 'getPrivateDealsCount requires 0 args'
|
1244 |
print 'getPrivateDealsCount requires 0 args'
|
| 1226 |
sys.exit(1)
|
1245 |
sys.exit(1)
|
| 1227 |
pp.pprint(client.getPrivateDealsCount())
|
1246 |
pp.pprint(client.getPrivateDealsCount())
|
| 1228 |
|
1247 |
|
| - |
|
1248 |
elif cmd == 'getAmazonOutSyncItems':
|
| - |
|
1249 |
if len(args) != 1:
|
| - |
|
1250 |
print 'getAmazonOutSyncItems requires 1 args'
|
| - |
|
1251 |
sys.exit(1)
|
| - |
|
1252 |
pp.pprint(client.getAmazonOutSyncItems(eval(args[0]),))
|
| - |
|
1253 |
|
| - |
|
1254 |
elif cmd == 'getAllPrivateDealsComparison':
|
| - |
|
1255 |
if len(args) != 0:
|
| - |
|
1256 |
print 'getAllPrivateDealsComparison requires 0 args'
|
| - |
|
1257 |
sys.exit(1)
|
| - |
|
1258 |
pp.pprint(client.getAllPrivateDealsComparison())
|
| - |
|
1259 |
|
| - |
|
1260 |
elif cmd == 'getAllSnapdealMarketplaceItem':
|
| - |
|
1261 |
if len(args) != 0:
|
| - |
|
1262 |
print 'getAllSnapdealMarketplaceItem requires 0 args'
|
| - |
|
1263 |
sys.exit(1)
|
| - |
|
1264 |
pp.pprint(client.getAllSnapdealMarketplaceItem())
|
| - |
|
1265 |
|
| - |
|
1266 |
elif cmd == 'getAllFlipkartMarketplaceItem':
|
| - |
|
1267 |
if len(args) != 0:
|
| - |
|
1268 |
print 'getAllFlipkartMarketplaceItem requires 0 args'
|
| - |
|
1269 |
sys.exit(1)
|
| - |
|
1270 |
pp.pprint(client.getAllFlipkartMarketplaceItem())
|
| - |
|
1271 |
|
| - |
|
1272 |
elif cmd == 'addCompetitorScraping':
|
| - |
|
1273 |
if len(args) != 1:
|
| - |
|
1274 |
print 'addCompetitorScraping requires 1 args'
|
| - |
|
1275 |
sys.exit(1)
|
| - |
|
1276 |
pp.pprint(client.addCompetitorScraping(eval(args[0]),))
|
| - |
|
1277 |
|
| - |
|
1278 |
elif cmd == 'getPreviousCompetitorScraping':
|
| - |
|
1279 |
if len(args) != 1:
|
| - |
|
1280 |
print 'getPreviousCompetitorScraping requires 1 args'
|
| - |
|
1281 |
sys.exit(1)
|
| - |
|
1282 |
pp.pprint(client.getPreviousCompetitorScraping(eval(args[0]),))
|
| - |
|
1283 |
|
| - |
|
1284 |
elif cmd == 'getUploadResultById':
|
| - |
|
1285 |
if len(args) != 1:
|
| - |
|
1286 |
print 'getUploadResultById requires 1 args'
|
| - |
|
1287 |
sys.exit(1)
|
| - |
|
1288 |
pp.pprint(client.getUploadResultById(eval(args[0]),))
|
| - |
|
1289 |
|
| - |
|
1290 |
elif cmd == 'addAmazonPromotion':
|
| - |
|
1291 |
if len(args) != 1:
|
| - |
|
1292 |
print 'addAmazonPromotion requires 1 args'
|
| - |
|
1293 |
sys.exit(1)
|
| - |
|
1294 |
pp.pprint(client.addAmazonPromotion(eval(args[0]),))
|
| - |
|
1295 |
|
| - |
|
1296 |
elif cmd == 'getAmazonPromotion':
|
| - |
|
1297 |
if len(args) != 2:
|
| - |
|
1298 |
print 'getAmazonPromotion requires 2 args'
|
| - |
|
1299 |
sys.exit(1)
|
| - |
|
1300 |
pp.pprint(client.getAmazonPromotion(eval(args[0]),eval(args[1]),))
|
| - |
|
1301 |
|
| - |
|
1302 |
elif cmd == 'updateAmazonPromotion':
|
| - |
|
1303 |
if len(args) != 1:
|
| - |
|
1304 |
print 'updateAmazonPromotion requires 1 args'
|
| - |
|
1305 |
sys.exit(1)
|
| - |
|
1306 |
pp.pprint(client.updateAmazonPromotion(eval(args[0]),))
|
| - |
|
1307 |
|
| - |
|
1308 |
elif cmd == 'markPartiallyActive':
|
| - |
|
1309 |
if len(args) != 2:
|
| - |
|
1310 |
print 'markPartiallyActive requires 2 args'
|
| - |
|
1311 |
sys.exit(1)
|
| - |
|
1312 |
pp.pprint(client.markPartiallyActive(eval(args[0]),eval(args[1]),))
|
| - |
|
1313 |
|
| - |
|
1314 |
elif cmd == 'updateItemStateVat':
|
| - |
|
1315 |
if len(args) != 2:
|
| - |
|
1316 |
print 'updateItemStateVat requires 2 args'
|
| - |
|
1317 |
sys.exit(1)
|
| - |
|
1318 |
pp.pprint(client.updateItemStateVat(eval(args[0]),eval(args[1]),))
|
| - |
|
1319 |
|
| 1229 |
else:
|
1320 |
else:
|
| 1230 |
print 'Unrecognized method %s' % cmd
|
1321 |
print 'Unrecognized method %s' % cmd
|
| 1231 |
sys.exit(1)
|
1322 |
sys.exit(1)
|
| 1232 |
|
1323 |
|
| 1233 |
transport.close()
|
1324 |
transport.close()
|