第一步:注册推特开发者账号
打开网址:https://developer.x.com/

点击注册,选择 Sign up For Free Account (注册免费账号)
之后会让你填写一段文字,说明你注册开发者账号的理由。用英文随便写,满足字数要求即可通过。

第二步:在推特开发者中心操作生成 API Key


请严格按照截图说明进行设置,App Info 中有两个选项是必填,但其实对我们而言没有用,所以填写 baidu 即可



我们一共需要 4 份密钥字符,分别是
- Access Token
- Access Token Secret
- Consumer Api Key
- Consumer Api Key Secret
注意:点击 Regenerate 按钮,会导致之前保存/展示过的密钥失效。
第三步:将密钥配置到 慧眼写手 的设置中心

一一对应填写进去即可

Q&A 常见问题
为什么我配置好了所有的密钥,依然无法正常发布推文?没有详细报错信息

答:如图片这样没有更详细的报错信息,那么代表慧眼写手无法正常连接推特服务。如果使用了 VPN 等科学上网工具,需要检查是否开通或允许全局连接。因为有一些 VPN 仅仅只是允许浏览器的数据连接。
为什么我配置好了所有的密钥,依然无法正常发布推文?有详细报错信息
答:如果确保所有的密钥都正确配置,请检查推文字数,以及账号是否购买了推特会员。因为没有推特会员的情况下,单条推文文字必须在 140 字以内。
Cover Mode和 Normal Mode 有什么区别?
答:如果你要发布的推文带有多张图片,那么 Cover Mode 模式下,第一条推文只会包含一张图片。余下的图片以每条推文 4 张图片的形式继续发布。