问题描述
我正在尝试使用 Yodlee REST API 访问我们的私有区域并添加新用户.我正在使用我在
调用的 register3 apihttps://sdkint11.yodlee.com/yodsoap/srest/private-XXX/v1.0/jsonsdk/UserRegistration/register3
虚拟用户凭据如下:
{ cobSessionToken: '10072014_0:58f1876ccc25848a712fade98d9d31c067cb5b4d322094845b4f8359ee59dc2ba01f1e94cfc163d508cfc163d504b8fc163d504b8fc16d504d8f28d4b8d2f84d8d308d2f28d9d31c用户凭据:{ 登录名: 'AAAAAA',密码:'BBBBBB',objectInstanceType: 'com.yodlee.ext.login.PasswordCredentials' },用户资料:{ 电子邮件地址:'ABC@DEF.co.uk' } }
为了隐私,我对凭据进行了一些更改,现在我只使用了建立新用户所需的 5 个必需参数.
我得到的(不是很有帮助)错误是
{"errorOccurred":"true","exceptionType":"异常发生","referenceCode":"_e37c33ab-b59c-4fbc-ab6a-1a2b83f5784f"}
这对调试没有多大帮助.
有人有什么想法吗?
您以对象的形式传递参数,Yodlee 不会接受这些参数.您必须严格遵守文档中的表述方式.
所以你的请求参数应该看起来像 -
cobSessionToken: '10072014_0:58f1876ccc220950774a0ea32',userCredentials.loginName:'AAAAAA', userCredentials.password:'BBBBBB'
请尝试建议的更改.
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
which doesn't help debugging much.
Anyone any ideas?
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 -
Please try out the suggested changes.
这篇关于Yodlee REST API - 添加新用户时出错“发生异常"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!