Hi everyone,
Is there any online web service that will store audio and photo online that i
can now retrieve and use in my application.
I will also need to know the best way to make a web site chat sysytem i.e
using xml to store the chat
or using a sql database.
Hi everyone,
We're going to be moving this group to the new Yahoo! Developer Network
forums. This group will be closing at the end of March.
The forums will make it easier and faster to get answers, as you will
be able to search for answers from other related groups, too. Many of
our questions have been related to APIs such as Mail or authentication
and the forums for those will be neatly in one place.
The new .NET Development Forum is at:
http://developer.yahoo.net/forum/index.php?showforum=72
Please post all future questions and comments there!
Sincerely,
Tomi B.
I am using the same page to authenticate and retrieve the data, here's
my code:
// Create an instance of Yahoo.Authentication
Authentication auth = new Authentication("myid",
"mysecret");
bool authenticate = true;
// Check if we are returning from login
if (Request.QueryString["token"] != null &&
Request.QueryString["token"].Length > 0)
{
// Make sure the call is valid
if (auth.IsValidSignedUrl(Request.Url) == true)
{
// Save the user token. It is valid for two weeks
auth.Token = Request.QueryString["token"];
auth.UpdateCredentials();
authenticate = false;
// Call web service and output result into a DIV
tag
if (auth.IsCredentialed)
{
string service =
string.Format("http://address.yahooapis.com/v1/searchContacts?
appid={0}&WSSID={1}", auth.ApplicationId, auth.WssId);
// THIS LINE IS GIVING 403 Forbidden ERROR
Div1.InnerHtml =
auth.GetAuthenticatedServiceString(new System.Uri(service));
}
else
{
authenticate = true;
}
}
}
if (authenticate)
{
// Redirect the user to the use sign-in page
Response.Redirect(auth.GetUserLogOnAddress().ToString());
}
any ideas why I am not being able to retrieve the list of contacts,
although my appID has access to the address book
But the problem is that "GetAuthenticatedServiceString" works.
What "GetAuthenticatedServiceString" return is like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE search-response SYSTEM
"http://l.yimg.com/us.yimg.com/lib/pim/r/abook/xml/2/pheasant.dtd"><search-respo\
nse><contact
cid="1"><nickname fid="2">lan</nickname><email
fid="3">yourlandnet@...</email><name
fid="1"><first>alan</first><last>lan</last></name></contact></search-response><!\
--
web233.address.pim.mud.yahoo.com uncompressed/chunked Fri Jan 23
17:38:39 PST 2009 -->
I think there is something wrong with DTD in the XML, because Ican't
load above XML string to XmlDocument, but it's successful if I only
load the content in <search-response> node.
Thanks.
--- In ydn-dotnet@yahoogroups.com, "docbliny" <tomi@...> wrote:
>
> > "GetAuthenticatedServiceString" works well, it can return string what
> > The remote server returned an error: (404) Not Found.
> >
> > What happens? Anyone can help me? Thanks~
>
> The server is returning a 404 error code which means that the URL you
> are using is incorrect (page not found). Check the address for
> correctness/typos and try again.
>
> //Tomi B.
>
> "GetAuthenticatedServiceString" works well, it can return string what
> The remote server returned an error: (404) Not Found.
>
> What happens? Anyone can help me? Thanks~
The server is returning a 404 error code which means that the URL you
are using is incorrect (page not found). Check the address for
correctness/typos and try again.
//Tomi B.
I am using Asp.net 2.0.
There are several methods in Authentication.dll
"GetAuthenticatedServiceString" works well, it can return string what
I want.
But GetAuthenticatedServiceDataSet and
GetAuthenticatedServiceXmlDocument failed. It Always happen error:
The remote server returned an error: (404) Not Found.
What happens? Anyone can help me? Thanks~
Hi - I'm trying to use the YUI datasource with a datatable in an
ASP.NET 3.5 MVC application, and am not having much luck. I've set up
the javascript to test out a simple JSON Result from a controller
method called GetArtists():
var myDataSource = new YAHOO.util.DataSource("/Admin/GetArtists");
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
myDataSource.responseSchema = { fields: ["ID", "Name"] };
var myDataTable = new YAHOO.widget.DataTable("basic",
myColumnDefs, myDataSource, { caption: "DataTable Caption" });
This example is a sripped down version of the "Basic Example" example
in the YUI datatable page, and works when I use another datasource
with JSARRAY, so I've isolated the issue to the datasource. My
controller method isn't even getting called and the datatable displays
just "Data error." and I'm wondering if anyone has had any luck
populating a datasource with ASP.NET MVC controller methods?
Thanks, Dennis
Hello friends,
I'm developing an application which is just a clone of yahoo
messenger. It is windows application not a website. I get the
buddylist(user id) for a user who logges in. But my problem is I want
full information about a user. Means user's first name, last name etc.
I got the full address book but in that there is no field of user_id
so that I can't map address book directly to my buddy list.
At the end I want user name using its yahoo user_id. Is there any way
of doing same in a windows application.
Thanks
-Vinit
--- In ydn-dotnet@yahoogroups.com, "betheljt" <betheljt@...> wrote:
>
> I'm working on an application that will display current weather
> information. I'm able to be everything I need from the xml rss feed
> except the picture of current weather conditions (sun, sun with a cloud
> in front of it, etc). The xml doesn't seem to return an image or a url
> to an image. Am I missing something? Can anyone explain how to do
> this?
It looks like the image you're looking for is embedded in the item
description element:
<description><![CDATA[
<img src="http://l.yimg.com/us.yimg.com/i/us/we/52/33.gif"/><br />
<b>Current Conditions:</b><br />
Fair, 63 F<BR />
<BR /><b>Forecast:</b><BR />
Sun - Partly Cloudy. High: 69 Low: 57<br />
Mon - Partly Cloudy. High: 77 Low: 57<br />
<br />
<a
href="http://us.rd.yahoo.com/dailynews/rss/weather/Sunnyvale__CA/*http://weather\
.yahoo.com/forecast/USCA1116_f.html">Full
Forecast at Yahoo! Weather</a><BR/>
(provided by The Weather Channel)<br/>
]]></description>
If your code peeks inside the <description> contents, you should be
able to pluck out the first image inside.
Brian Cantoni
YDN Engineering
Hi there!
I am programming a client application wich will use yahoo weather API
. My main problem now is to find a way to get the yahoo location id
based in a town name. I will get the town name from the ip of the
local machine, and from there i pretend to know wich is the weather
forecast ...But i don't know how to do that . I've found a way of
doing that for UK, but not for any country I choose ...
Has anyone had the same problem ? Please, share your solution, or give
me some advice in order to proceed :)
Thanks again,
Ivan Frias
I'm working on an application that will display current weather
information. I'm able to be everything I need from the xml rss feed
except the picture of current weather conditions (sun, sun with a cloud
in front of it, etc). The xml doesn't seem to return an image or a url
to an image. Am I missing something? Can anyone explain how to do
this?
Thanks....
It's this statement, all others are working fine...
XmlDocument doc =
auth.GetAuthenticatedServiceXmlDocu ment(address) ;
Thanks for your help :)
--- In ydn-dotnet@yahoogroups.com, James Maclory <jamesmaclory@...> wrote:
>
> 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.GetAuthenticatedServiceXmlDocu ment(address) ;
>
> }
> else
> {
> Response.Write( "Not authenticated" );
> }
>
> Please, help me to do this because i don't know why i don't have acces.
>
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...
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.
--- In ydn-dotnet@yahoogroups.com, James Maclory <jamesmaclory@...>
wrote:
>
> yeah,u can view the IVR.
>
>
>
> ----- Original Message ----
> From: gpaslanis <gaslanis@...>
> To: ydn-dotnet@yahoogroups.com
> Sent: Friday, August 1, 2008 1:06:37 AM
> Subject: [ydn-dotnet] Javascript reformat document?
>
>
> Hello all, I posted this in the YUI group but no response. Maybe it
> belongs here:
>
> Unfortunately we are forced to use VWD 2008 Express that apparently
> does not reformat JavaScript. Already tried
> http://javascript. about.com/ library/blformat .htm, but looking
for
> something better. JSLint does a great job analyzing the code, but
does
> anyone know of a utility to reformat/indent JavaScript?
>
> Any help appreciated, thanks!
>
Thanks for the reply, but we are not looking for another IDE.
Possibly a webservice call or utility just to reformat/indent the
javascript and paste back into VWD2008.
----- Original Message ---- From: gpaslanis <gaslanis@...> To: ydn-dotnet@yahoogroups.com Sent: Friday, August 1, 2008 1:06:37 AM Subject: [ydn-dotnet] Javascript reformat document?
Hello all, I posted this in the YUI group but no response. Maybe it
belongs here:
Unfortunately we are forced to use VWD 2008 Express that apparently
does not reformat JavaScript. Already tried http://javascript. about.com/ library/blformat .htm, but looking for
something better. JSLint does a great job analyzing the code, but does
anyone know of a utility to reformat/indent JavaScript?
Hi James,
I don't know much about the IVR. And my question is also not related to
IVR. So can you help me out with my original question.
And if you want any help from my side then let me know in detail.
Hello all, I posted this in the YUI group but no response. Maybe it
belongs here:
Unfortunately we are forced to use VWD 2008 Express that apparently
does not reformat JavaScript. Already tried
http://javascript.about.com/library/blformat.htm, but looking for
something better. JSLint does a great job analyzing the code, but does
anyone know of a utility to reformat/indent JavaScript?
Any help appreciated, thanks!
----- Original Message ---- From: yonghan79 <yonghan79@...> To: ydn-dotnet@yahoogroups.com Sent: Tuesday, July 29, 2008 1:33:39 PM Subject: [ydn-dotnet] Re: Ask how to get yahoo messenger message using vb .net
Hi there, I've create some applications about IVR, which can be used to send message in voice,you can visit these articles: http://www.codeproject.com/KB/aspnet/IVR.aspx http://www.codeproject.com/KB/aspnet/IVRAndFacebook.aspx http://www.codeproject.com/KB/aspnet/IVRAndGoogleCalendar.aspx
----- Original Message ---- From: yonghan79 <yonghan79@...> To: ydn-dotnet@yahoogroups.com Sent: Friday, July 25, 2008 9:55:42 PM Subject: [ydn-dotnet] Ask how to get
yahoo messenger message using vb .net
Hi all, i want to ask how to get message that are sent by my friend
from yahoo messenger by using vb.net.Can someone teach me
please..Thanks a lot..
Hi there, I've read your artilce,I've been working on IVR now,what is your suggestion?
----- Original Message ---- From: Vinit Yadav <vinit1_yadav2@...> To: ydn-dotnet@yahoogroups.com Sent: Saturday, July 26, 2008 3:03:59 AM Subject: [ydn-dotnet] Invisible buddy.
Hello friends.
I'm developing an application that is the exact clone of the Yahoo
Messenger with some added functionality.
In that added functionality I want to show which of the Buddy is
online/Offline/ Invisible.
The online and offline was done and here is the path to get that thing
wokring http://opi.yahoo. com/online? u=userid& m=g&t=2(replace userid by
urs)
But I'm having hard time in finding any way which will let me get the
user's status who is Invisible.
Hello friends.
I'm developing an application that is the exact clone of the Yahoo
Messenger with some added functionality.
In that added functionality I want to show which of the Buddy is
online/Offline/Invisible.
The online and offline was done and here is the path to get that thing
wokring http://opi.yahoo.com/online?u=userid&m=g&t=2(replace userid by
urs)
But I'm having hard time in finding any way which will let me get the
user's status who is Invisible.
I'm using .Net and C# for my application.
Thanks
-Vinit