【问题标题】:bigbluebutton webhooks checksumErrorbigbluebutton webhooks checksumError
【发布时间】:2020-10-29 18:56:04
【问题描述】:

我想创建 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');
}

请指导我 谢谢

【问题讨论】:

    标签: webhooks bigbluebutton


    【解决方案1】:

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

    $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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-08
      • 2020-08-31
      • 2021-07-29
      • 1970-01-01
      • 1970-01-01
      • 2023-01-19
      • 2020-10-11
      相关资源
      最近更新 更多