feat(route/twitter): support twitter list third-party api

This commit is contained in:
pseudoyu
2024-12-12 13:53:50 +08:00
parent 127b45637a
commit 6deb2f57cf
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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,
+4
View File
@@ -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,