First, go to link and download code sample for C#.
Second, use the APIs at link. I prefer the html link.
Third, get an application id at link. Be sure that this is the destination page where you will acquire the credentials using Request.QueryString[xTag].
Fourth, the above doesn't really explain a detail that will let the Web Service actually return Messages. Make sure that the xTagIsSpecified boolean is set before the request!
NOTE: The code sample below only works with premium accounts. Accounts link.
// <ListMessages>
// ListMessages, lists the messages in a given folder.
ListMessages listRequest = new ListMessages();
listRequest.fid = "Inbox";
listRequest.startMid = 0;
listRequest.startInfo = 0;
listRequest.numMid = 10;
listRequest.numInfo = 1;
listRequest.startMidSpecified = true;
listRequest.startInfoSpecified = true;
listRequest.numMidSpecified = true;
listRequest.numInfoSpecified = true;
ListMessagesResponse listResponse = ymwsInstance.ListMessages(listRequest);
retVal += string.Format("<br />Listed folder <b>{0}</b>, found <b>{1}</b> message IDs.<br />",
listResponse.folder.folderInfo.name, listResponse.mid.Length);
string[] listedMed = ymwsInstance.ListMessages(listRequest).mid;
// </ListMessages>
1 comment:
Hello there. I noticed your blog title, "Blogger: Programming Journal C#, Java, SQL" does
not really reflect the content of your
website. When composing your website title, do you believe it's most beneficial to
write it for SEO or for your visitors? This is one thing I've been struggling with due to the fact I want good search
rankings but at the same time I want the best quality for my site visitors.
Also see my site > Tampa attorneys
Post a Comment