public string GetSearch(string sinceId) { var searchJson = string.Empty; IAuthenticate authenticate = new Authenticate(); AuthResponse twitAuthResponse = authenticate.AuthenticateMe(AuthenticateSettings); // Do the search var utility = new Utility(); searchJson = utility.RequstJson($"{SearchSettings.SearchUrl}&since_id={sinceId}", twitAuthResponse.TokenType, twitAuthResponse.AccessToken); return(searchJson); }
public string GetSearch() { var searchJson = string.Empty; IAuthenticate authenticate = new Authenticate(); AuthResponse twitAuthResponse = authenticate.AuthenticateMe(AuthenticateSettings); // Do the timeline var utility = new Utility(); searchJson = utility.RequstJson(SearchSettings.SearchUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken); return(searchJson); }
public string GetMyTimeline() { var timeLineJson = string.Empty; IAuthenticate authenticate = new Authenticate(); AuthResponse twitAuthResponse = authenticate.AuthenticateMe(AuthenticateSettings); // Do the timeline var utility = new Utility(); timeLineJson = utility.RequstJson(TimeLineSettings.TimelineUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken); return(timeLineJson); }
public string GetSearch(OAuthData oAuthData) { var searchJson = string.Empty; var authenticate = new Authenticate(); TwitAuthenticateResponse twitAuthResponse = authenticate.AuthenticateMe(oAuthData.OAuthConsumerKey, oAuthData.OAuthConsumerSecret, OAuthUrl); // Do the timeline var utility = new Utility(); searchJson = utility.RequstJson(searchUrl, twitAuthResponse.token_type, twitAuthResponse.access_token); return(searchJson); }
public string GetSearch() { var searchJson = string.Empty; IAuthenticate authenticate = new Authenticate(); AuthResponse twitAuthResponse = authenticate.AuthenticateMe(AuthenticateSettings); // Do the timeline var utility = new Utility(); searchJson = utility.RequstJson(SearchSettings.SearchUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken); return searchJson; }
public string GetMyTimeline() { var timeLineJson = string.Empty; IAuthenticate authenticate = new Authenticate(); AuthResponse twitAuthResponse = authenticate.AuthenticateMe(AuthenticateSettings); // Do the timeline var utility = new Utility(); timeLineJson = utility.RequstJson(TimeLineSettings.TimelineUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken); return timeLineJson; }