6

您能否提供一个 JSON 示例,说明如何为具有 FieldInfoMultiFixed 字段的银行发布 addItemForContentService1。一个例子是 Sallie Mae,内容服务 ID #3805

谢谢

4

1 回答 1

-1

我用python写了这个。将 cobrand_session_token、content_service_id 等一些值替换为实际值:以下大部分内容直接来自此文档


payload = {"cobSessionToken": cobrand_session_token, "userSessionToken":  session["user_session_token"], "contentServiceId": content_service_id, "shareCredentialsWithinSite": True, "startRefreshItemOnAddition": True, "credentialFields.enclosedType": "com.yodlee.common.FieldInfoMultiFixed",\
    "credentialFields[0].valueIdentifier":"LOGIN",\
    "credentialFields[0].displayName":"UserID",\
    "credentialFields[0].isEditable":True,\
    "credentialFields[0].isEscaped":False,\
    "credentialFields[0].name":"LOGIN",\
    "credentialFields[0].helpText":5112,\
    "credentialFields[0].fieldType":"TEXT",\
    "credentialFields[0].valueMask":"LOGIN_FIELD",\
    "credentialFields[0].maxlength":40,\
    "credentialFields[0].size":20,\
    "credentialFields[1].valueIdentifier":"PASSWORD",\
    "credentialFields[1].displayName":"Password",\
    "credentialFields[1].isEditable":True,\
    "credentialFields[1].isEscaped":False,\
    "credentialFields[1].name":"PASSWORD",\
    "credentialFields[1].helpText":4530,\
    "credentialFields[1].fieldType":"IF_PASSWORD",\
    "credentialFields[1].valueMask":"LOGIN_FIELD",\
    "credentialFields[1].maxlength":40,\
    "credentialFields[1].size":20, "credentialFields[0].value":"content_account_username", "credentialFields[1].value":"content_account_password"}
于 2015-04-02T07:37:30.107 回答