Subversion Repositories SmartDukaan

Rev

Rev 675 | Rev 732 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 675 Rev 716
Line 22... Line 22...
22
  print ''
22
  print ''
23
  print 'Functions:'
23
  print 'Functions:'
24
  print '  Provider getProvider(i64 providerId)'
24
  print '  Provider getProvider(i64 providerId)'
25
  print '   getAllProviders()'
25
  print '   getAllProviders()'
26
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
26
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
27
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, string item_id)'
27
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id)'
28
  print '  string getEmptyAWB(i64 providerId)'
28
  print '  string getEmptyAWB(i64 providerId)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
30
  print ''
30
  print ''
31
  sys.exit(0)
31
  sys.exit(0)
32
 
32
 
Line 95... Line 95...
95
 
95
 
96
elif cmd == 'getLogisticsInfo':
96
elif cmd == 'getLogisticsInfo':
97
  if len(args) != 2:
97
  if len(args) != 2:
98
    print 'getLogisticsInfo requires 2 args'
98
    print 'getLogisticsInfo requires 2 args'
99
    sys.exit(1)
99
    sys.exit(1)
100
  pp.pprint(client.getLogisticsInfo(args[0],args[1],))
100
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),))
101
 
101
 
102
elif cmd == 'getEmptyAWB':
102
elif cmd == 'getEmptyAWB':
103
  if len(args) != 1:
103
  if len(args) != 1:
104
    print 'getEmptyAWB requires 1 args'
104
    print 'getEmptyAWB requires 1 args'
105
    sys.exit(1)
105
    sys.exit(1)