我正在尝试在 twitter 应用程序上注册一个 webhook url,我正在使用这个包twitteroauth。
这是我的代码。
$cbUrl = 'https://123456.ngrok.io';
$envName = 'myDevEnvironment';
$connection = new TwitterOAuth(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
$data = $connection->post('account_activity/all/' . $envName . '/webhooks', ['url' => urlencode($cbUrl)]);
我正在使用ngrok获取我的 localhost webhook url 的 https。但仍然收到错误代码 214 作为响应并在错误消息下方。
{"errors":[{"code":214,"message":"Webhook URL does not meet the requirements. Please use HTTPS."}]}
任何帮助,将不胜感激。
谢谢你。
牧羊人nacy
慕村225694