我自己做了很多工作,但我无法通过API请求获得此响应。
This request requires HTTP authentication (message=Exception authenticating OAuth; errorCode=003200; statusCode=401).
我可以从getInstitutionDetails获得机构登录信息,没有任何问题。因此,我不认为签署oauth saml是一个问题。
这是我通过CURLOPT_POSTFIELDS
发送的请求正文<InstitutionLogin xmlns="http://schema.intuit.com/platform/fdatafeed/institutionlogin/v1">
<credentials>
<credential>
<name>Banking Password</name>
<value>anyvalue</value>
</credential>
<credential>
<name>Banking Userid</name>
<value>direct</value>
</credential>
</credentials>
</InstitutionLogin>
这是我的请求标题(从curl_getinfo中自动换行)。
[request_header] => POST /v1/institutions/100000/logins?
Host=financialdatafeed.platform.intuit.com&
oauth_consumer_key=qyprdQUbzhOiNg0S35hfY3xzlgP7Zl&
oauth_nonce=ZBa3v&
oauth_signature=%2FsLxYpLoO9CtmboCFPSi35t6Yj8%3D&
oauth_signature_method=HMAC-SHA1&
oauth_timestamp=1377217387&
oauth_token=qyprdLxfhfigkfOHMz4yyYwzgf2JyGF3Sk8TOlq8nO0akC23&
oauth_version=1.0 HTTP/1.1
Host: financialdatafeed.platform.intuit.com
Accept: */*
Content-Type: application/xml
Content-length: 308
Accept-Encoding: gzip,deflate
Authorization: OAuth oauth_version="1.0",
oauth_nonce="ZBa3v",
oauth_signature_method="HMAC-SHA1",
oauth_consumer_key="qyprdQUbzhOiNg0S35hfY3xzlgP7Zl",
oauth_token="qyprdLxfhfigkfOHMz4yyYwzgf2JyGF3Sk8TOlq8nO0akC23",
oauth_timestamp="1377217387",
oauth_signature="/sLxYpLoO9CtmboCFPSi35t6Yj8="
User-Agent: Jakarta Commons-HttpClient/3.1