0

これはAPIを取得するための私のコードです

 $apiurl = "https://class.cvcngr.in/bigbluebutton/api/create?allowStartStopRecording=true&attendeePW=ap&autoStartRecording=false&meetingID=random-1495797&moderatorPW=mp&name=random-1495797&record=false&voiceBridge=74999&welcome=%3Cbr%3EWelcome+to+%3Cb%3E%25%25CONFNAME%25%25%3C%2Fb%3E%21&checksum=ad1f82091f78ee18673f9c5be36df9eef7860187";


  $ch = curl_init();
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_URL, $apiurl);
  $response = curl_exec($ch);
  curl_close($ch);   
  $xml = simplexml_load_string($response);
  echo $xml;

上記では、API の URL を格納する apiurl を使用しました。これは私のカスタム API であり、サービス プロバイダーによって提供されるテスト API があります。

$apiurl2 "http://test-install.blindsidenetworks.com/bigbluebutton/api/create?allowStartStopRecording=true&attendeePW=ap&autoStartRecording=false&meetingID=random-9370670&moderatorPW=mp&name=random-9370670&record=false&voiceBridge=79891&welcome=%3Cbr%3EWelcome+to+%3Cb%3E%25%25CONFNAME%25%25%3C%2Fb%3E%21&checksum=0aae50d2d079fd67138a7b266837f6b0112166b5";

どちらの URL でも同じ応答が得られますが、apiurl2 を使用した場合にのみデータを取得できます。最初のものを使用すると、応答がありません。しかし、ブラウザで直接使用しても問題はありません

4

1 に答える 1