从getSiteLoginForm获取网站的登录表单后,我尝试添加网站,但我已收到
{ :errorOccurred=>"true", :exceptionType=>"Exception Occurred", :referenceCode=>"_fa9ede97-1792-45ca-b147-005ec4002d33" }
我在(在Rails中)发布的网址是: https://consolidatedsdk.yodlee.com/yodsoap/srest/private-fairshare/v1.0/jsonsdk/SiteAccountManagement/addSiteAccount1
这是POST数据:
cobSessionToken=REDACTED
userSessionToken=REDACTED
siteId=11671
credentialFields.enclosedType=com.yodlee.common.FieldInfoSingle
credentialFields[0][displayName]=User Name
credentialFields[0][fieldType.typeName]=TEXT
credentialFields[0][isEditable]=true
credentialFields[0][name]=LOGIN
credentialFields[0][value]=testuser
credentialFields[0][valueIdentifier]=LOGIN
credentialFields[0][valueMask]=LOGIN_FIELD
credentialFields[1][displayName]=Password
credentialFields[1][fieldType.typeName]=IF_PASSWORD
credentialFields[1][isEditable]=true
credentialFields[1][name]=PASSWORD
credentialFields[1][value]=testpass
credentialFields[1][valueIdentifier]=PASSWORD
credentialFields[1][valueMask]=LOGIN_FIELD
我已经对参数进行了三重检查,它们似乎与documentation匹配。
我有什么遗失的吗?
答案 0 :(得分:0)
查看文档,看起来您的参数格式不匹配。
例如,您有字段credentialFields[0][displayName]
,但在文档中,它被称为credentialFields[0].displayName
。 API是否可能需要此格式的字段?
如果API确实需要credentialFields[0][displayName]
中的字段,则credentialFields.enclosedType
字段遵循相同格式是有意义的。在这种情况下,它应该是credentialFields[enclosedType]
。