/// <summary> /// overloaded to create typed version of Query /// </summary> /// <param name="feedQuery"></param> /// <returns>KeywordsFeed</returns> public KeywordsFeed Query(KeywordsQuery feedQuery) { return base.Query(feedQuery) as KeywordsFeed; }
public void QueryKeywords() { WebmasterToolsService service = new WebmasterToolsService(this.ApplicationName); service.Credentials = new GDataCredentials(this.userName, this.passWord); KeywordsQuery feedQuery = new KeywordsQuery(KeywordsQuery.CreateCustomUri("http%3A%2F%2Fwww%2Eexample%2Ecom%2F")); KeywordsFeed feed = service.Query(feedQuery); Assert.GreaterOrEqual(feed.Entries.Count, 0); foreach (KeywordsEntry entry in feed.Entries) { Assert.IsNotNull(entry.Id); } }
/// <summary> /// overloaded to create typed version of Query /// </summary> /// <param name="feedQuery"></param> /// <returns>KeywordsFeed</returns> public KeywordsFeed Query(KeywordsQuery feedQuery) { return(base.Query(feedQuery) as KeywordsFeed); }