Hotline - 08165697853

Whatsapp - 08165697853

Mon - Fri 8am to 6pm

Sat - Sun 12pm to 6pm

The Complete SMS API and Documentation

Developers

With our developers’ API, you can integrate bulk SMS into your website or any application that has http request enabled and XML (optional). The advantages this has to offer is ever increasing and makes bulk SMS available to you from any programming language of your choice, whether its a Visual Basic Program, .Net, PHP, JAVA or any language of your choice. All you need to get started is our API documentation. You can have this set up in no time as we have provided options for different methods of connection.

Get API Documentation

We currently provide programming support for API integration using the PHP programming language for free and for those who do not have programming skills, so you can be sure to get up and running very quickly. Visual Basic Support: Integration is also available for Visual Basic 6 applications for a free. Please contact our support team if you have any problems during integration by sending an email to [email protected]

Javascript Sample Code

var username = "username"; var password = "password"; var message = "Your message here"; var sender = "sender/display name"; var recipient = "2348012345678,2347012345678"; var url= "https://www.80kobosms.com/tools/geturl/Sms.php?username="+username+"&password="+password+"&sender="+sender+"&message="+message+"&flash=0&sendtime=2009-10- 18%2006:30&listname=friends &recipients="+recipient; var request = new XMLHttpRequest(); request.open('GET', url); request.onload = function () { console.log(request.responseText); } request.send();

PHP Sample Code

<?php $email = "your 80kobosms registered email "; $password = "Your password"; $message = "message content"; $sender_name = "Your sender name"; $recipients = "mobile numbers seperated by comma e.9 2348028828288,234900002000,234808887800"; $forcednd = "set to 1 if you want DND numbers to "; $data = array("email" => $email, "password" => $password,"message"=>$message, "sender_name"=>$sender_name,"recipients"=>$recipients,"forcednd"=>$forcednd); $data_string = json_encode($data); $ch = curl_init('hhttps://api.80kobosms.com/v2/app/sms'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($data_string))); $result = curl_exec($ch); $res_array = json_decode($result); print_r($res_array); ?>

Java Sample Code

import java.net.*; import java.io.*; import java.util.*; public class Main { public static void main (String[]args) { try { String query = "https://api.80kobosms.com/v2/app/sms"; String email = "your 80kobosms registered email "; String password = "Your password"; String message = "message content"; String sender_name = "Your sender name"; String recipients = "mobile numbers seperated by comma e.9 2348028828288,234900002000,234808887800"; String forcednd = "set to 1 if you want DND numbers to "; String param = "{\"email\":\""+email+"\",\"password\":\""+password+"\",\"message\":\""+message+"\",\"sender_name\":\""+sender_name+"\",\"recipients\":\""+recipients+"\",\"forcednd\":\""+forcednd+"\"}"; URL url = new URL (query); HttpURLConnection conn = (HttpURLConnection) url.openConnection (); conn.setConnectTimeout (5000); conn.setRequestProperty ("Content-Type", "application/json; charset=UTF-8"); conn.addRequestProperty ("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"); conn.setDoOutput (true); conn.setDoInput (true); conn.setRequestMethod ("POST"); OutputStream os = conn.getOutputStream (); os.write (param.getBytes ("UTF-8")); os.close (); // read the response // InputStream in = new BufferedInputStream(conn.getInputStream()); // String result = org.apache.commons.io.IOUtils.toString(in, "UTF-8"); BufferedReader in = new BufferedReader (new InputStreamReader (conn.getInputStream ())); String inputLine; StringBuffer response = new StringBuffer (); while ((inputLine = in.readLine ()) != null) { response.append (inputLine); } in.close (); conn.disconnect (); System.out.println(response) ; } catch (Exception e) { System.out.println (e.toString ()); } } } }

C# Sample Code

using System; using System.Net; using System.IO; namespace Rextester { public class Program { public static void Main(string[] args) { var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://api.80kobosms.com/v2/app/sms"); httpWebRequest.ContentType = "application/json"; httpWebRequest.Method = "POST"; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) { string email = "your 80kobosms registered email "; string password = "Your password"; string message = "message content"; string sender_name = "Your sender name "; string recipients = "mobile numbers seperated by comma e.9 2348028828288,234900002000,234808887800"; string forcednd = "set to 1 if you want DND numbers to receive message otherwise set to zero"; string json = "{\"email\":\""+email+"\",\"password\":\""+password+"\",\"message\":\""+message+"\",\"sender_name\":\""+sender_name+"\",\"recipients\":\""+recipients+"\",\"forcednd\":\""+forcednd+"\"}"; streamWriter.Write(json); streamWriter.Flush(); streamWriter.Close(); } var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse(); using (var streamReader = new StreamReader(httpResponse.GetResponseStream())) { var result = streamReader.ReadToEnd(); Console.WriteLine(result); } } } }