如果我的最大范围是500,那么我会得到不同的交易,但是当我使用较小的范围,例如50时,我每次都会得到相同的交易。
首次调用具有以下参数并返回transactionIds 10446436 - 10697817
{'transactionSearchRequest.firstCall': True,
'transactionSearchRequest.searchFilter.transactionSplitType': 'ALL_TRANSACTION',
'userSessionToken': u'08062013_0:7a05db2071f2a15164c45cdec9d2d2edd8a0da26a5d2bd8019d146c1d9b1c5433da9453c2771053f9c1dc0307a7ee59d9249404e63cf47eb49d47ce6e21dacd0',
'transactionSearchRequest.searchFilter.postDateRange.fromDate': '01-01-2014',
'transactionSearchRequest.containerType': 'All',
'transactionSearchRequest.lowerFetchLimit': 1,
'transactionSearchRequest.searchFilter.postDateRange.toDate': '08-01-2014',
'transactionSearchRequest.higherFetchLimit': 50,
'transactionSearchRequest.ignoreUserInput': True,
'transactionSearchRequest.resultRange.endNumber': 50,
'cobSessionToken': u'08062013_0:2621954e206e474058f591a32b0facb7e76d03b0aeb904cc2ed31393072ec787fa14fae81dc425f3b61be70f20e19c7fe9dd29ca1092b2189e00f8a7e6fb9a64',
'transactionSearchRequest.resultRange.startNumber': 1}
下一个调用返回同一组50个事务,它应该只返回之前未返回的6个事务。
{'transactionSearchRequest.firstCall': False,
'transactionSearchRequest.searchFilter.transactionSplitType': 'ALL_TRANSACTION',
'userSessionToken': u'08062013_0:7a05db2071f2a15164c45cdec9d2d2edd8a0da26a5d2bd8019d146c1d9b1c5433da9453c2771053f9c1dc0307a7ee59d9249404e63cf47eb49d47ce6e21dacd0',
'transactionSearchRequest.searchFilter.postDateRange.fromDate': '01-01-2014',
'transactionSearchRequest.containerType': 'All',
'transactionSearchRequest.lowerFetchLimit': 51,
'transactionSearchRequest.searchFilter.postDateRange.toDate': '08-01-2014',
'transactionSearchRequest.higherFetchLimit': 100,
'transactionSearchRequest.ignoreUserInput': True,
'transactionSearchRequest.resultRange.endNumber': 100,
'cobSessionToken': u'08062013_0:2621954e206e474058f591a32b0facb7e76d03b0aeb904cc2ed31393072ec787fa14fae81dc425f3b61be70f20e19c7fe9dd29ca1092b2189e00f8a7e6fb9a64',
'transactionSearchRequest.resultRange.startNumber': 51}
答案 0 :(得分:0)
只有在指定的持续时间内有超过500笔交易时,此方法才有效。
如果你想以块的形式获取事务,那么在调用executeUserSearch之后你将不得不使用getUserTransaction API。