Linq to twitter V3 Api when used in web service

Mar 2, 2015 at 10:22 AM
Hi, First i would like to thank you for such a wonderful API. I am calling a method in web service to return me tweets of a screen name. when my service hits var tweets = await (from tweet in twitterctx.Status where tweet.Type == StatusType.User && tweet.ScreenName == screenName && tweet.Count == 200 select tweet) .ToListAsync(); then i dont get any responce. instead i get a sample xml like <?xml version="1.0" encoding="UTF-8"?> <TaskOfString xmlns="" xmlns:xsd="" xmlns:xsi=""/> can u tell me a reason.
Mar 4, 2015 at 2:21 AM

Your response looks like it's coming from a WCF Web Service. It seems like your service operation has a return type of Task<string>, but should return a List<Status>. Since LINQ to Twitter is async, you'll have to write code that waits on that response and then returns the results.