fork download
  1. <?php
  2. $url = 'https://k...content-available-to-author-only...i.com/collections';
  3. $collection_name = 'RapidAPI';
  4. $request_url = $url . '/' . $collection_name;
  5. $curl = curl_init($request_url);
  6. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  7. curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'DELETE');
  8. curl_setopt($curl, CURLOPT_HTTPHEADER, [
  9. 'X-RapidAPI-Host: kvstore.p.rapidapi.com',
  10. 'X-RapidAPI-Key: 7xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  11. 'Content-Type: application/json'
  12. ]);
  13. $response = curl_exec($curl);
  14. curl_close($curl);
  15. print_r($response);
  16. echo $response . PHP_EOL;
  17.  
  18.  
  19.  
  20. ?>
Success #stdin #stdout 0.04s 26164KB
stdin
dddddddddddddddddd
stdout