Hello,
I have the following error after siginin in:
The remote server returned an error: (401) Unauthorized.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
length: 6
stack trace: at System.Net.HttpWebRequest.GetResponse() at test_oauth_test.RetriveContacts() in C:\Users\shady.yahia\documents\visual studio 2010\Projects\Floosy\Floosy\yahoo-oauth\oauth-test.aspx.cs:line 382
status: ProtocolError
Status Code: (401) Unauthorized
Status Description: Authorization Required
source: System
headers: 0: 0
headers: 1: chunked
headers: 2: keep-alive
headers: 3: private
headers: 4: application/xml
headers: 5: Wed, 24 Nov 2010 15:34:07 GMT
headers: 6: YTS/1.19.5
headers: 7: HTTP/1.1 r3.ycpi.mud.yahoo.net (YahooTrafficServer/1.19.5 [cMsSf ])
headers: 8: OAuth oauth_problem="timestamp_refused", realm="yahooapis.com" I generate the Time stamp with this function:
public virtual string GenerateTimeStamp()
{
// Default implementation of UNIX time of the current UTC time
TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
string timeStamp = ts.TotalSeconds.ToString();
timeStamp = timeStamp.Substring(0, timeStamp.IndexOf("."));
return timeStamp;
}
-my production server zone is US & Canada time zone (-8 hrs from GMT)
-and I used this demo to get email addresses
http://www.codeproject.com/KB/aspnet/yahoo...act-reader.aspxCould you help?
Thanks