我正在尝试使用Yodlee REST API中的executeUserSearchRequest
来获取用户事务,
$postdata = array(
'cobSessionToken' => $cobSessionToken,
'userSessionToken' => $userSessionToken,
'transactionSearchRequest.containerType' => 'all',
'transactionSearchRequest.higherFetchLimit' => 10,
'transactionSearchRequest.lowerFetchLimit' => 1,
'transactionSearchRequest.resultRange.startNumber' => 1,
'transactionSearchRequest.resultRange.endNumber' => 10,
'transactionSearchRequest.searchClients.clientId' => 1,
'transactionSearchRequest.searchClients.clientName' =>'DataSearchService',
'transactionSearchRequest.ignoreUserInput' => true,
'transactionSearchRequest.searchFilter.transactionSplitType' => 'A');
我收到此错误回复:
{ “errorOccurred”: “真”, “exceptionType”:“异常 发生”, “referenceCode”: “_ 8e50aecd-edd7-456f-acd5-d2d4236e2da2”}
它没有指定什么错误或异常。
出了什么问题,我该怎么做才能使用Yodlee REST API来获取用户事务?
答案 0 :(得分:1)
请更正您传递给splitType 'transactionSearchRequest.searchFilter.transactionSplitType' => 'A');
应该是'ALL_TRANSACTION',它会正常工作。
答案 1 :(得分:1)
我终于得到了它的工作,它的ALL_TRANSACTION。但是通过将所有参数值括在单引号中来解决问题。像这样:
$postdata = array(
'cobSessionToken' => $cobSessionToken,
'userSessionToken' => $userSessionToken,
'transactionSearchRequest.containerType' => 'all',
'transactionSearchRequest.higherFetchLimit' => '10',
'transactionSearchRequest.lowerFetchLimit' => '1',
'transactionSearchRequest.resultRange.startNumber' => '1',
'transactionSearchRequest.resultRange.endNumber' => '10',
'transactionSearchRequest.searchClients.clientId' => '1',
'transactionSearchRequest.searchClients.clientName' =>'DataSearchService',
'transactionSearchRequest.ignoreUserInput' => 'true',
'transactionSearchRequest.searchFilter.transactionSplitType' => 'ALL_TRANSACTION',
顺便说一下感谢Apoorv
);