Example #1
0
        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.RequestJson(TimeLineSettings.TimelineUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken);

            return(timeLineJson);
        }
Example #2
0
        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.RequestJson(SearchSettings.SearchUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken);

            return(searchJson);
        }