Yodlee REST API - error adding new user “Exception Occurred”

匆匆过客 提交于 2019-12-13 00:41:05

问题


I am trying to use the Yodlee REST API to access our Private Zone and add a new user. I am using the register3 api which I'm calling at

https://sdkint11.yodlee.com/yodsoap/srest/private-XXX/v1.0/jsonsdk/UserRegistration/register3

The dummy user credentials are as follows:

{ cobSessionToken: '10072014_0:58f1876ccc25848a712fade98d9d31c067cb5b4d322094845b4f8359ee59dc2ba01f1e94cfc9d5bd116d32ff6333f84fd848817b9b20cd9b1e85d50774a0ea32',
  userCredentials: 
   { loginName: 'AAAAAA',
     password: 'BBBBBB',
     objectInstanceType: 'com.yodlee.ext.login.PasswordCredentials' },
  userProfile: { emailAddress: 'ABC@DEF.co.uk' } }

I've changed the credentials a bit for privacy, and for now I'm only using the 5 mandatory arguments required to establish a new user.

The (not very helpful) error I'm getting is

{"errorOccurred":"true","exceptionType":"Exception Occurred","referenceCode":"_e37c33ab-b59c-4fbc-ab6a-1a2b83f5784f"}

which doesn't help debugging much.

Anyone any ideas?


回答1:


You are passing the parameters in form of objects which will not be accepted by Yodlee. You will have to strictly follow the way it's represented in the document.

So your request parameter should look like for example -

 cobSessionToken: '10072014_0:58f1876ccc220950774a0ea32',
  userCredentials.loginName:'AAAAAA', userCredentials.password:'BBBBBB'

Please try out the suggested changes.



来源:https://stackoverflow.com/questions/26744429/yodlee-rest-api-error-adding-new-user-exception-occurred

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!