What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-27 17:41:10
php discord webhook
<?php //2021 current working model $url = "https://discordapp.com/api/webhooks/0000000/ABCDEFGH...."; // security issue with this being false not tested ?? curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $hookObject = json_encode([ /* ... Add solution -
PHP 2021-10-22 17:22:08
lipa na mpesa daraja php
<?php $url = 'https://sandbox.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); $credentials = base64_encode('YOUR_APP_CONSUMER_KEY:YOUR_APP_CONSUMER_SECRET'); c... Add solution -
Javascript 2021-10-21 20:06:07
return
<?php $token_url = "https://api.byu.edu/token"; $test_api_url = "<<your API>>"; // client (application) credentials on apim.byu.edu $client_id = "<<client_id>>"; $client_secret = "<<cl... Add solution -
PHP 2021-10-18 06:01:06
php currency converter script
<?php /////for current update currency using api///// $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.exchangeratesapi.io/latest?base=USD", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING =>... Add solution -
PHP 2021-10-16 17:18:08
one signal view-notifications
<?PHP $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://onesignal.com/api/v1/notifications?app_id=3cb5beaa-e6ca-5932-aad9-fdabaa3b83ce&limit=50&offset=0", CURLOPT_RETURNTRANSFER => true, CURLOPT... Add solution -
PHP 2021-10-14 21:24:05
PHP function to add subscriber to MailChimp API 3.0
<?php $data = [ 'email' => $email, 'status' => 'subscribed', 'firstname' => $fname, 'lastname' => $lname ]; function syncMailchimp($data) { $apiKey = 'XXX'; $listId = 'XXX'; $memberId = md5(strtolower($data['email'])... Add solution -
PHP 2021-10-13 04:05:06
php multiple file upload to another server curl
<?php $user = "admin"; $postField = array(); $postFields['user'] = $user; //postdata $postFields['upload_file'] = array( 'file[0]' => '@' . realpath('first-file.jpg'), 'file[1]' => '@' . realpath('second-file.jpg') ... Add solution -
PHP 2021-10-09 08:38:05
vivo.sx api php
<?php //this will response the accountinformations $method = "GET"; $url = "https://vivo.sx/api/v1/account/"; $api_key = "myLongKey123456789"; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url... Add solution
Best helpers
Ranking is empty