fork download
  1. <?php
  2.  
  3.  
  4. $curl = curl_init();
  5.  
  6. CURLOPT_URL => 'https://a...content-available-to-author-only...o.id/go-omni-v2/public/whatsapp/send-text',
  7. CURLOPT_RETURNTRANSFER => true,
  8. CURLOPT_ENCODING => '',
  9. CURLOPT_MAXREDIRS => 10,
  10. CURLOPT_TIMEOUT => 0,
  11. CURLOPT_FOLLOWLOCATION => true,
  12. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  13. CURLOPT_CUSTOMREQUEST => 'POST',
  14. CURLOPT_POSTFIELDS =>'{
  15. "recipient_number": "6285292617623",
  16. "text": "pesan___"
  17. }',CURLOPT_HTTPHEADER => array(
  18. 'apikey: 954f018d3dbe'
  19. ),
  20. ));
  21.  
  22. $response = curl_exec($curl);
  23.  
  24. curl_close($curl);
  25. echo $response;
  26.  
  27. ?>
  28.  
Success #stdin #stdout 0.03s 26288KB
stdin
Standard input is empty
stdout
Standard output is empty