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="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> can u tell me a reason.
Coordinator
Mar 4, 2015 at 2:21 AM
Hi,

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.

@JoeMayo