fix(docs): update outdated twitter configuration documentation (#16185)

* update outdated twitter configuration documentation (TWITTER_COOKIE was replaced by TWITTER_AUTH_TOKEN)

* update features.requireConfig on twitter routes (TWITTER_COOKIE was replaced by TWITTER_AUTH_TOKEN)
This commit is contained in:
User123698745
2024-07-17 12:26:44 +08:00
committed by GitHub
parent ad135816fb
commit 42a10b9198
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export const route: Route = {
description: 'Please see above for details.',
},
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
+1 -1
View File
@@ -18,7 +18,7 @@ export const route: Route = {
description: 'Please see above for details.',
},
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
+1 -1
View File
@@ -10,7 +10,7 @@ export const route: Route = {
features: {
requireConfig: [
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
+1 -1
View File
@@ -18,7 +18,7 @@ export const route: Route = {
description: 'Please see above for details.',
},
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
+1 -1
View File
@@ -18,7 +18,7 @@ export const route: Route = {
description: 'Please see above for details.',
},
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
+2 -2
View File
@@ -40,8 +40,8 @@ generates
Currently supports two authentication methods:
- Using \`TWITTER_COOKIE\` (recommended): Configure the cookies of logged-in Twitter Web, at least including the fields auth_token and ct0. RSSHub will use this information to directly access Twitter's web API to obtain data.
- Using \`TWITTER_AUTH_TOKEN\` (recommended): Configure a comma-separated list of \`auth_token\` cookies of logged-in Twitter Web. RSSHub will use this information to directly access Twitter's web API to obtain data.
- Using \`TWITTER_USERNAME\` \`TWITTER_PASSWORD\` and \`TWITTER_AUTHENTICATION_SECRET\`: Configure the Twitter username and password. RSSHub will use this information to log in to Twitter and obtain data using the mobile API. Please note that if you have not logged in with the current IP address before, it is easy to trigger Twitter's risk control mechanism.
- Using \`TWITTER_USERNAME\` \`TWITTER_PASSWORD\` and \`TWITTER_AUTHENTICATION_SECRET\`: Configure a comma-separated list of Twitter username and password. RSSHub will use this information to log in to Twitter and obtain data using the mobile API. Please note that if you have not logged in with the current IP address before, it is easy to trigger Twitter's risk control mechanism.
`,
};
+1 -1
View File
@@ -27,7 +27,7 @@ export const route: Route = {
optional: true,
},
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],