我正在尝试了解yodlee开发人员门户。我已经注册并现在开始使用cobrand登录。我试图像他们在文档中那样执行请求。用正确的参数获得cobrand上下文的正确方法是什么?Yodlee cobrand登录不允许成功登录
➜ perceptor git:(develop) http -f POST https://developer.api.yodlee.com/ysl/restserver/v1/cobrand/login cobrandLogin=sbCobxxxxxxxxxx cobrancdPassword=xxxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxxxx
HTTP/1.1 401 Unauthorized
Content-Encoding: gzip
Content-Type: application/json;charset=UTF-8
Date: Sat, 10 Jun 2017 19:44:44 GMT
Server: Unknown
Transfer-Encoding: chunked
Vary: Accept-Encoding
yodlee-ref-id: m1497123885400E4t27g000000NLVYi-1
{
"errorCode": "Y001",
"errorMessage": "loginName and password required",
"referenceCode": "u1497123885399Y4O27X"
}
后来我想也许PARAMS被命名错误,试图改变他们但这确实回来作为一个错误的请求。
➜ perceptor git:(develop) http -f POST
cobrandLogin=sbCobxxxxxxxxxx cobrancdPassword=xxxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxxxx
HTTP/1.1 400 Bad Request
Connection: close
Content-Encoding: gzip
Content-Type: application/json;charset=UTF-8
Date: Sat, 10 Jun 2017 19:45:17 GMT
Server: Unknown
Transfer-Encoding: chunked
Vary: Accept-Encoding
yodlee-ref-id: H1497123917473U4x26Z000000NLJYR-1
{
"errorCode": "Y800",
"errorMessage": "Invalid value for cobrandParam",
"referenceCode": "p1497123917471e4n26B"
}
更新信息
我能得到cobrand登录下面的JSON结构@Krithik咨询工作。
{ "cobrand":
{
"cobrandLogin": "xxxxxxxxxxxxx",
"cobrandPassword": "xxxxxxxxx-xxxxxxxx-xxxxxxxxxx-xxxxxxx",
"locale": "en_US"
}
}
我仍然无法完成用户登录部分。我试图运行这个。用$COBRAND=Authorization: {cobrandSession=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
和json结构。
{
"cobrandName": "Name of the cobrand",
"loginName": "sbMemxxxxxxxxxxxxxxx",
"password": "xxxxxxxxxxxxxxxxxxxx"
}
➜ perception-ai git:(develop) ✗ http POST https://developer.api.yodlee.com/ysl/restserver/v1/user/login $COBRAND < user_login.json -vvv
POST /ysl/restserver/v1/user/login HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Authorization: {cobSession=xxxxxxxxxxxxxxxxxxxxxxxxxx}
Connection: keep-alive
Content-Length: 126
Content-Type: application/json
Host: developer.api.yodlee.com
User-Agent: HTTPie/0.9.6
{
"cobrandName": "Name of the cobrand",
"loginName": "sbMemxxxxxxxxxxxxx",
"password": "xxxxxxxxxxxxxxxxx"
}
HTTP/1.1 401 Unauthorized
Content-Encoding: gzip
Content-Type: application/json;charset=UTF-8
Date: Mon, 12 Jun 2017 21:09:18 GMT
Server: Unknown
Transfer-Encoding: chunked
Vary: Accept-Encoding
yodlee-ref-id: y1497301758768V4x26C000000NLsYs-1
{
"errorCode": "Y001",
"errorMessage": "loginName and password required",
"referenceCode": "w1497301758768O4L26p"
}
更新再次
更改,如下所述用户登录结构将是一个成功的登录。
{
"user":
{
"cobrandName": "Name of the cobrand",
"loginName": "sbMemxxxxxxxxxxxxx",
"password": "xxxxxxxxxxxxxxx"
}
}
这已经帮助了很多Yodlee公司的文件是不是真正完成它似乎说一两件事一个地方和其他地方的另一件事。你能否验证用户登录在我更新的问题中使用了正确的结构? – lumberjacked