首页 > 解决方案 > 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');
}

请指导我谢谢

标签: webhooksbigbluebutton

解决方案


您的代码有几个问题。这是您可以参考的代码。

$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


推荐阅读