0

Yahoo PHP SDK problem

Hello. I'm trying to query yahoo finance through YQL using the Yahoo PHP SDK and I get the following error. (I removed my consumer key from the debug message)

I'm guessing that I either have problem with credentials or with the timestamp, because of the timestamp_refused error.
But I don't know how to fix it.
I synced my server's time with the time server. (My server resides in Europe/Bucharest)

Please if somebody could help me.
Thank you.


DEBUG - HTTP request details
DEBUG OBJECT - Array
(
[method] => GET
[url] => http://query.yahooapis.com/v1/yql?q=select...2Falltables.env
[code] => 401
[requestHeaders] => Array
(
[0] => Accept: application/json
[1] => Authorization: OAuth realm="yahooapis.com",oauth_version="1.0",oauth_nonce="fd28bc8b0a66b246aa64aadb3e331761",oauth_timestamp="1275978510",oauth_consumer_key="",oauth_signature_method="HMAC-SHA1",oauth_signature=""
)

[requestBody] =>
[responseHeaders] => Array
(
[Date] => Tue, 08 Jun 2010 06:50:08 GMT
[WWW-Authenticate] => OAuth oauth_problem="timestamp_refused", realm="yahooapis.com"
[Vary] => Accept-Encoding
[Content-Type] => application/json
[Cache-Control] => private
[Age] => 0
[Transfer-Encoding] => chunked
[Connection] => keep-alive
[Server] => YTS/1.17.21
)

[responseBody] => {"error":{"lang":"en-US","description":"Please provide valid credentials"}}
)

by
1 Reply
  • Nevemind. It's fixed.
    My server time was out of sync and OAuth doesn't like that :)
    0

Recent Posts

in YQL