Exemple #1
0
 public static oath getInstance()
 {
     if (instance != null)
     {
         return(instance);
     }
     else
     {
         instance = new oath();
         return(instance);
     }
 }
Exemple #2
0
        //sql components commented out while not in use.
        public static IEnumerable <Tweetinvi.Models.ITweet> Search(string search, int count = 1000)
        {
            //SQL sql = new SQL();
            oath cred = oath.getInstance();

            Auth.SetUserCredentials(cred.get_consumer_key(), cred.get_consumer_secret(), cred.get_access_token(), cred.get_access_secret());
            var searchParameter = new Tweetinvi.Parameters.SearchTweetsParameters(search)
            {
                Lang = Tweetinvi.Models.LanguageFilter.English,
                MaximumNumberOfResults = count,
                TweetSearchType        = Tweetinvi.Parameters.TweetSearchType.OriginalTweetsOnly,
                SearchType             = SearchResultType.Mixed
            };
            var tweets = Tweetinvi.Search.SearchTweets(searchParameter);

            //sql.StoreTweets(tweets);
            //sql.Dispose();
            return(tweets);
        }
Exemple #3
0
        public IEnumerable <Tweetinvi.Models.ITweet> Search(string search, oath creds, int count = 0)
        {
            IEnumerable <Tweetinvi.Models.ITweet> tweet = null;

            return(tweet);
        }
Exemple #4
0
 public StreamTweets(oath in_credentials)
 {
     creds = in_credentials;
 }