Skip to content

Instantly share code, notes, and snippets.

@kennykerr
Created February 21, 2015 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennykerr/55fc4705f4ecb1324ff2 to your computer and use it in GitHub Desktop.
Save kennykerr/55fc4705f4ecb1324ff2 to your computer and use it in GitHub Desktop.
#include "Precompiled.h"
#include <modern\async.h>
using namespace Modern;
using namespace Windows::Foundation;
using namespace Windows::Web::Syndication;
int main()
{
Initialize();
Uri uri(L"http://kennykerr.ca/feed");
SyndicationClient client;
Task(client.RetrieveFeedAsync(uri))
.then([] (ISyndicationFeed const & feed)
{
for (ISyndicationItem const & item : feed.Items())
{
String title = item.Title().Text();
printf("%ls\n", title.Buffer());
}
})
.wait();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment