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:
@@ -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.',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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.',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -10,7 +10,7 @@ export const route: Route = {
|
||||
features: {
|
||||
requireConfig: [
|
||||
{
|
||||
name: 'TWITTER_COOKIE',
|
||||
name: 'TWITTER_AUTH_TOKEN',
|
||||
description: 'Please see above for details.',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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.',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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.',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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.
|
||||
`,
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@ export const route: Route = {
|
||||
optional: true,
|
||||
},
|
||||
{
|
||||
name: 'TWITTER_COOKIE',
|
||||
name: 'TWITTER_AUTH_TOKEN',
|
||||
description: 'Please see above for details.',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user