我一直在尝试让addSiteAccount1 API端点接受我发送的数据。
根据documentation我已经列出了下面的结构。
我试过的第一个结构使用了一个数组作为当前的credentialsField对象,但是我无法设置credentialFields数组的“enclosedType”...所以这被废弃了,而不是带有数字键的对象。
{
"cobSessionToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"userSessionToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"siteId": 4252,
"credentialFields": {
"0": {
"displayName": "Customer Number(DOB (ddmmyy) followed by unique number)",
"fieldType": {
"typeName": "IF_LOGIN"
},
"name": "LOGIN",
"valueMask": "LOGIN_FIELD",
"isEditable": true,
"valueIdentifier": "LOGIN",
"value": "123456789"
},
"1": {
"displayName": "Security Number",
"fieldType": {
"typeName": "IF_PASSWORD"
},
"name": "PASSWORD",
"valueMask": "LOGIN_FIELD",
"isEditable": true,
"valueIdentifier": "PASSWORD",
"value": "123456789"
},
"2": {
"displayName": "Password",
"fieldType": {
"typeName": "IF_PASSWORD"
},
"name": "PASSWORD1",
"valueMask": "LOGIN_FIELD",
"isEditable": true,
"valueIdentifier": "PASSWORD1",
"value": "password123"
},
"enclosedType": "com.yodlee.common.FieldInfoSingle"
}
}
不幸的是,我只得到了Yodlee的以下回复,但这并没有给予太多帮助。如果有人能看到我出错的地方,我将不胜感激。
{
"errorOccurred": "true",
"exceptionType": "Exception Occurred",
"referenceCode": "_f2d54a4c-f328-418e-b9fd-cec0be18f5e1"
}
提前致谢。