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 #243 of 263 |
Re: [ydn-dotnet] 403 Error when retrieving Contact Book

Hi there,
When did you get the error, which statement caused this error?

----- Original Message ----
From: farid_974 <farid_974@...>
To: ydn-dotnet@yahoogroups.com
Sent: Wednesday, August 6, 2008 3:18:46 PM
Subject: [ydn-dotnet] 403 Error when retrieving Contact Book

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.QueryStrin g["token" ] != null &&
Request.QueryString ["token"] .Length > 0)
{
if (auth.IsValidSigned Url(Request. Url) == true)
{
auth.Token = Request.QueryString ["token"] ;
auth.UpdateCredenti als();
Response.Write( "ok");
}
else
{
Response.Write( "error");
}
}

if (auth.IsCredentiale d == true)
{
string url =
"http://address. yahooapis. com/v1/searchCon tacts?format= xml&fields= name,email";
url += "&appid=" + auth.ApplicationId;
url += "&wssid=" + auth.WssId;

Uri address = new Uri(url);

XmlDocument doc =
auth.GetAuthenticat edServiceXmlDocu ment(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 9:01 am

jamesmaclory
Offline Offline
Send Email Send Email

Forward
Message #243 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