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); }
protected ApiRequest(ApiKey key) { this.key = key; }
public SearchRequest(ApiKey key, string searchQuerey, long afterTweet, long beforeTweet, int resultCount = 20) : this(key, searchQuerey, resultCount) { this.afterTweet = afterTweet; this.beforeTweet = beforeTweet; }
public SearchRequest(ApiKey key, string searchQuerey, DateTime beforeDate, int resultCount = 20) : this(key, searchQuerey, resultCount) { this.beforeDate = beforeDate; }
public SearchRequest(ApiKey key, string searchQuerey, int resultCount = 20) : base(key) { this.searchQuerey = searchQuerey; this.resultCount = resultCount; }
public TimelineRequest(ApiKey key, ulong userId) : this(key, userId, 0) { }
public TimelineRequest(ApiKey key, ulong userId, int responseCount) : base(key) { this.userId = userId; this.responseCount = responseCount; }
public TimelineRequest(ApiKey key, string screenName, int responseCount) : base(key) { this.screenName = screenName; this.responseCount = responseCount; }
public TimelineRequest(ApiKey key, string screenName) : this(key, screenName, 0) { }
public UserRequest(ApiKey key, ulong id) : base(key) { this.id = id; }
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; }