private async Task <DiffbotArticle> GetRemoteTextFromListItem(KeyValuePair <string, ReadingListItem> item) { Debug.WriteLine(string.Format("Getting remote text for '{0}'", item.Key)); var diffbotArticle = await ReadItLaterApi.GetText(item.Value); if (String.IsNullOrEmpty(diffbotArticle.Title)) { return(null); } await WriteItemToFile(_applicationData.LocalFolder, string.Format("{0}.json", item.Key), diffbotArticle.Stringify()); return(diffbotArticle); }
public async Task TestGetText() { var result = await _api.GetText("http://arstechnica.com/microsoft/news/2012/01/windows-8-storage-spaces-detailed-pooling-redundant-disk-space-for-all.ars"); Assert.IsFalse(string.IsNullOrWhiteSpace(result.Html)); }