Beispiel #1
0
        static void Main(string[] args)
        {
            const string consumerKey = "fCgzzKtIveNeZTVsD5wKE9VvT";
            const string consumerSecret = "etwJ35k2eAnYkfKNeAEYZLE1d66bO0G1X389ZC2GNzTkYJMhtV";
            const string accessToken = "1599259255-qauXuOwgdOHs6tlIZe78E55GaY4hGstMxZ6QmWo";
            const string accessTokenSecret = "gFYhri2Mtgb7Dgdcv23ZA9s6RfAcNmWJpRdL1sZM1qpBq";

            ApiKey key = new ApiKey(consumerKey, consumerSecret, accessToken, accessTokenSecret);

            UserSearchRequest userSearchRequest = new UserSearchRequest(key, "BennyPeake");
            userSearchRequest.SendRequest();

            Thread.Sleep(5000);
        }
Beispiel #2
0
 protected ApiRequest(ApiKey key)
 {
     this.key = key;
 }
Beispiel #3
0
 public SearchRequest(ApiKey key, string searchQuerey, long afterTweet, long beforeTweet, int resultCount = 20) : this(key, searchQuerey, resultCount)
 {
     this.afterTweet  = afterTweet;
     this.beforeTweet = beforeTweet;
 }
Beispiel #4
0
 public SearchRequest(ApiKey key, string searchQuerey, DateTime beforeDate, int resultCount = 20) : this(key, searchQuerey, resultCount)
 {
     this.beforeDate = beforeDate;
 }
Beispiel #5
0
 public SearchRequest(ApiKey key, string searchQuerey, int resultCount = 20) : base(key)
 {
     this.searchQuerey = searchQuerey;
     this.resultCount  = resultCount;
 }
Beispiel #6
0
 public TimelineRequest(ApiKey key, ulong userId)
     : this(key, userId, 0)
 {
 }
Beispiel #7
0
 public TimelineRequest(ApiKey key, ulong userId, int responseCount)
     : base(key)
 {
     this.userId        = userId;
     this.responseCount = responseCount;
 }
Beispiel #8
0
 public TimelineRequest(ApiKey key, string screenName, int responseCount)
     : base(key)
 {
     this.screenName    = screenName;
     this.responseCount = responseCount;
 }
Beispiel #9
0
 public TimelineRequest(ApiKey key, string screenName)
     : this(key, screenName, 0)
 {
 }
Beispiel #10
0
 public UserRequest(ApiKey key, ulong id)
     : base(key)
 {
     this.id = id;
 }
Beispiel #11
0
 public UserRequest(ApiKey key, string screenName)
     : base(key)
 {
     this.screenName = screenName;
 }
 public UserSearchRequest(ApiKey key, string query, int count = 5, int page = 1) : base(key)
 {
     this.query = query;
     this.count = count;
     this.page  = page;
 }