示例#1
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.RequstJson(SearchSettings.SearchUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken);

            return searchJson;
        }
示例#2
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.RequstJson(TimeLineSettings.TimelineUrl, twitAuthResponse.TokenType, twitAuthResponse.AccessToken);

            return timeLineJson;
        }