Exemplo n.º 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);
        }
Exemplo n.º 2
0
 protected ApiRequest(ApiKey key)
 {
     this.key = key;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public SearchRequest(ApiKey key, string searchQuerey, DateTime beforeDate, int resultCount = 20) : this(key, searchQuerey, resultCount)
 {
     this.beforeDate = beforeDate;
 }
Exemplo n.º 5
0
 public SearchRequest(ApiKey key, string searchQuerey, int resultCount = 20) : base(key)
 {
     this.searchQuerey = searchQuerey;
     this.resultCount  = resultCount;
 }
Exemplo n.º 6
0
 public TimelineRequest(ApiKey key, ulong userId)
     : this(key, userId, 0)
 {
 }
Exemplo n.º 7
0
 public TimelineRequest(ApiKey key, ulong userId, int responseCount)
     : base(key)
 {
     this.userId        = userId;
     this.responseCount = responseCount;
 }
Exemplo n.º 8
0
 public TimelineRequest(ApiKey key, string screenName, int responseCount)
     : base(key)
 {
     this.screenName    = screenName;
     this.responseCount = responseCount;
 }
Exemplo n.º 9
0
 public TimelineRequest(ApiKey key, string screenName)
     : this(key, screenName, 0)
 {
 }
Exemplo n.º 10
0
 public UserRequest(ApiKey key, ulong id)
     : base(key)
 {
     this.id = id;
 }
Exemplo n.º 11
0
 public UserRequest(ApiKey key, string screenName)
     : base(key)
 {
     this.screenName = screenName;
 }
Exemplo n.º 12
0
 public UserSearchRequest(ApiKey key, string query, int count = 5, int page = 1) : base(key)
 {
     this.query = query;
     this.count = count;
     this.page  = page;
 }