Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php discord webhook

function postToDiscord()
{
    $data = array("content" => "Your Content", "username" => "Webhooks");
    $curl = curl_init("https://discordapp.com/api/webhooks/YOUR-WEBHOOK-URL-HERE");
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    return curl_exec($curl);
}
Comment

PREVIOUS NEXT
Code Example
Php :: pg_relation_size in mb 
Php :: doctrine remove element from arraycollection 
Php :: php recapcha 
Php :: at C:UsersKamyarweb-pages elebotvendorsymfonyprocessPipesWindowsPipes.php:63 laravel error 
Php :: How can I display the data stored by summernote on laravel? 
Php :: $_FILES image dimensions 
Php :: does grepper use PHP 
Php :: bootstrap autocomplete example ajax php mysql 
Php :: php to python converter online free 
Php :: waht is middleware in laravel 
Php :: php function to show nav menu with example 
Php :: laravel 9 remove public from url 
Php :: stupidity 
Php :: verify that a valid login cookie was sent in order to do special things for that logged-in 
Php :: illuminate routing array to string conversion 
Php :: Display HTML text from a variable in laravel 
Php :: php generate html attributes from array 
Php :: Convert English Date Time To Persian Date Time JDF PHP 
Php :: plesk change php version 
Php :: dropdown in crud application YII 
Php :: woocommerce_continue_shopping_redirect 
Php :: php prepared statement and conditional 
Php :: woo variable product get field 
Php :: Reference — What does this symbol mean in PHP? 
Php :: php artisan reset --force 
Php :: wordpress production mode wp-config 
Php :: gmail smtp not working laravel 
Php :: display PHP errors based on environment variable 
Php :: how to check null and empty array in laravel 8 
Php :: omnipay refund 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =