Skip to content

Commit

Permalink
fix(docs): update outdated twitter configuration documentation (#16185)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
User123698745 committed Jul 17, 2024
1 parent ad13581 commit 42a10b9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/routes/twitter/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/twitter/keyword.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/twitter/likes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const route: Route = {
features: {
requireConfig: [
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/twitter/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/twitter/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
},
],
Expand Down
4 changes: 2 additions & 2 deletions lib/routes/twitter/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`,
};
2 changes: 1 addition & 1 deletion lib/routes/twitter/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const route: Route = {
optional: true,
},
{
name: 'TWITTER_COOKIE',
name: 'TWITTER_AUTH_TOKEN',
description: 'Please see above for details.',
},
],
Expand Down

0 comments on commit 42a10b9

Please sign in to comment.