webhooks - bigbluebutton webhooks checksumError
问题描述
我想创建 bigbluebutton webhock,但“校验和”不正确
<?php
$urljoin ="https://server1.example.com/bigbluebutton/api/hooks/create?";
$params ='callbackURL=' .urlencode('http://example.net');
echo $urljoin.$params.'&checksum='.sha1('create'.$params.'S8BFPSCuY6XTghtr3iuNrOJhCKMJEV0W0dkfppjow');
}
请指导我谢谢
解决方案
您的代码有几个问题。这是您可以参考的代码。
$bbb_url = "https://your_domain/bigbluebutton";
$bbb_secret = "YOUR_BBB_SECRET";
$api_name = "create";
$parameter = "name=Test&meetingID=test01";
$checksum = sha1($api_name . $parameter . $bbb_secret);
$query = $parameter . "&checksum=" . $checksum;
$url = $bbb_url . "/api/" . $api_name . "?" . $query;
header("HTTP/1.1 301 Moved Permanently");
header("Location: $url");
有关创建 API 调用的更多帮助,请查看官方文档:https ://docs.bigbluebutton.org/dev/api.html#create
推荐阅读
- python - Python程序在给定的字符串中放置正确的标点符号
- mysql - 如何选择过去 30 天的数据并包含空行
- html - HTML
- css - 从 scss 文件转换为 css 文件时,如何避免将任何特定的 scss 文件转换为 css?
- string - Kotlin String.split,当分隔符在引号内时忽略
- php - 如何在 laravel 5.6 中编辑 pdf 文件。如果未编辑或另一个选定的文件保存相同的文件?
- blockchain - 如何使用去中心化应用程序将数据存储在以太坊上
- c# - 我们可以将 .snk 文件用于 c++ dll 吗?
- c# - C#类继承、接口和实例化
- python - Python Flask API - 发布和接收字节数组和元数据