Advertisement
redhat99

Untitled

Jun 10th, 2023
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $url = 'https://discord.com/api/webhooks/1117118378499383427/_jynUNVZ5817c4mJ0wtVAzQ-XqadOaihFnwrTN-lPnfUAvnhQURoQkIycHpoBl6lKec4';
  5.  
  6. $data = array(
  7. "content" => $yagmai
  8. );
  9.  
  10. $json_data = json_encode($data);
  11.  
  12. $ch = curl_init($url);
  13. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
  14. curl_setopt($ch, CURLOPT_POST, 1);
  15. curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
  16. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  17. curl_setopt($ch, CURLOPT_HEADER, 0);
  18. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  19.  
  20. $response = curl_exec($ch);
  21.  
  22. curl_close($ch);
  23.  
  24.  
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement