Search the web
Sign In
New User? Sign Up
ydn-dotnet · CLOSED: Yahoo! .NET Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
403 Error when retrieving Contact Book   Message List  
Reply | Forward Message #242 of 263 |
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.




Wed Aug 6, 2008 7:18 am

farid_974
Offline Offline
Send Email Send Email

Forward
Message #242 of 263 |
Expand Messages Author Sort by Date

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...
farid_974
Offline Send Email
Aug 6, 2008
7:18 am

Hi there, When did you get the error, which statement caused this error? ... From: farid_974 <farid_974@...> To: ydn-dotnet@yahoogroups.com Sent:...
James Maclory
jamesmaclory
Offline Send Email
Aug 6, 2008
9:02 am

It's this statement, all others are working fine... XmlDocument doc = auth.GetAuthenticatedServiceXmlDocu ment(address) ; Thanks for your help :) ... ...
farid_974
Offline Send Email
Aug 6, 2008
10:00 am

so any solution for this? ... order ... acces....
basilbanbouk
Offline Send Email
Feb 9, 2009
10:02 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help