doc: improve Twitter relevant documentation (#6189)

This commit is contained in:
Henry Wang 2020-11-17 22:33:48 +00:00 committed by GitHub
parent f007624d2b
commit 0ff22d4851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -444,7 +444,7 @@ See docs of specified route and `lib/config.js` for detail information.
- `TWITTER_CONSUMER_SECRET`: Twitter Consumer Secret, support multiple keys, split them with `,`
- `TWITTER_TOKEN_{id}`: Twitter token's corresponding id, replace `{id}` with the id, the value is a combination of `consumer_key consumer_secret access_token access_token_secret` by a comma `,`. Eg. `{consumer_key},{consumer_secret},{access_token},{access_token_secret}`.
- `TWITTER_TOKEN_{handler}`: The token generated by the corresponding Twitter handler, replace `{handler}` with the Twitter handler, the value is a combination of `Twitter API key, Twitter API key secret, Access token, Access token secret` connected by a comma `,`. Eg. `TWITTER_TOKEN_RSSHub=bX1zry5nG4d1RbESQbnADpVIo,2YrD8qo9sXbB8VlYfVmo1Qtw0xsexnOliU5oZofq7aPIGou0Xx,123456789-hlkUHFYmeXrRcf6SEQciP8rP4lzmRgMgwdqIN9aK,pHcPnfa28rCIKhSICUCiaw9ppuSSl7T2f3dnGYpSM0bod`.
- youtube: [API Key application](https://console.developers.google.com/)

View File

@ -464,11 +464,11 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行
- twitter 全部路由:[申请地址](https://apps.twitter.com)
- `TWITTER_CONSUMER_KEY`: Twitter Consumer Key支持多个 key用英文逗号 `,` 隔开
- `TWITTER_CONSUMER_KEY`: Twitter API key支持多个 key用英文逗号 `,` 隔开
- `TWITTER_CONSUMER_SECRET`: Twitter Consumer Secret支持多个 key用英文逗号 `,` 隔开,顺序与 key 对应
- `TWITTER_CONSUMER_SECRET`: Twitter API key secret支持多个 key用英文逗号 `,` 隔开,顺序与 key 对应
- `TWITTER_TOKEN_{id}`: 对应 id 的 Twitter token`{id}` 替换为 id值为 `consumer_key consumer_secret access_token access_token_secret` 用逗号隔开,即:`{consumer_key},{consumer_secret},{access_token},{access_token_secret}`
- `TWITTER_TOKEN_{handler}`: 对应 Twitter 用户名生成的 token`{handler}` 替换为用于生成该 token 的 Twitter 用户名,值为 `Twitter API key, Twitter API key secret, Access token, Access token secret` 用逗号隔开,例如:`TWITTER_TOKEN_RSSHub=bX1zry5nG4d1RbESQbnADpVIo,2YrD8qo9sXbB8VlYfVmo1Qtw0xsexnOliU5oZofq7aPIGou0Xx,123456789-hlkUHFYmeXrRcf6SEQciP8rP4lzmRgMgwdqIN9aK,pHcPnfa28rCIKhSICUCiaw9ppuSSl7T2f3dnGYpSM0bod`
- youtube 全部路由:[申请地址](https://console.developers.google.com/)

View File

@ -43,7 +43,7 @@ module.exports = async (ctx) => {
const profileImageUrl = userInfo.profile_image_url || userInfo.profile_image_url_https;
ctx.state.data = {
title: `${userInfo.name} 的 Twitter`,
title: `Twitter @${userInfo.name}`,
link: `https://twitter.com/${id}/`,
image: profileImageUrl,
description: userInfo.description,