| Line 32... |
Line 32... |
| 32 |
print ' Item getItem(i64 item_id)'
|
32 |
print ' Item getItem(i64 item_id)'
|
| 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)'
|
37 |
print ' bool markItemAsContentComplete(i64 entityId, i64 category, string brand, string modelName, string modelNumber, bool isAndroid)'
|
| 38 |
print ' getAllItemsInRange(i64 offset, i64 limit)'
|
38 |
print ' getAllItemsInRange(i64 offset, i64 limit)'
|
| 39 |
print ' getAllItemsByStatusInRange(status itemStatus, i64 offset, i64 limit)'
|
39 |
print ' getAllItemsByStatusInRange(status itemStatus, i64 offset, i64 limit)'
|
| 40 |
print ' i32 getItemCountByStatus(bool useStatus, status itemStatus)'
|
40 |
print ' i32 getItemCountByStatus(bool useStatus, status itemStatus)'
|
| 41 |
print ' getBestSellers()'
|
41 |
print ' getBestSellers()'
|
| 42 |
print ' getBestSellersCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
42 |
print ' getBestSellersCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
|
| Line 60... |
Line 60... |
| 60 |
print ' bool deleteEntityTag(string displayName, i64 itemId)'
|
60 |
print ' bool deleteEntityTag(string displayName, i64 itemId)'
|
| 61 |
print ' bool deleteTag(string displayName)'
|
61 |
print ' bool deleteTag(string displayName)'
|
| 62 |
print ' getAllTags()'
|
62 |
print ' getAllTags()'
|
| 63 |
print ' getAllEntitiesByTagName(string displayName)'
|
63 |
print ' getAllEntitiesByTagName(string displayName)'
|
| 64 |
print ' getAllEntityTags()'
|
64 |
print ' getAllEntityTags()'
|
| 65 |
print ' bool addBanner(string bannerName, string imageName, string link, i64 priority, bool isActive, bool hasMap)'
|
65 |
print ' void addBanner(BannerCongregate bannerCongregate)'
|
| - |
|
66 |
print ' bool updateBanner(Banner banner)'
|
| 66 |
print ' getAllBanners()'
|
67 |
print ' getAllBanners()'
|
| 67 |
print ' bool deleteBanner(string bannerName)'
|
68 |
print ' bool deleteBanner(string bannerName, BannerType bannerType)'
|
| 68 |
print ' Banner getBannerDetails(string bannerName)'
|
69 |
print ' Banner getBannerDetails(string bannerName, BannerType bannerType)'
|
| 69 |
print ' getActiveBanners()'
|
70 |
print ' getActiveBanners()'
|
| - |
|
71 |
print ' bool addBannerMap( bannerMaps)'
|
| 70 |
print ' bool addBannerMap(string bannerName, string mapLink, string coordinates)'
|
72 |
print ' bool updateBannerMap(BannerMap bannerMap)'
|
| 71 |
print ' bool deleteBannerMap(string bannerName)'
|
73 |
print ' bool deleteBannerMap(string bannerName)'
|
| 72 |
print ' getBannerMapDetails(string bannerName)'
|
74 |
print ' getBannerMapDetails(string bannerName, BannerType bannerType)'
|
| - |
|
75 |
print ' void addBannerUri( bannerUriMappings)'
|
| - |
|
76 |
print ' getUriMapping(string bannerName, BannerType bannerType)'
|
| - |
|
77 |
print ' void addCampaign(Campaign campaign)'
|
| - |
|
78 |
print ' getCampaigns(string campaignName)'
|
| - |
|
79 |
print ' void deleteCampaign(i64 campaignId)'
|
| - |
|
80 |
print ' getAllCampaigns()'
|
| - |
|
81 |
print ' getActiveBannersForMobileSite()'
|
| 73 |
print ' bool deleteSimilarItem(i64 itemId, i64 catalogItemId)'
|
82 |
print ' bool deleteSimilarItem(i64 itemId, i64 catalogItemId)'
|
| 74 |
print ' i64 checkSimilarItem(string brand, string modelNumber, string modelName, string color)'
|
83 |
print ' i64 checkSimilarItem(string brand, string modelNumber, string modelName, string color)'
|
| 75 |
print ' void validateRiskyStatus(i64 itemId)'
|
84 |
print ' void validateRiskyStatus(i64 itemId)'
|
| 76 |
print ' void changeItemRiskyFlag(i64 itemId, bool risky)'
|
85 |
print ' void changeItemRiskyFlag(i64 itemId, bool risky)'
|
| 77 |
print ' getItemsByRiskyFlag()'
|
86 |
print ' getItemsByRiskyFlag()'
|
| Line 110... |
Line 119... |
| 110 |
print ' getBrandInfo()'
|
119 |
print ' getBrandInfo()'
|
| 111 |
print ' StorePricing getStorePricing(i64 itemId)'
|
120 |
print ' StorePricing getStorePricing(i64 itemId)'
|
| 112 |
print ' getStorePricings( itemIds)'
|
121 |
print ' getStorePricings( itemIds)'
|
| 113 |
print ' void updateStorePricing(StorePricing sp, bool allColors)'
|
122 |
print ' void updateStorePricing(StorePricing sp, bool allColors)'
|
| 114 |
print ' getAllAmazonListedItems()'
|
123 |
print ' getAllAmazonListedItems()'
|
| - |
|
124 |
print ' searchAmazonItems( searchTerm, i64 offset, i64 limit)'
|
| - |
|
125 |
print ' i64 getAmazonSearchResultCount( searchTerm)'
|
| - |
|
126 |
print ' i64 getCountForAmazonlistedItems()'
|
| 115 |
print ' Amazonlisted getAmazonItemDetails(i64 itemId)'
|
127 |
print ' Amazonlisted getAmazonItemDetails(i64 itemId)'
|
| 116 |
print ' void updateAmazonItemDetails(Amazonlisted amazonlisted)'
|
128 |
print ' void updateAmazonItemDetails(Amazonlisted amazonlisted)'
|
| 117 |
print ' void addAmazonItem(Amazonlisted amazonlisted)'
|
129 |
print ' void addAmazonItem(Amazonlisted amazonlisted)'
|
| 118 |
print ' getAsinItems()'
|
130 |
print ' getAsinItems()'
|
| 119 |
print ' getAllFbaListedItems()'
|
131 |
print ' getAllFbaListedItems()'
|
| Line 126... |
Line 138... |
| 126 |
print ' void addEbayItem(EbayItem ebayItem)'
|
138 |
print ' void addEbayItem(EbayItem ebayItem)'
|
| 127 |
print ' EbayItem getEbayItem(string listingId)'
|
139 |
print ' EbayItem getEbayItem(string listingId)'
|
| 128 |
print ' void updateEbayItem(EbayItem ebayItem)'
|
140 |
print ' void updateEbayItem(EbayItem ebayItem)'
|
| 129 |
print ' getAmazonListedItems(i64 offset, i64 limit)'
|
141 |
print ' getAmazonListedItems(i64 offset, i64 limit)'
|
| 130 |
print ' bool updateAmazonAttributesInBulk( amazonlisted)'
|
142 |
print ' bool updateAmazonAttributesInBulk( amazonlisted)'
|
| - |
|
143 |
print ' getAllItemstoListOnFba()'
|
| - |
|
144 |
print ' getAllItemstoListOnNonFba()'
|
| - |
|
145 |
print ' void updateAsin( item)'
|
| - |
|
146 |
print ' bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)'
|
| - |
|
147 |
print ' SnapdealItem getSnapdealItem(i64 item_id)'
|
| - |
|
148 |
print ' SnapdealItemDetails getSnapdealItemDetails(i64 item_id)'
|
| - |
|
149 |
print ' getAllSnapdealItems()'
|
| - |
|
150 |
print ' getSnapdealItems(i64 offset, i64 limit)'
|
| - |
|
151 |
print ' searchSnapdealItems( searchTerm, i64 offset, i64 limit)'
|
| - |
|
152 |
print ' i64 getCountForSnapdealItems()'
|
| - |
|
153 |
print ' i64 getSnapdealSearchResultCount( searchTerm)'
|
| 131 |
print ''
|
154 |
print ''
|
| 132 |
sys.exit(0)
|
155 |
sys.exit(0)
|
| 133 |
|
156 |
|
| 134 |
pp = pprint.PrettyPrinter(indent = 2)
|
157 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 135 |
host = 'localhost'
|
158 |
host = 'localhost'
|
| Line 255... |
Line 278... |
| 255 |
print 'getAllItemsByStatus requires 1 args'
|
278 |
print 'getAllItemsByStatus requires 1 args'
|
| 256 |
sys.exit(1)
|
279 |
sys.exit(1)
|
| 257 |
pp.pprint(client.getAllItemsByStatus(eval(args[0]),))
|
280 |
pp.pprint(client.getAllItemsByStatus(eval(args[0]),))
|
| 258 |
|
281 |
|
| 259 |
elif cmd == 'markItemAsContentComplete':
|
282 |
elif cmd == 'markItemAsContentComplete':
|
| 260 |
if len(args) != 5:
|
283 |
if len(args) != 6:
|
| 261 |
print 'markItemAsContentComplete requires 5 args'
|
284 |
print 'markItemAsContentComplete requires 6 args'
|
| 262 |
sys.exit(1)
|
285 |
sys.exit(1)
|
| 263 |
pp.pprint(client.markItemAsContentComplete(eval(args[0]),eval(args[1]),args[2],args[3],args[4],))
|
286 |
pp.pprint(client.markItemAsContentComplete(eval(args[0]),eval(args[1]),args[2],args[3],args[4],eval(args[5]),))
|
| 264 |
|
287 |
|
| 265 |
elif cmd == 'getAllItemsInRange':
|
288 |
elif cmd == 'getAllItemsInRange':
|
| 266 |
if len(args) != 2:
|
289 |
if len(args) != 2:
|
| 267 |
print 'getAllItemsInRange requires 2 args'
|
290 |
print 'getAllItemsInRange requires 2 args'
|
| 268 |
sys.exit(1)
|
291 |
sys.exit(1)
|
| Line 423... |
Line 446... |
| 423 |
print 'getAllEntityTags requires 0 args'
|
446 |
print 'getAllEntityTags requires 0 args'
|
| 424 |
sys.exit(1)
|
447 |
sys.exit(1)
|
| 425 |
pp.pprint(client.getAllEntityTags())
|
448 |
pp.pprint(client.getAllEntityTags())
|
| 426 |
|
449 |
|
| 427 |
elif cmd == 'addBanner':
|
450 |
elif cmd == 'addBanner':
|
| 428 |
if len(args) != 6:
|
451 |
if len(args) != 1:
|
| 429 |
print 'addBanner requires 6 args'
|
452 |
print 'addBanner requires 1 args'
|
| - |
|
453 |
sys.exit(1)
|
| - |
|
454 |
pp.pprint(client.addBanner(eval(args[0]),))
|
| - |
|
455 |
|
| - |
|
456 |
elif cmd == 'updateBanner':
|
| - |
|
457 |
if len(args) != 1:
|
| - |
|
458 |
print 'updateBanner requires 1 args'
|
| 430 |
sys.exit(1)
|
459 |
sys.exit(1)
|
| 431 |
pp.pprint(client.addBanner(args[0],args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),))
|
460 |
pp.pprint(client.updateBanner(eval(args[0]),))
|
| 432 |
|
461 |
|
| 433 |
elif cmd == 'getAllBanners':
|
462 |
elif cmd == 'getAllBanners':
|
| 434 |
if len(args) != 0:
|
463 |
if len(args) != 0:
|
| 435 |
print 'getAllBanners requires 0 args'
|
464 |
print 'getAllBanners requires 0 args'
|
| 436 |
sys.exit(1)
|
465 |
sys.exit(1)
|
| 437 |
pp.pprint(client.getAllBanners())
|
466 |
pp.pprint(client.getAllBanners())
|
| 438 |
|
467 |
|
| 439 |
elif cmd == 'deleteBanner':
|
468 |
elif cmd == 'deleteBanner':
|
| 440 |
if len(args) != 1:
|
469 |
if len(args) != 2:
|
| 441 |
print 'deleteBanner requires 1 args'
|
470 |
print 'deleteBanner requires 2 args'
|
| 442 |
sys.exit(1)
|
471 |
sys.exit(1)
|
| 443 |
pp.pprint(client.deleteBanner(args[0],))
|
472 |
pp.pprint(client.deleteBanner(args[0],eval(args[1]),))
|
| 444 |
|
473 |
|
| 445 |
elif cmd == 'getBannerDetails':
|
474 |
elif cmd == 'getBannerDetails':
|
| 446 |
if len(args) != 1:
|
475 |
if len(args) != 2:
|
| 447 |
print 'getBannerDetails requires 1 args'
|
476 |
print 'getBannerDetails requires 2 args'
|
| 448 |
sys.exit(1)
|
477 |
sys.exit(1)
|
| 449 |
pp.pprint(client.getBannerDetails(args[0],))
|
478 |
pp.pprint(client.getBannerDetails(args[0],eval(args[1]),))
|
| 450 |
|
479 |
|
| 451 |
elif cmd == 'getActiveBanners':
|
480 |
elif cmd == 'getActiveBanners':
|
| 452 |
if len(args) != 0:
|
481 |
if len(args) != 0:
|
| 453 |
print 'getActiveBanners requires 0 args'
|
482 |
print 'getActiveBanners requires 0 args'
|
| 454 |
sys.exit(1)
|
483 |
sys.exit(1)
|
| 455 |
pp.pprint(client.getActiveBanners())
|
484 |
pp.pprint(client.getActiveBanners())
|
| 456 |
|
485 |
|
| 457 |
elif cmd == 'addBannerMap':
|
486 |
elif cmd == 'addBannerMap':
|
| 458 |
if len(args) != 3:
|
487 |
if len(args) != 1:
|
| 459 |
print 'addBannerMap requires 3 args'
|
488 |
print 'addBannerMap requires 1 args'
|
| - |
|
489 |
sys.exit(1)
|
| - |
|
490 |
pp.pprint(client.addBannerMap(eval(args[0]),))
|
| - |
|
491 |
|
| - |
|
492 |
elif cmd == 'updateBannerMap':
|
| - |
|
493 |
if len(args) != 1:
|
| - |
|
494 |
print 'updateBannerMap requires 1 args'
|
| 460 |
sys.exit(1)
|
495 |
sys.exit(1)
|
| 461 |
pp.pprint(client.addBannerMap(args[0],args[1],args[2],))
|
496 |
pp.pprint(client.updateBannerMap(eval(args[0]),))
|
| 462 |
|
497 |
|
| 463 |
elif cmd == 'deleteBannerMap':
|
498 |
elif cmd == 'deleteBannerMap':
|
| 464 |
if len(args) != 1:
|
499 |
if len(args) != 1:
|
| 465 |
print 'deleteBannerMap requires 1 args'
|
500 |
print 'deleteBannerMap requires 1 args'
|
| 466 |
sys.exit(1)
|
501 |
sys.exit(1)
|
| 467 |
pp.pprint(client.deleteBannerMap(args[0],))
|
502 |
pp.pprint(client.deleteBannerMap(args[0],))
|
| 468 |
|
503 |
|
| 469 |
elif cmd == 'getBannerMapDetails':
|
504 |
elif cmd == 'getBannerMapDetails':
|
| - |
|
505 |
if len(args) != 2:
|
| - |
|
506 |
print 'getBannerMapDetails requires 2 args'
|
| - |
|
507 |
sys.exit(1)
|
| - |
|
508 |
pp.pprint(client.getBannerMapDetails(args[0],eval(args[1]),))
|
| - |
|
509 |
|
| - |
|
510 |
elif cmd == 'addBannerUri':
|
| 470 |
if len(args) != 1:
|
511 |
if len(args) != 1:
|
| 471 |
print 'getBannerMapDetails requires 1 args'
|
512 |
print 'addBannerUri requires 1 args'
|
| 472 |
sys.exit(1)
|
513 |
sys.exit(1)
|
| 473 |
pp.pprint(client.getBannerMapDetails(args[0],))
|
514 |
pp.pprint(client.addBannerUri(eval(args[0]),))
|
| - |
|
515 |
|
| - |
|
516 |
elif cmd == 'getUriMapping':
|
| - |
|
517 |
if len(args) != 2:
|
| - |
|
518 |
print 'getUriMapping requires 2 args'
|
| - |
|
519 |
sys.exit(1)
|
| - |
|
520 |
pp.pprint(client.getUriMapping(args[0],eval(args[1]),))
|
| - |
|
521 |
|
| - |
|
522 |
elif cmd == 'addCampaign':
|
| - |
|
523 |
if len(args) != 1:
|
| - |
|
524 |
print 'addCampaign requires 1 args'
|
| - |
|
525 |
sys.exit(1)
|
| - |
|
526 |
pp.pprint(client.addCampaign(eval(args[0]),))
|
| - |
|
527 |
|
| - |
|
528 |
elif cmd == 'getCampaigns':
|
| - |
|
529 |
if len(args) != 1:
|
| - |
|
530 |
print 'getCampaigns requires 1 args'
|
| - |
|
531 |
sys.exit(1)
|
| - |
|
532 |
pp.pprint(client.getCampaigns(args[0],))
|
| - |
|
533 |
|
| - |
|
534 |
elif cmd == 'deleteCampaign':
|
| - |
|
535 |
if len(args) != 1:
|
| - |
|
536 |
print 'deleteCampaign requires 1 args'
|
| - |
|
537 |
sys.exit(1)
|
| - |
|
538 |
pp.pprint(client.deleteCampaign(eval(args[0]),))
|
| - |
|
539 |
|
| - |
|
540 |
elif cmd == 'getAllCampaigns':
|
| - |
|
541 |
if len(args) != 0:
|
| - |
|
542 |
print 'getAllCampaigns requires 0 args'
|
| - |
|
543 |
sys.exit(1)
|
| - |
|
544 |
pp.pprint(client.getAllCampaigns())
|
| - |
|
545 |
|
| - |
|
546 |
elif cmd == 'getActiveBannersForMobileSite':
|
| - |
|
547 |
if len(args) != 0:
|
| - |
|
548 |
print 'getActiveBannersForMobileSite requires 0 args'
|
| - |
|
549 |
sys.exit(1)
|
| - |
|
550 |
pp.pprint(client.getActiveBannersForMobileSite())
|
| 474 |
|
551 |
|
| 475 |
elif cmd == 'deleteSimilarItem':
|
552 |
elif cmd == 'deleteSimilarItem':
|
| 476 |
if len(args) != 2:
|
553 |
if len(args) != 2:
|
| 477 |
print 'deleteSimilarItem requires 2 args'
|
554 |
print 'deleteSimilarItem requires 2 args'
|
| 478 |
sys.exit(1)
|
555 |
sys.exit(1)
|
| Line 722... |
Line 799... |
| 722 |
if len(args) != 0:
|
799 |
if len(args) != 0:
|
| 723 |
print 'getAllAmazonListedItems requires 0 args'
|
800 |
print 'getAllAmazonListedItems requires 0 args'
|
| 724 |
sys.exit(1)
|
801 |
sys.exit(1)
|
| 725 |
pp.pprint(client.getAllAmazonListedItems())
|
802 |
pp.pprint(client.getAllAmazonListedItems())
|
| 726 |
|
803 |
|
| - |
|
804 |
elif cmd == 'searchAmazonItems':
|
| - |
|
805 |
if len(args) != 3:
|
| - |
|
806 |
print 'searchAmazonItems requires 3 args'
|
| - |
|
807 |
sys.exit(1)
|
| - |
|
808 |
pp.pprint(client.searchAmazonItems(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| - |
|
809 |
|
| - |
|
810 |
elif cmd == 'getAmazonSearchResultCount':
|
| - |
|
811 |
if len(args) != 1:
|
| - |
|
812 |
print 'getAmazonSearchResultCount requires 1 args'
|
| - |
|
813 |
sys.exit(1)
|
| - |
|
814 |
pp.pprint(client.getAmazonSearchResultCount(eval(args[0]),))
|
| - |
|
815 |
|
| - |
|
816 |
elif cmd == 'getCountForAmazonlistedItems':
|
| - |
|
817 |
if len(args) != 0:
|
| - |
|
818 |
print 'getCountForAmazonlistedItems requires 0 args'
|
| - |
|
819 |
sys.exit(1)
|
| - |
|
820 |
pp.pprint(client.getCountForAmazonlistedItems())
|
| - |
|
821 |
|
| 727 |
elif cmd == 'getAmazonItemDetails':
|
822 |
elif cmd == 'getAmazonItemDetails':
|
| 728 |
if len(args) != 1:
|
823 |
if len(args) != 1:
|
| 729 |
print 'getAmazonItemDetails requires 1 args'
|
824 |
print 'getAmazonItemDetails requires 1 args'
|
| 730 |
sys.exit(1)
|
825 |
sys.exit(1)
|
| 731 |
pp.pprint(client.getAmazonItemDetails(eval(args[0]),))
|
826 |
pp.pprint(client.getAmazonItemDetails(eval(args[0]),))
|
| Line 818... |
Line 913... |
| 818 |
if len(args) != 1:
|
913 |
if len(args) != 1:
|
| 819 |
print 'updateAmazonAttributesInBulk requires 1 args'
|
914 |
print 'updateAmazonAttributesInBulk requires 1 args'
|
| 820 |
sys.exit(1)
|
915 |
sys.exit(1)
|
| 821 |
pp.pprint(client.updateAmazonAttributesInBulk(eval(args[0]),))
|
916 |
pp.pprint(client.updateAmazonAttributesInBulk(eval(args[0]),))
|
| 822 |
|
917 |
|
| - |
|
918 |
elif cmd == 'getAllItemstoListOnFba':
|
| - |
|
919 |
if len(args) != 0:
|
| - |
|
920 |
print 'getAllItemstoListOnFba requires 0 args'
|
| - |
|
921 |
sys.exit(1)
|
| - |
|
922 |
pp.pprint(client.getAllItemstoListOnFba())
|
| - |
|
923 |
|
| - |
|
924 |
elif cmd == 'getAllItemstoListOnNonFba':
|
| - |
|
925 |
if len(args) != 0:
|
| - |
|
926 |
print 'getAllItemstoListOnNonFba requires 0 args'
|
| - |
|
927 |
sys.exit(1)
|
| - |
|
928 |
pp.pprint(client.getAllItemstoListOnNonFba())
|
| - |
|
929 |
|
| - |
|
930 |
elif cmd == 'updateAsin':
|
| - |
|
931 |
if len(args) != 1:
|
| - |
|
932 |
print 'updateAsin requires 1 args'
|
| - |
|
933 |
sys.exit(1)
|
| - |
|
934 |
pp.pprint(client.updateAsin(eval(args[0]),))
|
| - |
|
935 |
|
| - |
|
936 |
elif cmd == 'addOrUpdateSnapdealItem':
|
| - |
|
937 |
if len(args) != 1:
|
| - |
|
938 |
print 'addOrUpdateSnapdealItem requires 1 args'
|
| - |
|
939 |
sys.exit(1)
|
| - |
|
940 |
pp.pprint(client.addOrUpdateSnapdealItem(eval(args[0]),))
|
| - |
|
941 |
|
| - |
|
942 |
elif cmd == 'getSnapdealItem':
|
| - |
|
943 |
if len(args) != 1:
|
| - |
|
944 |
print 'getSnapdealItem requires 1 args'
|
| - |
|
945 |
sys.exit(1)
|
| - |
|
946 |
pp.pprint(client.getSnapdealItem(eval(args[0]),))
|
| - |
|
947 |
|
| - |
|
948 |
elif cmd == 'getSnapdealItemDetails':
|
| - |
|
949 |
if len(args) != 1:
|
| - |
|
950 |
print 'getSnapdealItemDetails requires 1 args'
|
| - |
|
951 |
sys.exit(1)
|
| - |
|
952 |
pp.pprint(client.getSnapdealItemDetails(eval(args[0]),))
|
| - |
|
953 |
|
| - |
|
954 |
elif cmd == 'getAllSnapdealItems':
|
| - |
|
955 |
if len(args) != 0:
|
| - |
|
956 |
print 'getAllSnapdealItems requires 0 args'
|
| - |
|
957 |
sys.exit(1)
|
| - |
|
958 |
pp.pprint(client.getAllSnapdealItems())
|
| - |
|
959 |
|
| - |
|
960 |
elif cmd == 'getSnapdealItems':
|
| - |
|
961 |
if len(args) != 2:
|
| - |
|
962 |
print 'getSnapdealItems requires 2 args'
|
| - |
|
963 |
sys.exit(1)
|
| - |
|
964 |
pp.pprint(client.getSnapdealItems(eval(args[0]),eval(args[1]),))
|
| - |
|
965 |
|
| - |
|
966 |
elif cmd == 'searchSnapdealItems':
|
| - |
|
967 |
if len(args) != 3:
|
| - |
|
968 |
print 'searchSnapdealItems requires 3 args'
|
| - |
|
969 |
sys.exit(1)
|
| - |
|
970 |
pp.pprint(client.searchSnapdealItems(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| - |
|
971 |
|
| - |
|
972 |
elif cmd == 'getCountForSnapdealItems':
|
| - |
|
973 |
if len(args) != 0:
|
| - |
|
974 |
print 'getCountForSnapdealItems requires 0 args'
|
| - |
|
975 |
sys.exit(1)
|
| - |
|
976 |
pp.pprint(client.getCountForSnapdealItems())
|
| - |
|
977 |
|
| - |
|
978 |
elif cmd == 'getSnapdealSearchResultCount':
|
| - |
|
979 |
if len(args) != 1:
|
| - |
|
980 |
print 'getSnapdealSearchResultCount requires 1 args'
|
| - |
|
981 |
sys.exit(1)
|
| - |
|
982 |
pp.pprint(client.getSnapdealSearchResultCount(eval(args[0]),))
|
| - |
|
983 |
|
| 823 |
else:
|
984 |
else:
|
| 824 |
print 'Unrecognized method %s' % cmd
|
985 |
print 'Unrecognized method %s' % cmd
|
| 825 |
sys.exit(1)
|
986 |
sys.exit(1)
|
| 826 |
|
987 |
|
| 827 |
transport.close()
|
988 |
transport.close()
|