|
@@ -23,20 +23,12 @@ export class TwitterApiProvider {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- public async fetchHomeFeed() {
|
|
|
+ public async fetchHomeFeed(maxId?) {
|
|
|
return await this.client.get("statuses/home_timeline", {
|
|
|
- count: 10,
|
|
|
+ count: 20,
|
|
|
include_entities: true,
|
|
|
- tweet_mode: "extended"
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- public async fetchHomeFeedSince(id) {
|
|
|
- return await this.client.get("statuses/home_timeline", {
|
|
|
- max_id: id,
|
|
|
- count: 15,
|
|
|
- include_entities: true,
|
|
|
- tweet_mode: "extended"
|
|
|
+ tweet_mode: "extended",
|
|
|
+ max_id: maxId
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -45,17 +37,7 @@ export class TwitterApiProvider {
|
|
|
return res.data[0];
|
|
|
}
|
|
|
|
|
|
- public async fetchUserTimeline(userId) {
|
|
|
- const res = await this.client.get("statuses/user_timeline", {
|
|
|
- user_id: userId,
|
|
|
- include_entities: true,
|
|
|
- tweet_mode: "extended",
|
|
|
- count: 20
|
|
|
- });
|
|
|
- return res.data;
|
|
|
- }
|
|
|
-
|
|
|
- public async fetchUserTimelineSince(userId, maxId) {
|
|
|
+ public async fetchUserTimeline(userId, maxId?) {
|
|
|
const res = await this.client.get("statuses/user_timeline", {
|
|
|
user_id: userId,
|
|
|
max_id: maxId,
|