$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://app.kiriminwa.id/api/get/whatsapp/{uid}', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Api-key: ###########################, ), )); $response = curl_exec($curl); curl_close($curl); //response will return data in this format { "status": "success", "whats_log": { "uid": "f2e43ee3-7fd5-4587-9f10-0e686c3b", "number": "880123456789", "content": "In publishing and graphic design, Lorem ipsum", "status": "Pending", "updated_at": "2024-02-16 08:19 PM" } }
$curl = curl_init(); $postdata = array( "contact" => array( array( "number" => "880123456789", "message" => "In publishing and graphic design, Lorem ipsum" ), array( "number" => "880123456789", "message" => "In publishing and graphic design, Lorem ipsum", "media" => "image", "url" => "https://example.com/image.jpeg" ), array( "number" => "880123456799", "message" => "In publishing an audio file, Lorem ipsum", "media" => "audio", "url" => "https://example.com/audio.mp3" ), array( "number" => "880123456799", "message" => "In publishing a video file, Lorem ipsum", "media" => "video", "url" => "https://example.com/video.mp4" ), array( "number" => "880123456799", "message" => "In publishing a document file, Lorem ipsum", "media" => "document", "url" => "https://example.com/document.pdf" ) ) ); curl_setopt_array($curl, array( CURLOPT_URL => 'https://app.kiriminwa.id/api/whatsapp/send', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>json_encode($postdata), CURLOPT_HTTPHEADER => array( 'Api-key: ###########################, 'Content-Type: application/json', ), )); $response = curl_exec($curl); curl_close($curl); //response will return data in this format { "status": "success", "whatsapp_logs": [ { "uid": "b6ca078b-8a6d-4293-8118-b1498d4588aa", "to": "880123456789", "status": "Pending", "created_at": "2024-02-16 08:04 PM" }, { "uid": "83beaaae-27d1-42fd-879d-464e393990d8", "to": "880123456789", "status": "Pending", "created_at": "2024-02-16 08:04 PM" }, { "uid": "66c54d4b-b02e-41ab-9651-6805a7679dcb", "to": "880123456799", "status": "Pending", "created_at": "2024-02-16 08:04 PM" }, { "uid": "ed4a8aa8-820b-4019-b889-b93ebcd7a636", "to": "880123456799", "status": "Pending", "created_at": "2024-02-16 08:04 PM" }, { "uid": "9ade281f-341d-49bb-9a8f-f43c47f0cc8c", "to": "880123456799", "status": "Pending", "created_at": "2024-02-16 08:04 PM" } ], "message": "New WhatsApp Message request sent, please see in the WhatsApp Log history for final status" }
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://app.kiriminwa.id/api/get/sms/{uid}', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Api-key: ###########################, ), )); $response = curl_exec($curl); curl_close($curl); //response will return data in this format { "status": "success", "sms_logs": { "uid": "43339822-9d44-413e-b8b6-5cafc8be", "number": "11254352345", "content": "In publishing and graphic design, Lorem ipsum is a", "status": "Schedule", "updated_at": "2024-02-16 08:10 PM" } }
$curl = curl_init(); $postdata = array( "contact" => array( array( "number" => "11254352345", "body" => "In publishing and graphic design, Lorem ipsum is a", "sms_type" => "plain" ), array( "number" => "32234213423", "body" => "In publishing and graphic design, Lorem ipsum is a", "sms_type" => "unicode" ) ) ); curl_setopt_array($curl, array( CURLOPT_URL => 'https://app.kiriminwa.id/api/sms/send', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>json_encode($postdata), CURLOPT_HTTPHEADER => array( 'Api-key: ###########################, 'Content-Type: application/json', ), )); $response = curl_exec($curl); curl_close($curl); //response will return data in this format { "status": "success", "sms_logs": [ { "uid": "5eb8c1b2-6832-4c91-a813-6e06062c8584", "number": "11254352345", "status": "Pending", "created_at": "2024-02-16 04:59 PM" }, { "uid": "3d783e68-8f87-4374-a6b4-d07d23b30fff", "number": "32234213423", "status": "Pending", "created_at": "2024-02-16 04:59 PM" } ], "message": "New SMS request sent, please see in the SMS history for final status" }
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://app.kiriminwa.id/api/get/email/{uid}', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Api-key: ###########################, ), )); $response = curl_exec($curl); curl_close($curl); //response will return data in this format { "status": "success", "email_logs": { "uid": "60aca9dd-ce15-451c-b8d8-86ca01b0", "email": "[email protected]", "content": "some content", "status": "Pending", "updated_at": "2024-02-16 08:15 PM" } }
$curl = curl_init(); $postdata = array( "contact" => array( array( "subject" => "demo list info", "email" => "[email protected]", "message" => "In publishing and graphic design, Lorem ipsum text", "sender_name" => "name", "reply_to_email" => "[email protected]" ), array( "subject" => "demo list info", "email" => "[email protected]", "message" => "1", "sender_name" => "name", "reply_to_email" => "[email protected]" ) ) ); curl_setopt_array($curl, array( CURLOPT_URL => 'https://app.kiriminwa.id/api/email/send', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>json_encode($postdata), CURLOPT_HTTPHEADER => array( 'Api-key: ###########################, 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); //response will return data in this format { "status": "success", "email_logs": [ { "uid": "20034f80-f778-4d3e-a636-5c1f161b954f", "email": "[email protected]", "status": "Pending", "created_at": "2024-02-16 04:14 PM" }, { "uid": "c4ad7ae2-3cfd-4066-ab31-4d31c3d078db", "email": "[email protected]", "status": "Pending", "created_at": "2024-02-16 04:14 PM" } ], "message": "New Email request sent, please see in the Email history for final status" }
Daftar pertanyaan tidak ada ? Whatsapp Kami