Get user Mentions with custom query

Jul 21, 2014 at 6:48 AM
Edited Jul 21, 2014 at 6:49 AM
I am trying to get user Mentions with custom query. But this code
TwitterAccessor.ExecuteGETQuery<List<IMention>>(String.Format("https://api.twitter.com/1/statuses/mentions.json?since_id={0}",since.Id));
returns null, and exception in TwitterAccessor says "The remote server returned an error: (401) Unauthorized.".
I am authorized and Tweetinvi.User.GetLoggedUser().GetMentionsTimeline() works fine.

Please help.
Coordinator
Jul 21, 2014 at 10:51 AM
Edited Jul 21, 2014 at 10:52 AM
Hello there,

You are not using the right version of the Twitter API. The latest is 1.1.
Please try the following URL : https://api.twitter.com/1.1/statuses/mentions_timeline.json?since_id={0}

Linvi
Marked as answer by linvi on 7/21/2014 at 5:21 AM
Jul 21, 2014 at 11:00 AM
thanks Linvi!!!