我正在嘗試瞭解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