Created
July 23, 2012 06:22
-
-
Save sandrinodimattia/3162267 to your computer and use it in GitHub Desktop.
GoogleReader sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Empty line. | |
Console.WriteLine(""); | |
// Get username. | |
Console.Write(" Enter your Google username: "); | |
string username = Console.ReadLine(); | |
// Get password. | |
Console.Write(" Enter your password: "); | |
string password = Console.ReadLine(); | |
// Query. | |
using (ReaderService rdr = new ReaderService(username, password, "Sandworks.Google.App")) | |
{ | |
// Display. | |
Console.WriteLine(""); | |
Console.WriteLine(" Last 5 articles from Sandrino's Blog: "); | |
foreach (ReaderItem item in rdr.GetFeedContent("http://sandrinodimattia.net/blog/syndication.axd?format=rss", 5)) | |
{ | |
Console.WriteLine(" - " + item.Author + ": " + item.Title); | |
} | |
} | |
// Pause. | |
Console.ReadLine(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment