Skip to content

Commit

Permalink
feat(route/twitter): support twitter list third-party api
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Dec 12, 2024
1 parent 127b456 commit 6deb2f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/twitter/api/web-api/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const graphQLEndpointsPlain = [

const gqlMap = Object.fromEntries(graphQLEndpointsPlain.map((endpoint) => [endpoint.split('/')[3].replace(/V2$|Query$|QueryV2$/, ''), endpoint]));

const thirdPartySupportedAPI = ['UserByScreenName', 'UserByRestId', 'UserTweets', 'UserTweetsAndReplies'];
const thirdPartySupportedAPI = ['UserByScreenName', 'UserByRestId', 'UserTweets', 'UserTweetsAndReplies', 'ListLatestTweetsTimeline'];

const gqlFeatureUser = {
hidden_profile_subscriptions_enabled: true,
Expand Down
4 changes: 4 additions & 0 deletions lib/routes/twitter/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export const route: Route = {
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
{
name: 'TWITTER_THIRD_PARTY_API',
description: 'Please see above for details.',
},
],
requirePuppeteer: false,
antiCrawler: false,
Expand Down

0 comments on commit 6deb2f5

Please sign in to comment.