public async Task <TweetsResponse> SearchAsync(TweetSearchOptions options) { string url = apiUrl + SEARCH_URL + options.GetSearchPartAddress(); string json = await GetSearchResponseAsync(url); return(TweetsResponse.FromJson(json)); }
public IResponse GetOwnTweets(int userID) { try { var tweets = twitterDataService.GetOwnTweets(userID); var convertedTweets = ConversionHelper.ConvertTweets(tweets).OrderByDescending(x => x.DateAdded).ToArray(); return(TweetsResponse.Success(convertedTweets)); } catch (Exception) { return(BaseResponse.Error()); } }