| Line 57... |
Line 57... |
| 57 |
print ' i64 addTrackLog(i64 affiliateId, i64 userId, TrackLogType event, string url, string data, i64 addedOn)'
|
57 |
print ' i64 addTrackLog(i64 affiliateId, i64 userId, TrackLogType event, string url, string data, i64 addedOn)'
|
| 58 |
print ' TrackLog getTrackLogById(i64 id)'
|
58 |
print ' TrackLog getTrackLogById(i64 id)'
|
| 59 |
print ' getTrackLogsByAffiliate(i64 affiliateId, i64 startDate, i64 endDate)'
|
59 |
print ' getTrackLogsByAffiliate(i64 affiliateId, i64 startDate, i64 endDate)'
|
| 60 |
print ' getTrackLogsByUser(i64 userId)'
|
60 |
print ' getTrackLogsByUser(i64 userId)'
|
| 61 |
print ' getTrackLogs(i64 userId, string event, string url)'
|
61 |
print ' getTrackLogs(i64 userId, string event, string url)'
|
| 62 |
print ' i64 createCart(i64 userId)'
|
- |
|
| 63 |
print ' Cart getCurrentCart(i64 userId)'
|
62 |
print ' Cart getCurrentCart(i64 userId)'
|
| 64 |
print ' Cart getCart(i64 cartId)'
|
63 |
print ' Cart getCart(i64 cartId)'
|
| 65 |
print ' getCartsByTime(i64 from_time, i64 to_time, CartStatus status)'
|
64 |
print ' getCartsByTime(i64 from_time, i64 to_time, CartStatus status)'
|
| 66 |
print ' string addItemToCart(i64 cartId, i64 itemId, i64 quantity, i64 sourceId)'
|
65 |
print ' string addItemToCart(i64 cartId, i64 itemId, i64 quantity, i64 sourceId)'
|
| 67 |
print ' void deleteItemFromCart(i64 cartId, i64 itemId)'
|
66 |
print ' void deleteItemFromCart(i64 cartId, i64 itemId)'
|
| Line 363... |
Line 362... |
| 363 |
if len(args) != 3:
|
362 |
if len(args) != 3:
|
| 364 |
print 'getTrackLogs requires 3 args'
|
363 |
print 'getTrackLogs requires 3 args'
|
| 365 |
sys.exit(1)
|
364 |
sys.exit(1)
|
| 366 |
pp.pprint(client.getTrackLogs(eval(args[0]),args[1],args[2],))
|
365 |
pp.pprint(client.getTrackLogs(eval(args[0]),args[1],args[2],))
|
| 367 |
|
366 |
|
| 368 |
elif cmd == 'createCart':
|
- |
|
| 369 |
if len(args) != 1:
|
- |
|
| 370 |
print 'createCart requires 1 args'
|
- |
|
| 371 |
sys.exit(1)
|
- |
|
| 372 |
pp.pprint(client.createCart(eval(args[0]),))
|
- |
|
| 373 |
|
- |
|
| 374 |
elif cmd == 'getCurrentCart':
|
367 |
elif cmd == 'getCurrentCart':
|
| 375 |
if len(args) != 1:
|
368 |
if len(args) != 1:
|
| 376 |
print 'getCurrentCart requires 1 args'
|
369 |
print 'getCurrentCart requires 1 args'
|
| 377 |
sys.exit(1)
|
370 |
sys.exit(1)
|
| 378 |
pp.pprint(client.getCurrentCart(eval(args[0]),))
|
371 |
pp.pprint(client.getCurrentCart(eval(args[0]),))
|