0

Getting 403 error while trying to access contacts

Hi,

I am getting the 403 forbidden error while trying to retrieve the contacts. Here is how the code looks like.

if (Request.QueryString["token"] != null && Request.QueryString["token"].Length > 0)
{
if (auth.IsValidSignedUrl(Request.Url) == true)
{

auth.Token = Request.QueryString["token"];
auth.UpdateCredentials();
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);
DataSet ds = auth.GetAuthenticatedServiceDataSet(address);

Please let me know what I am doing wrong here.

Thanks in advance

by
1 Reply

Recent Posts

in Contacts