public UserDetails GetUserDetails (string userId)
public List<string> GetFollowerIdsForUser (string userId)
I could have given a method to get all the followers for a user, but that is quite an intensive query as it needs to first get all the id’s and then for each id, retrieve the users details. Instead I’ve separated the method to two general calls so that you can use it as you see fit.
I believe this does NOT go against your API rate limit.
public SyndicationFeed GetSearch(SearchParameters parameters)
NOTE1:
New object called SearchParameters that has the following properties:
public int TweetsPerPage { get; set; } public int Page{ get; set;} public string MoreRecentThanId { get; set; } public string SearchTerm { get; set; }
Refer to http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search for details on syntax for each of the parameters.
NOTE2:
This returns back a System.ServiceModel.Syndication.SyndicationFeed object that encapsulates an ATOM feed. (I haven’t got Json working yet heh).
As an example, to search for #wordpress, you can call the search as follows:
TwitterAPI.Interface api = new Interface(userName, userPassword); SearchParameters parameters = new SearchParameters("%23wordpress"); SyndicationFeed feed = api.GetSearch(parameters); Console.WriteLine(string.Format("Number of Items: {0}", feed.Items.Count().ToString())); foreach (SyndicationItem item in feed.Items) { Console.WriteLine(string.Format("{0}: {1}", item.PublishDate.ToString(), item.Title.Text )); }
NOTE3:
public DateTime LastTweetCreatedAt { get; set; } public string LastTweetId { get; set; } public string LastTweetText { get; set; } public string LastTweetSource { get; set; } public string LastTweetInReplyToScreenName { get; set; }
public UserDetails VerifyCredentials()
public RateLimitStatus GetRateLimitStatus()//properties public XmlDocument SourceXml { get; set; } public int RemainingHits { get; set; } public int HourlyLimit { get; set; } public DateTime ResetTime { get; set; } public int ResetTimeInSeconds { get; set; }
public string MoreRecentThanId { get; set; } public string LessRecentThanId { get; set; } public int Count { get; set; } public int Page { get; set; }
public Tweets GetFriendsTweets() public Tweets GetFriendsTweets(int count) public Tweets GetFriendsTweets(string moreRecentThanId) public Tweets GetFriendsTweets(ServiceParameters parameters)
public Tweets GetTweets(string screenName) public Tweets GetTweets(string screenName, int count) public Tweets GetTweets(string screenName, string moreRecentThanId) public Tweets GetTweets(string screenName, ServiceParameters parameters)
public string InReplyToTweetId { get; set; } public string InReplyToUserId { get; set; } public string InReplyToScreenName { get; set; }
public Mentions GetMentions() public Mentions GetMentions(int count) public Mentions GetMentions(string moreRecentThanId) public Mentions GetMentions(ServiceParameters parameters)
public Followers GetFollowers() public Followers GetFollowers(int page) public Followers GetFollowers(string screenName) public Followers GetFollowers(string screenName, int page)
public static string MakeTinyUrl(string url) public static string MakeUnuUrl(string url)
public Friends GetFriends() public Friends GetFriends(int page) public Friends GetFriends(string screenName) public Friends GetFriends(string screenName, int page)