我正在探索如何使用TwitterAPI version2搜索和过滤tweet,该版本在撰写本文时已经发布。有关此特定端点的文档可在here.中找到 我尝试成功搜索以下查询: https://api.twitter.com/2/tweets/search/recent?因为我需要更具体,所以我查看了v1.1docs for rules and filtering,并尝试查找包含小狗图像(filter:image)和no retweets (-fi
我有这段代码,我正在测试它是否会发送一条tweet,如果它的按钮被点击。.catch(function (error) { });但是,每次我点击按钮时,我都会得到这个确切的错误Access to fetch at 'https://api.twitter.com/1.1/statuses/update.json' from origin
当我在postman中提出请求时,我可以看到数据是返回的,因此端点是正确的。我得到的错误是我得到的控制台中的TypeError: fetch failed at Object.fetch (node:internal/depsReact from "react";
import Layout from "@/components/Layout/Layout&qu