`Hi All,
I have noticed that i am unable to get tweets more than 3300. As there are 0.1 million tweets in an account which i want to read but i am able to read just 3300 tweets not more than that. How to read all the tweets thanks in advance.
where
var user = User.GetUserFromScreenName("abc_User");
const int maxId = 3300;
int page = 0;
string query = String.Format("https://api.twitter.com/1.1/statuses/user_timeline.json?user_id={0}&count={1}&page={2}", user.Id, maxId, page);
for (int y = 1; y < 700; y++)
List<ITweet> tweetsList = new List<ITweet>();
Best Regards,
Asad Naeem
I have noticed that i am unable to get tweets more than 3300. As there are 0.1 million tweets in an account which i want to read but i am able to read just 3300 tweets not more than that. How to read all the tweets thanks in advance.
where
var user = User.GetUserFromScreenName("abc_User");
const int maxId = 3300;
int page = 0;
string query = String.Format("https://api.twitter.com/1.1/statuses/user_timeline.json?user_id={0}&count={1}&page={2}", user.Id, maxId, page);
for (int y = 1; y < 700; y++)
{
// Code to get tweetsList<ITweet> tweetsList = new List<ITweet>();
query = String.Format("https://api.twitter.com/1.1/statuses/user_timeline.json?user_id={0}&count={1}&page={2}", user.Id, maxId, page);
result = TwitterAccessor.ExecuteJsonGETQuery(query);
searchQueryHelper = TweetinviContainer.Resolve<IJsonObjectConverter>();
tweetDTOs = searchQueryHelper.DeserializeObject<List<ITweetDTO>>(result);
IEnumerable<ITweet> tweets =
Tweet.TweetFactory.GenerateTweetsFromDTO(tweetDTOs);
tweetsList.AddRange(tweets);
page++;
}Best Regards,
Asad Naeem