Hi everyone,
I'm trying to retrieve all email address for the contact book in order
to invite people on my website.
I'm using ASP.NET 2.0, the .NET framework 2.0 and C#
When i'm trying to retrieve the XML, i got an error 403...
Actually i'm just using these code:
Authentication auth = Session["Auth"] as Authentication;
if (Request.QueryString["token"] != null &&
Request.QueryString["token"].Length > 0)
{
if (auth.IsValidSignedUrl(Request.Url) == true)
{
auth.Token = Request.QueryString["token"];
auth.UpdateCredentials();
Response.Write("ok");
}
else
{
Response.Write("error");
}
}
if (auth.IsCredentialed == true)
{
string url =
"http://address.yahooapis.com/v1/searchContacts?format=xml&fields=name,email";
url += "&appid=" + auth.ApplicationId;
url += "&wssid=" + auth.WssId;
Uri address = new Uri(url);
XmlDocument doc =
auth.GetAuthenticatedServiceXmlDocument(address);
}
else
{
Response.Write("Not authenticated");
}
Please, help me to do this because i don't know why i don't have acces.