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
Messages 147 - 233 of 263   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#233 From: "Vinit Yadav" <vinit1_yadav2@...>
Date: Fri Jul 25, 2008 7:03 pm
Subject: Invisible buddy.
vinit1_yadav2
Offline Offline
Send Email Send Email
 
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

#232 From: "yonghan79" <yonghan79@...>
Date: Fri Jul 25, 2008 1:55 pm
Subject: Ask how to get yahoo messenger message using vb .net
yonghan79
Offline Offline
Send Email Send Email
 
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..

#231 From: "jamesmaclory" <jamesmaclory@...>
Date: Thu Jul 10, 2008 8:53 am
Subject: If I can use the IVR with YDN?
jamesmaclory
Offline Offline
Send Email Send Email
 
I want to create an application with IVR, but I don't know anything about it, then I only find the article about how to work with Calendar.So anybody can help me to transform it to YDN?

Introduction for the IVR and Google Calendar

Many people have the experience of using the Calendar,it does facilitate our works and lifes.But most of the Calendars are based on text alert, that means you can only get the reminder event in front of your computer.

So I think if the Calendar can remind me by phone.If I want to achieve this idea, I need a Calendar that can provide me APIs, a technology that can make me to call through programming. 

Fortunately,these technologies for this idea have been provided by some company,Google Calendar and IVR(IVR is based on Skype,so your environment must have the Skype installed first).

About the IVR,I've posted some articles to introduce it.You can view them:

www.codeproject.com/kb/aspnet/ivr.aspx
www.codeproject.com/KB/aspnet/IVRAndFacebook.aspx

Or, you can investigate it throught the Google Search,there are lots of article to introduce it.Now, we'll mainly concentrate on the Google Calendar.

Google Calendar allows client applications to view and update calendar events in the form of Google data API ("GData") feeds. Your client application can use the Google Calendar data API to create new events, edit or delete existing events, and query for events that match particular criteria.

There are many possible uses for the Calendar data API. For example, you can create a web front end for your group's calendar that uses Google Calendar as a back end. Or you can generate a public calendar for Google Calendar to display, based on your organization's event database. Or you can search relevant calendars to display a list of upcoming events on those calendars.

How to create Calendar Service

The CalendarService class represents a client connection (with authentication) to a Calendar service. To request a feed using the .NET client library, first instantiate a new CalendarService object and authenticate the user. Then use the Query method to retrieve a CalendarFeed object that contains entries for all of the user's calendars.

You can authenticate the user by WebForm or WinForm,the WebForm is called
AuthSub proxy authentication, and the WinForm is called ClientLogin username/password authentication.

In order to authenticate the applications using the AuthSub login protocol,you must get the Session token.

First,construct a AuthSubRequest URL for your application, make a .NET client library call as follows:
AuthSubUtil.getRequestUrl("http://www.example.com/RetrieveToken",
"http://www.google.com/calendar/feeds/",
false,
true);

The getRequestUrl method takes several parameters :

  • "next" URL ,which is the URL that Google will redirect to after the user logs into their account and grants access;
  • scope ,as determined in the previous section;
  • two Booleans, one to indicate whether the token will be used in registered mode or not, and one to indicate whether the token will later be exchanged for a session token or not.

The above example shows a call in unregistered mode (the first Boolean is false), for a token that will be exchanged for a session token later (the second Boolean is true); adjust the Booleans appropriately for your application.

After the user follows the link to the AuthSub page at Google and logs in, the AuthSub system then redirects the user back to your application, using the "next" URL you provided.

When Google redirects back to your application, the token is appended to the "next" URL as a query parameter. So in the case of the above "next" URL, after the user logs in, Google redirects to a URL like http://www.example.com/RetrieveToken?token=DQAADKEDE. Therefore, the token is accessible as a variable in the ASP page's Request.QueryString object.

The token you initially retrieve is always a one-time use token. You can exchange this token for a session token using the AuthSubSessionToken URL, as described in the AuthSub documentation. Your application can make this exchange using the .NET client library as follows:

Session["sessionToken"] = 
AuthSubUtil.exchangeForSessionToken(Request.QueryString["token"], null);

Now you are ready to use the session token to authenticate requests to the Calendar server by placing the token in the Authorization header.

GAuthSubRequestFactory authFactory = 
new GAuthSubRequestFactory("cl", "CalendarSampleApp");
authFactory.Token = Session["sessionToken"].ToString();
Service service = new Service("cl", authFactory.ApplicationName);
service.RequestFactory = authFactory;

To use ClientLogin, invoke the setUserCredentials method of CalendarService, specifying the ID and password of the user on whose behalf your client is sending the query. For example:

CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
myService.setUserCredentials("jo@...", "mypassword");

You can get a list of a user's calendars by sending an authenticated GET request to the allcalendars feed URL:

http://www.google.com/calendar/feeds/default/allcalendars/full 

You also can query to retrieve a list of calendars that the authentiated user has access to:

http://www.google.com/calendar/feeds/default/owncalendars/full 

After instantiate a new CalendarService object and authenticate the user, then use the Query method to retrieve a CalendarFeed object that contains entries for all of the user's calendars.

// Create a CalenderService and authenticate
CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
/*The parameter applicationName in the constructor of CalendarService is random,
you can enter any name you want.*/
myService.setUserCredentials("jo@...", "mypassword");

CalendarQuery query = new CalendarQuery();
query.Uri = new Uri("http://www.google.com/calendar/feeds/default/allcalendars/full");
CalendarFeed resultFeed = service.Query(query);
Console.WriteLine("Your calendars:\n");
foreach (CalendarEntry entry in resultFeed.Entries)
{
Console.WriteLine(entry.Title.Text + "\n");
}

The CalendarService the key to get the services of Google Calendar,when you finish this,you can get what you want.In the next topic,I will follow that way to get the StartTime of a Calendar Event,and call user using the IVR.

Call user when the event rises up

My idea is first I do a callback to the server side from the client using JavaScript. In the server side, using CalendarService query to retrive the StartTime of the EventEntry from the Calendar Service. Then return the time string to the client, in the client, using the JavaScript method setTimeout to circularly check the returned time with the client time. When they are equal,go back to the server side,construct a IVR object to call user.

This is the html code:

 <head id="Head1" runat="server">
<title>GetGoogleEvent</title>
<script language="javascript" type="text/javascript">

var stopTimmer;//Timeout ID
var strReturn;//The value returned from the server

function ReceiveDateFromServer(valueReturnFromServer)
{
document.getElementById("ServerTime").innerHTML = "DateTime of Server:"
+ valueReturnFromServer;

strReturn = valueReturnFromServer;

//Start the reminder to remind the user about the Calendar Event.
TriggerEvent();
}

function GetServerTime(format)
{
CallBackToServer(format, "");//Send callback to server.
}

function TriggerEvent()
{
//Get the current date with US culture.
var localDate = Date.parse((new Date()).toString("en-US"));
document.getElementById('NowTime').innerHTML = "DateTime of Now:"
+ (new Date()).toString("en-US");

var serverDate = Date.parse(strReturn);
var diff = localDate - serverDate;
//Compare the date returned from server with the client date.
if (diff >= 0)
{
/*If the client is on time,
then clear the Timeout and start the server event to call user.*/

clearTimeout(stopTimmer);

var btnCall = document.getElementById('btnCall');
if (btnCall != null)
{
btnCall.click();//Call the server event to make a call.
}

return false;
}

/*Recurrence,check every 1 second,
until the current time equals the time returned from Calendar.*/
stopTimmer = setTimeout("TriggerEvent()", 1000);
}

</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnStartReminder" runat="server" Text="Start Reminder"
OnClientClick="javascript:GetServerTime('');return false;" />
<br />

<br />
<span id="ServerTime">
DateTime of Now<%= DateTime.Now.ToString("yyyy-MM-dd HHHH:mm:ss") %>
</span>
<br />

<span id="NowTime"></span>

<div style="display:none">
<asp:Button ID="btnCall" runat="server" onclick="CallUser" Text="Button" />
</div>
</div>
</form>
</body>

This is the codebehind:

You'll need the following using statements:

using System.Globalization;
using Google.GData.AccessControl;
using Google.GData.Calendar;
using Google.GData.Client;
using Google.GData.Extensions;

In order to do callback,your class must inherit from the ICallbackEventHandler interface.

public partial class CalendarEvent : System.Web.UI.Page, ICallbackEventHandler
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string strRefrence = Page.ClientScript.GetCallbackEventReference(
this,
"callArgs",
"ReceiveDateFromServer",
"callContext");

string strCallBack = "function CallBackToServer(callArgs, callContext) {"
+ strRefrence + "};";

Page.ClientScript.RegisterClientScriptBlock(
this.GetType(),
"CallBackToServer",
strCallBack,
true);
}

private string eventMessage = String.Empty;

public string GetCallbackResult()
{
DateTimeFormatInfo myDTFormatInfo =
new CultureInfo("en-US", false).DateTimeFormat;
DateTime eventStartTime = DateTime.Now;

//Create a CalenderService and authenticate
CalendarService calService =
new CalendarService("GoogleCalendarAndIVRSampleApp");

calService.setUserCredentials("userid@...", "password");

string feedUri =
"http://www.google.com/calendar/feeds/userid@.../private/full";
//Get the Calendar Event you wanted.
Google.GData.Calendar.EventQuery eventQuery =
new Google.GData.Calendar.EventQuery(feedUri);
//This is the title of your wanted event.
eventQuery.Query = "NewEvent of mine";
EventFeed resultEventFeed = calService.Query(eventQuery);

Google.GData.Calendar.EventEntry myEventEntry =
(Google.GData.Calendar.EventEntry)resultEventFeed.Entries[0];
//If you want to remind the user when the event starts,you can do like this:
eventStartTime = myEventEntry.Times[0].StartTime;

//And get the summary of the event.
eventMessage = myEventEntry.Summary.Text;
//Of cource,you can get the where,etc.

return eventStartTime.ToString("F", myDTFormatInfo);
}

public void RaiseCallbackEvent(string eventArgument)
{
//You can write some useful code here.
}

protected void CallUser(object sender, EventArgs e)
{
//Call user
VoicentIVR callUserByIVR = new VoicentIVR("localhost", 1982);
callUserByIVR.CallText("User's phone", eventMessage, true);
}
}

The class VoicentIVR is contained in the solution in the ZIP file for downloaded.

Btw,my environment is VS2008,but I don't use the features of .NET Framework 3.5, so I guess these codes can also work fine in VS2005.

Points of Interest

IVR,Google Calendar,Skype

History

IVR introduce

IVR Starter



#230 From: "porsche912restoration" <peterson.leif@...>
Date: Tue Jul 8, 2008 9:06 am
Subject: Minimum number of days for a WebRequest, mixed dates in mutliple stocks
porsche912re...
Offline Offline
Send Email Send Email
 
I am not having any difficulty downloading, say, 1 year of data for a
given stock.  However, if I want to update my records using only
several days e.g:

"http://table.finance.yahoo.com/table.csv?s=REO&a=6&b=8&c=2008&d=7&e=8&f=2008&g=\
d&ignore=.csv"

an exception is thrown which is reported as a 404 error.  Is there any
limitation to the min number of days in a download?  Is there a
workaround to this?

Last, the contiguous list of dates can be jagged over different
equities.  I suppose if e.g. the Brazilian or Singapore markets are
closed for a national holiday, then those days would be missing in
indices or stock traded in these markets.  What is the consensus
method for ensuring holes in dates stay intact in the final data used
- this can get expensive computationally so efficient code is a must.
  thx - lep

#229 From: "docbliny" <tomi@...>
Date: Mon Jul 7, 2008 4:42 pm
Subject: Re: A development environment
docbliny
Online Now Online Now
Send Email Send Email
 
Hi Simon,

The Yahoo! APIs are are basically just web requests, so depending on
your needs and preferences you can use any development environment.
Since you're posting in the .NET group, I'm assuming that is what you
want to use. Microsoft Visual Studio is the usual IDE people use
for .NET development. It'll work great for both client and web (ASP.NET)
applications.

If you give a little more details on what you want to accomplish I
might be able to give a better answer.

//Tomi B.

--- In ydn-dotnet@yahoogroups.com, "goodyearsimon" <yahoo@...> wrote:
>
> Evening all...
>
> I'm clearly missing something here, so my apologies for the
simplistic
> question.
>
> I can't see how I would go about setting up a development environment
> on my local machine using the Yahoo APIs.
>
> Any pointers or indeed instructions would be greatly appreciated -
I'm
> sure I'm just missing one little thing!
>
> Thanks,
> Simon
>

#228 From: "goodyearsimon" <yahoo@...>
Date: Mon Jun 30, 2008 9:56 pm
Subject: A development environment
goodyearsimon
Offline Offline
Send Email Send Email
 
Evening all...

I'm clearly missing something here, so my apologies for the simplistic
question.

I can't see how I would go about setting up a development environment
on my local machine using the Yahoo APIs.

Any pointers or indeed instructions would be greatly appreciated - I'm
sure I'm just missing one little thing!

Thanks,
Simon

#227 From: "docbliny" <tomi@...>
Date: Mon Jun 9, 2008 4:39 pm
Subject: Re: The remote server returned an error: (403) Forbidden.
docbliny
Online Now Online Now
Send Email Send Email
 
--- In ydn-dotnet@yahoogroups.com, "vijay.pothireddy"
<vijay.pothireddy@...> wrote:
>
> Hi
> I am trying to use Adress Book API,
> i am getting The remote server returned an error: (403) Forbidden.
> cansome help here.

Hi Vijay,

I haven't used the Address Book API myself, but looking at the
documentation, I would suggest you double-check the authentication
being done before sending the request and the data sent when making the
request to the API. Make sure the application ID used has access to the
address book API and that when you test as a user you allow access to
the data. Also verify the actual URL you are calling on the API ends up
getting constructed correctly.

Docs on the errors reported by the API:
http://developer.yahoo.com/addressbook/guide/ErrorReporting.html

You might want to ask in the group for the Address Book if this doesn't
resolve the issue:
http://tech.groups.yahoo.com/group/ydn-addressbook/

//Tomi B.

#226 From: "vijay.pothireddy" <vijay.pothireddy@...>
Date: Sat Jun 7, 2008 5:42 am
Subject: The remote server returned an error: (403) Forbidden.
vijay.pothir...
Offline Offline
Send Email Send Email
 
Hi
I am trying to use Adress Book API,
i am getting The remote server returned an error: (403) Forbidden.
cansome help here.

below is the code snippet i am using

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Net;
using System.Text;
using System.IO;
public partial class sendinviteyahoo : System.Web.UI.Page
{
     private string _userAgent = "BBAuth .NET";
     private int _httpTimeout = 10 * 1000;
     private string _cookies = "";
     private string _wssId = "";
     private System.Net.IWebProxy _proxy = null;

     protected void Page_Load(object sender, EventArgs e)
     {
         bool success = false;


         // Retrieve this user's authentication object we've stored in
the session state
         Yahoo.Authentication auth = Session["Auth"] as
Yahoo.Authentication;

         if (auth == null)
         {
             // We have a problem with the current session, abandon and
retry
             Session.Abandon();
             Response.Write("Error in connecting in to Yahoo .... ");
         }

         // 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)
             {
                 success = true;

                 // Save the user token. It is valid for two weeks
                 auth.Token = Request.QueryString["token"];
             }
         }

         // Redirect if we succeeded
         if (success == true)
         {
            Uri address = new
Uri("http://address.yahooapis.com/v1/searchContacts");
            System.UriBuilder fullAddress;

            if (auth.Token.Length == 0)
            {
               // throw new
Yahoo.AuthenticationException(Properties.Resources.ErrorTokenNotSet,
AuthenticationErrorCode.TokenInvalid);
            }
            else if (auth.Cookies.Length == 0)
            {
              //  throw new
Yahoo.AuthenticationException(Properties.Resources.ErrorCookieNotSet,
AuthenticationErrorCode.Other);
            }
            else if (auth.WssId.Length == 0)
            {
               // throw new
Yahoo.AuthenticationException(Properties.Resources.ErrorWssIdNotSet,
AuthenticationErrorCode.Other);
            }

            // Check if user is credentialed
            if (auth.IsCredentialed == false)
            {
                // Attempt to update credentials
                auth.UpdateCredentials();
            }

            fullAddress = new UriBuilder(address);
            fullAddress.Query =
AppendQuery(fullAddress.Query,"format=xml&fields=name&appid=" +
System.Web.HttpUtility.UrlEncode(auth.ApplicationId)
                            + "&WSSID=" +
System.Web.HttpUtility.UrlEncode(auth.WssId));

            // Make an authenticated call the given web service
            System.IO.Stream dataStream =
GetServiceStream(fullAddress.Uri, true);
         }
         else
         {
             Response.Write("Error occured while logging in to the Yahoo");
         }
     }
     private static string AppendQuery(string currentQuery, string
newQuery)
     {
         string result;

         if (currentQuery != null && currentQuery.Length > 1)
         {
             // Remove the starting ?
             if (currentQuery.Substring(0, 1) == "?")
             {
                 result = currentQuery.Substring(1) + "&" + newQuery;
             }
             else
             {
                 result = currentQuery + "&" + newQuery;
             }
         }
         else
         {
             result = newQuery;
         }

         return result;
     }
     public virtual System.IO.Stream GetServiceStream(System.Uri
wsAddress, bool setCookies)
     {
         System.Net.HttpWebRequest request = null;
         System.Net.HttpWebResponse response = null;
         System.IO.Stream result = null;

         if (wsAddress == null)
         {
             throw new ArgumentNullException("wsAddress");
         }

         // Create and initialize the web request
         request = System.Net.WebRequest.Create(wsAddress) as
System.Net.HttpWebRequest;

         request.UserAgent = _userAgent;
         request.KeepAlive = false;
         request.Timeout = _httpTimeout;
         if (setCookies == true)
         {
             if (_cookies.Length != 0)
             {
                 request.CookieContainer = new
System.Net.CookieContainer();
                 request.CookieContainer.SetCookies(new
System.Uri(wsAddress.AbsoluteUri), _cookies);
             }
         }
         if (_proxy != null) { request.Proxy = _proxy; }

         response = request.GetResponse() as System.Net.HttpWebResponse;

         if (request.HaveResponse == true && response != null)
         {
             result = response.GetResponseStream();
         }

         return result;
     }
}

#202 From: "calexander532" <calexander532@...>
Date: Tue May 13, 2008 12:58 am
Subject: Re: How does the Yahoo IM API compare?
calexander532
Offline Offline
Send Email Send Email
 
Thanks docbliny for the reply.  I tried that group first, but it
appears to be down for maintenance:

        "Postings to the Messenger Yahoo! Group have been temporarily
disabled while we make some changes. You may still browse all
existing postings.Thanks for your consideration."

But it appears that you are correct.  I got a reply back from Yahoo
Messenger Help and I must say for someone to say your SOL, they sure
did say it nice.  Here's the reply that I got back.

******************START Yahoo's Reply****************************
Thank you for writing to Yahoo! Messenger.

We understand you wish to have more information regarding a
development API for Yahoo! Messenger.

I'm sorry, but the feature that you're requesting is not available...
yet!

First of all, thanks for taking the time to ask about it or suggest
it! (And I'm not just saying that!). It is possible that the feature
you have mentioned may be included in a future release of Yahoo!
Messenger. It is through user comments and feedback that Yahoo! is
able to continue to make improvements. We always have something on
the drawing board, and many of our best features have been suggested
directly by users like you.

Please don't hesitate to give me more feedback and suggestions. I
will definitely forward them to our development team for further
consideration. A great time to make suggestions is during any
Messenger Beta period. During this time, the product team is
extremely involved in fine tuning and adjusting the Messenger client.

You will see the notification of a Beta period on the Messenger
Homepage at http://messenger.yahoo.com.

Thank you again for contacting Yahoo! Messenger.

Regards,

Kyle

Yahoo! Messenger Customer Care
******************END Yahoo's Reply****************************

I guess, at least for now, I'll check out Windows Messenger's API,
Google Talk, Meebo and Jabber to see if any of those offer anything
that will meet my needs.

Thanks again for the info,
Chad

--- In ydn-dotnet@yahoogroups.com, "docbliny" <tomi@...> wrote:
>
> Chad,
>
> There currently isn't a C# API for Yahoo! Messenger and I'm not
sure
> if Yahoo! offers what you are looking for. I'd ask in the messenger
> group just in case:
> http://tech.groups.yahoo.com/group/ydn-messenger/
>
> //TB
>
> --- In ydn-dotnet@yahoogroups.com, "calexander532"
> <calexander532@> wrote:
> >
> > I'm looking for an IM component to replace our existing IM
> component,
> > for my company's web site. I'm trying to figure out if Yahoo
> > will work. The web site hosts different automotive stores and we
> need a
> > replacement IM component that the sales reps at each store can
use
> to
> > chat with each other.
> >
> > What are the limits of using Yahoo, and how does it compare to
> Windows
> > Messenger's API, Google Talk and Meebo's IM API? Our site is now
a
> > coldfusion website and will be converted over to .net in the next
6-
> 12
> > months. So we are really looking for a C#.NET component.
> >
> > How does using the Yahoo IM API work, what are the associated
cost
> for
> > a web site to use it and what are the limitations for using Yahoo?
> >
> > Thanks,
> > Chad
> >
>

#201 From: "docbliny" <tomi@...>
Date: Mon May 12, 2008 4:47 pm
Subject: Re: Authentication api ???
docbliny
Online Now Online Now
Send Email Send Email
 
Sudeep,

Unfortunately not. The closest thing is BBAuth, but that is for browser
(web) applications. The Flickr authentication API is the closest to
desktop application authentication currently, but only for Flickr.

//TB

--- In ydn-dotnet@yahoogroups.com, "sudeep_kaul" <sudeep_kaul@...>
wrote:
>
> Is there any api that allows a user in my windows application to
verify
> user's Yahoo credentials ?
>

#200 From: "docbliny" <tomi@...>
Date: Mon May 12, 2008 4:46 pm
Subject: Re: How does the Yahoo IM API compare?
docbliny
Online Now Online Now
Send Email Send Email
 
Chad,

There currently isn't a C# API for Yahoo! Messenger and I'm not sure
if Yahoo! offers what you are looking for. I'd ask in the messenger
group just in case:
http://tech.groups.yahoo.com/group/ydn-messenger/

//TB

--- In ydn-dotnet@yahoogroups.com, "calexander532"
<calexander532@...> wrote:
>
> I'm looking for an IM component to replace our existing IM
component,
> for my company's web site. I'm trying to figure out if Yahoo
> will work. The web site hosts different automotive stores and we
need a
> replacement IM component that the sales reps at each store can use
to
> chat with each other.
>
> What are the limits of using Yahoo, and how does it compare to
Windows
> Messenger's API, Google Talk and Meebo's IM API? Our site is now a
> coldfusion website and will be converted over to .net in the next 6-
12
> months. So we are really looking for a C#.NET component.
>
> How does using the Yahoo IM API work, what are the associated cost
for
> a web site to use it and what are the limitations for using Yahoo?
>
> Thanks,
> Chad
>

#186 From: "sudeep_kaul" <sudeep_kaul@...>
Date: Fri May 9, 2008 6:06 am
Subject: Authentication api ???
sudeep_kaul
Offline Offline
Send Email Send Email
 
Is there any api that allows a user in my windows application to verify
user's Yahoo credentials ?

#185 From: "calexander532" <calexander532@...>
Date: Thu May 8, 2008 7:19 pm
Subject: How does the Yahoo IM API compare?
calexander532
Offline Offline
Send Email Send Email
 
I'm looking for an IM component to replace our existing IM component,
for my company's web site. I'm trying to figure out if Yahoo
will work. The web site hosts different automotive stores and we need a
replacement IM component that the sales reps at each store can use to
chat with each other.

What are the limits of using Yahoo, and how does it compare to Windows
Messenger's API, Google Talk and Meebo's IM API? Our site is now a
coldfusion website and will be converted over to .net in the next 6-12
months. So we are really looking for a C#.NET component.

How does using the Yahoo IM API work, what are the associated cost for
a web site to use it and what are the limitations for using Yahoo?

Thanks,
Chad

#168 From: "thakurrajiv" <thakurrajiv@...>
Date: Mon Apr 28, 2008 4:35 am
Subject: Finance API
thakurrajiv
Offline Offline
Send Email Send Email
 
I will love to get access to Yahoo finance information about a stock.
I am interested in getting access to Balance sheet, Income statement data.
   Is this API available ?

#167 From: "chawlaashish" <chawlaashish@...>
Date: Fri Apr 25, 2008 1:33 pm
Subject: How to use CredRead and CredWrite in C#
chawlaashish
Offline Offline
Send Email Send Email
 
Hi,
I am running into an issue where I am exposing a webservice to the end
users. Now for authentication I have to load the profile and use
credread and credwrite for authentication.

I am unable to find out some examples to help me understand the
concept. Can someone help me out on this one? Is credread/credwrite
wrapped by the new networkcredential library in .net 2.0 or is it
something else?

thanks
ash

#166 From: "Brendan Vogt" <brendan.vogt@...>
Date: Thu Apr 24, 2008 4:54 pm
Subject: RE: [SPAM] Re: ASP.NET
brcvogt
Offline Offline
Send Email Send Email
 

Hi,

 

There are a couple of the controls that I want to use, namely the menu control, the button, those pop up windows, the tabstrip, etc.

 

Brendan

 


From: ydn-dotnet@yahoogroups.com [mailto:ydn-dotnet@yahoogroups.com] On Behalf Of docbliny
Sent: Thursday, April 24, 2008 6:43 PM
To: ydn-dotnet@yahoogroups.com
Subject: [SPAM][ydn-dotnet] Re: ASP.NET

 

> I am busy with a .NET project. I am still unsure how to use the
> Yahoo API with my .NET code. Most of the controls that I use
> for my ASP.NET application are server controls (and the Yahoo
> API is markup or javascript code)

Can you give a little more detail on what you are doing? Which API(s)
did you want to use?

//TB


#165 From: "docbliny" <tomi@...>
Date: Thu Apr 24, 2008 4:42 pm
Subject: Re: ASP.NET
docbliny
Online Now Online Now
Send Email Send Email
 
> I am busy with a .NET project.  I am still unsure how to use the
> Yahoo API with my .NET code.  Most of the controls that I use
> for my ASP.NET application are server controls (and the Yahoo
> API is markup or javascript code)

Can you give a little more detail on what you are doing? Which API(s)
did you want to use?

//TB

#164 From: "Brendan Vogt" <brendan.vogt@...>
Date: Thu Apr 24, 2008 4:57 am
Subject: ASP.NET
brcvogt
Offline Offline
Send Email Send Email
 

Hi there,

 

I am busy with a .NET project.  I am still unsure how to use the Yahoo API with my .NET code.  Most of the controls that I use for my ASP.NET application are server controls (and the Yahoo API is markup or javascript code), and a typical textbox and button will look something like:

 

<asp:TextBox ID="txtMyTextBox" runat="server" />

 

<asp:Button ID="btnMyButton" runat="server" Text="Search" />

 

Please can someone advise.

 

Thanks

Brendan


#162 From: "tim_hoehn" <tim_hoehn@...>
Date: Thu Apr 17, 2008 9:26 pm
Subject: REST request - how to pass verbatim string literal to WebSearchService?
tim_hoehn
Offline Offline
Send Email Send Email
 
I am trying to extract the number of hits for certain terms from the
Yahoo Search engine from a tool I have developed.
When I pass a verbatim stringliteral (C#) like the following;


query = "\"" + myQuery + "\"";
string requestUri = String.Format
("http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid={0}
&query={1}", myYahooID, HttpUtility.UrlEncode(@query, Encoding.UTF8));

where the query is something like;

#include <file1.h>

I get 2147483648 hits.

When I enter "#include <file1.h>" at the Yahoo Search web page I get
1
hit (which is correct).

Hw can I force the websearchservive to accept the verbatim string
literal?

#161 From: "docbliny" <tomi@...>
Date: Wed Apr 16, 2008 4:21 pm
Subject: Re: API for Online list
docbliny
Online Now Online Now
Send Email Send Email
 
--- In ydn-dotnet@yahoogroups.com, "Shyam Sundar" <a_shyam41@...> wrote:
>
> Hi,
> I want to know if Yahoo has an API to search for online members. The
> API should accept the search parameters and then return a list of
> yahoo members who are online or an API which can accept a Yahoo ID
and
> then return a status saying Online or Offline.

Shyam,

I don't think this is available, but I'd ask in the Messenger group:

http://tech.groups.yahoo.com/group/ydn-messenger/

//Tomi B.

#160 From: "docbliny" <tomi@...>
Date: Wed Apr 16, 2008 4:20 pm
Subject: Re: Mileage - driving directions
docbliny
Online Now Online Now
Send Email Send Email
 
--- In ydn-dotnet@yahoogroups.com, "patlogan100" <patlogan100@...>
wrote:
>
> Hi...  I have seen a number of "on line" examples where the user
> provides 2 addresses and the mileage and driving directions are
> returned.  I am looking for an API - example of this that returns the
> text where I can include this in a web page.

Patrick,

I'm not sure if this is available, but the right place to get it would
be in one of the Yahoo! Maps or Local APIs. You can find more
information here:

http://developer.yahoo.com/maps/

//Tomi B.

#159 From: "patlogan100" <patlogan100@...>
Date: Tue Apr 15, 2008 9:44 pm
Subject: Mileage - driving directions
patlogan100
Offline Offline
Send Email Send Email
 
Hi...  I have seen a number of "on line" examples where the user
provides 2 addresses and the mileage and driving directions are
returned.  I am looking for an API - example of this that returns the
text where I can include this in a web page.

Thanks
    Patrick

#158 From: "Shyam Sundar" <a_shyam41@...>
Date: Tue Apr 15, 2008 3:33 am
Subject: API for Online list
a_shyam41
Offline Offline
Send Email Send Email
 
Hi,
I want to know if Yahoo has an API to search for online members. The
API should accept the search parameters and then return a list of
yahoo members who are online or an API which can accept a Yahoo ID and
then return a status saying Online or Offline.

Thanks,
Shyam

#156 From: "docbliny" <tomi@...>
Date: Wed Apr 9, 2008 10:37 pm
Subject: Re: Read JSON?
docbliny
Online Now Online Now
Send Email Send Email
 
--- In ydn-dotnet@yahoogroups.com, "Jeff liu" <astro_boy_r@...> wrote:
> In javaScript, I can do this:
>
> var myObject = eval('(' + myJSONtext + ')')
>
> Then use the myObject as obejct. There is also supported classes in
> Java too.
>
> Does anyone know what should I do in C#?

Are you getting JSON data from somewhere and that is the reason you
need this? Or some other reason? XML is supported my .NET really well,
so if that is an option, just use XML.

However, if you want to use JSON, there are a few options.
http://code.google.com/p/json4csharp/ is one option, but once again,
depending on what you are doing there are other ways. Is this a
WinForms, ASP.NET, Silverlight or some other application?

//Tomi B.

#155 From: "Jeff liu" <astro_boy_r@...>
Date: Wed Apr 9, 2008 1:26 am
Subject: Read JSON?
astro_boy_r
Offline Offline
Send Email Send Email
 
Hello all
I am new at C#.

In javaScript, I can do this:

var myObject = eval('(' + myJSONtext + ')')

Then use the myObject as obejct. There is also supported classes in
Java too.

Does anyone know what should I do in C#?

TIA

Jeff

#152 From: "docbliny" <tomi@...>
Date: Mon Mar 31, 2008 5:45 pm
Subject: Re: Including Flickr results in the Image Search API
docbliny
Online Now Online Now
Send Email Send Email
 
Hi Sreedhar,

I'd ask this question in the Search group at:
http://tech.groups.yahoo.com/group/yws-search-general/

//Tomi B.

--- In ydn-dotnet@yahoogroups.com, "ambatisreedhar"
<ambatisreedhar@...> wrote:
>
> I'm writing a small application which utilizes the Yahoo Image
Search
> API.
> My problem is that the API seems to be filtering out 'flickr'
images.
> I want 'flickr' images to be included in the results.
>
> My query looks like this
> http://search.yahooapis.com/ImageSearchService/V1/imageSearch?
>
appid=YahooDemo&query=anaconda&results=12&start=1&format=any&coloratio
> n=any
> or
> http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?
> appid=YahooDemo&query=anaconda&results=12
>
> I notice that if I perform the same query using the image search
> engine at http://images.search.yahoo.com
> it returns images from flickr.
>
> I also remember this was working in the past. My API calls would
> return flickr images.
> I'm wondering if you guys have changed this recently?
> How do I call the API so that it include flickr images in my
results?
>
> Thanks,
> Sreedhar Ambati
>

#151 From: "ambatisreedhar" <ambatisreedhar@...>
Date: Mon Mar 31, 2008 3:04 pm
Subject: Including Flickr results in the Image Search API
ambatisreedhar
Offline Offline
Send Email Send Email
 
I'm writing a small application which utilizes the Yahoo Image Search
API.
My problem is that the API seems to be filtering out 'flickr' images.
I want 'flickr' images to be included in the results.

My query looks like this
http://search.yahooapis.com/ImageSearchService/V1/imageSearch?
appid=YahooDemo&query=anaconda&results=12&start=1&format=any&coloratio
n=any
or
http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?
appid=YahooDemo&query=anaconda&results=12

I notice that if I perform the same query using the image search
engine at http://images.search.yahoo.com
it returns images from flickr.

I also remember this was working in the past. My API calls would
return flickr images.
I'm wondering if you guys have changed this recently?
How do I call the API so that it include flickr images in my results?

Thanks,
Sreedhar Ambati

#149 From: "huge" <huge.huang@...>
Date: Tue Mar 25, 2008 1:05 pm
Subject: Re: Not Allowed in GetUserData call
huge03132003
Offline Offline
Send Email Send Email
 
Sorry, it's my fault

when I replace the Authentication cookies with correct format (without
"Y="), it works!!!!

thanks everybody, hope this useful to you all :)

--- In ydn-dotnet@yahoogroups.com, "huge" <huge.huang@...> wrote:
>
> Dear guys
> Now I could get a token in endpoint page.
> My code described below
>
> Yahoo.Authentication auth = new Yahoo.Authentication(AppID, Secret);
>     auth.Token = token;
>     auth.UpdateCredentials();
>
> ymws ymwsInstance = new ymws();
>     ymwsInstance.Url =
> String.Concat("http://mail.yahooapis.com/ws/mail/v1.1/soap?appid=",
> auth.ApplicationId, "&wssid=", auth.WssId);
>     ymwsInstance.CookieContainer = new CookieContainer();
>     ymwsInstance.CookieContainer.Add(new
> Uri("http://mail.yahooapis.com/"), new Cookie("Y",
> auth.Cookies.Trim().Substring(2)));
>     try {
>       GetUserDataResponse userData = ymwsInstance.GetUserData(new
> GetUserData());
>     }catch (Exception ex) {
>       Response.Write(ex.Message);
>     }
>
> but ymwsInstance.GetUserData got an error, I just can see the message
> is Not allowed but without other hint, and the StackTrack list below
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMess\
age
> message, WebResponse response, Stream responseStream, Boolean asyncCall)
>     System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> methodName, Object[] parameters)
>     com.yahooapis.mail.ymws.GetUserData(GetUserData GetUserData1) at
> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\root\26676eb7\92c7e946\App_WebReferences.rofz3kg8.0.cs: Line 159
>     _Default.Page_Load(Object sender, EventArgs e) at
> c:\Inetpub\wwwroot\Default.aspx.cs: Line 76
> is there anyone could be kind enough to tell me how to solve this?
> thanks wholeheartedly
>

#148 From: "huge" <huge.huang@...>
Date: Tue Mar 25, 2008 10:09 am
Subject: Not Allowed in GetUserData call
huge03132003
Offline Offline
Send Email Send Email
 
Dear guys
Now I could get a token in endpoint page.
My code described below

Yahoo.Authentication auth = new Yahoo.Authentication(AppID, Secret);
     auth.Token = token;
     auth.UpdateCredentials();

ymws ymwsInstance = new ymws();
     ymwsInstance.Url =
String.Concat("http://mail.yahooapis.com/ws/mail/v1.1/soap?appid=",
auth.ApplicationId, "&wssid=", auth.WssId);
     ymwsInstance.CookieContainer = new CookieContainer();
     ymwsInstance.CookieContainer.Add(new
Uri("http://mail.yahooapis.com/"), new Cookie("Y",
auth.Cookies.Trim().Substring(2)));
     try {
       GetUserDataResponse userData = ymwsInstance.GetUserData(new
GetUserData());
     }catch (Exception ex) {
       Response.Write(ex.Message);
     }

but ymwsInstance.GetUserData got an error, I just can see the message
is Not allowed but without other hint, and the StackTrack list below
 
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMess\
age
message, WebResponse response, Stream responseStream, Boolean asyncCall)
     System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
     com.yahooapis.mail.ymws.GetUserData(GetUserData GetUserData1) at
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\root\26676eb7\92c7e946\App_WebReferences.rofz3kg8.0.cs: Line 159
     _Default.Page_Load(Object sender, EventArgs e) at
c:\Inetpub\wwwroot\Default.aspx.cs: Line 76
is there anyone could be kind enough to tell me how to solve this?
thanks wholeheartedly

#147 From: "Jagdeep Singh Mankotia" <jagdeepmankotia@...>
Date: Tue Mar 18, 2008 6:20 am
Subject: Web.net.mail.smtpclient Problem
jagdeepmankotia
Offline Offline
Send Email Send Email
 
I am not be able to import web.net.mail.smtpclient library in my
project.

I want to use mail function in my one form and for that smtp mail, I
need this library.

Plese give me some solution for that.


I am using this coding:-


============
   SmtpClient smtpClient = new SmtpClient("server IP Address");

         MailMessage message = new MailMessage
("office@...@sender.com", "*******@...");
         message.Subject = "Subject of Email";
         message.Body = "&lt;H2>Testing HTML Email</H2>";
         message.IsBodyHtml = true;
         smtpClient.Credentials = new NetworkCredentials
("****@****.com", "password");
         smtpClient.Send(message);
=================


-- Jagdeep Mankotia

Messages 147 - 233 of 263   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

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