fork download
  1. <?php
  2. $curl = curl_init();
  3.  
  4. CURLOPT_URL => "https://a...content-available-to-author-only...m.us/v2/users/{userId}/meetings",
  5. CURLOPT_RETURNTRANSFER => true,
  6. CURLOPT_ENCODING => "",
  7. CURLOPT_MAXREDIRS => 10,
  8. CURLOPT_TIMEOUT => 0,
  9. CURLOPT_FOLLOWLOCATION => true,
  10. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  11. CURLOPT_CUSTOMREQUEST => "POST",
  12. CURLOPT_POSTFIELDS =>"{\r\n \"agenda\": \"My Meeting\",\r\n \"default_password\": false,\r\n \"duration\": 60,\r\n \"password\": \"123456\"\r\n}",
  13. CURLOPT_HTTPHEADER => array(
  14. "Authorization: Bearer S8PRVphKTbKlaz7kgTdR-Q",
  15. "Content-Type: application/json"
  16. ),
  17. ));
  18.  
  19. $response = curl_exec($curl);
  20.  
  21. curl_close($curl);
  22. echo $response;
  23. ?>
  24.  
Success #stdin #stdout 0.03s 26204KB
stdin
Standard input is empty
stdout
Standard output is empty