SMS API Guide

An API (Application Programming Interface), is a computer solution that allows applications
to communicate with each other and exchange services or data with each other.It is actually a set of functions that facilitate, via a language of
programming, access to the services of an application.

Our SMS Platform ZEDEKAA, also has this solution that allows
all its customers to have at their disposal, our APIs to facilitate the integration of
our SMS services in their various applications or solutions.

Image
public class Sender
{
	String host = "";
	//Constructeur... 
	public Sender(String APIkey, String ClientId, String SenderName) 
	{
		String fixed= "https://api.smszedekaa.com/api/v2/SendSMS?apiKey=";
		fixed= fixed +APIkey + "&clientId=" + ClientId + "&senderId=" + SenderName + "&message=";
		this.host = fixed;
	} 
	
	public void Submit(String message, String numero)
	{
		try
		{
		String phoneNumber = "&MobileNumbers=" + numero + "";
		String unicode = "&is_Unicode=false&is_Flash=false";
		message = URLEncoder.encode(message, StandardCharsets.UTF_8.toString());
		String live_url = this.host + message + phoneNumber + unicode;
		URL obj = new URL(live_url);
		HttpURLConnection con = (HttpURLConnection)obj.openConnection();
		con.setRequestMethod("GET");
		int responseCode = con.getResponseCode();
		System.out.println("GET Response Code :: " + responseCode);
		
		if (responseCode == HttpURLConnection.HTTP_OK)
		{ 
			// success
			BufferedReader in = new BufferedReader(new InputStreamReader(
			con.getInputStream()));
			String inputLine;
			StringBuffer response = new StringBuffer();
			while ((inputLine = in.readLine()) != null)
			{ 
				response.append(inputLine);
			}
			in.close();
			// print result
			System.out.println(response.toString());
		}
		else
		{
			System.out.println("GET request not worked");
		}
		} 
		catch(Exception e)
		{
			System.out.println("Message:" + e.getMessage());
		}
	}
}
		
    
class Sender
{ 
	var $host="";
	//Constructeur... 
	public function __construct($APIkey,$ClientId,$SenderName) 
	{
		$fixed= "https://api.smszedekaa.com/api/v2/SendSMS?apiKey=";
		$fixed= $fixed.$APIkey."&clientId=".$ClientId."&senderId=".$SenderName."&message=";
		$this->host = $fixed;
	} 
	public function Submit($message,$numero)
	{
		try
		{
			$message = str_replace(' ', '%20', $message);
			$message = str_replace(':', '%3A', $message);
			$message = str_replace(',', '%2C', $message);
			$message = str_replace('è', '%C3%A8', $message);
			$message = str_replace('é', '%C3%A9', $message);
			$message = str_replace('ù', '%C3%B9', $message);
			$message = str_replace('ò', '%C3%B2', $message);
			$message = str_replace('ô', '%C3%B4', $message);
			$message = str_replace('ç', '%C3%A7', $message);
			$message = str_replace('â', '%C3%A2', $message);
			$message = str_replace('à', '%C3%A0', $message);
			$message = str_replace('\'', '%27', $message);
			$phoneNumber = "&MobileNumbers=".$numero."";
			$unicode = "&is_Unicode=false&is_Flash=false";
			$live_url = $this->host.$message.$phoneNumber.$unicode;
			$parse_url = file($live_url);
		} 
		catch (Exception $e) {
		print_r('Message:'. $e->getMessage());
		}
	}	
	
}

    
class Sender
{
	String host = "";
	//Constructeur... 
	public Sender(String APIkey, String ClientId, String SenderName) 
	{
		String fixed_var = "https://api.smszedekaa.com/api/v2/SendSMS?apiKey=";
		fixed_var = fixed_var + APIkey + "&clientId=" + ClientId + "&senderId=" + SenderName + "&message=";
		host = fixed_var;
	} 
	public void Submit(String message, String numero)
	{ 
		string html = string.Empty; 
		try
		{
		String phoneNumber = "&MobileNumbers=" + numero +"";
		String unicode = "&is_Unicode=false&is_Flash=false";
		String live_url = this.host + message + phoneNumber + unicode;
		string uri = live_url;
		//create a request
		HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
		using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
		using (Stream stream = response.GetResponseStream())
		using (StreamReader reader = new StreamReader(stream))
		{
			html = reader.ReadToEnd();
		}
		Console.WriteLine(html);
		}
		catch (Exception ex) {
		Console.WriteLine("Message:" + ex.Message);
		}
	Console.ReadLine();
	}
}		  
    
#!/usr/bin/python #
coding=utf-8 import
requests import
urllib import sys

# envoie de SMS par methode GET

API = 'https://api.smszedekaa.com/api/v2/SendSMS'
APIkey = 'Votre API Key' 
clientId = 'Votre Client Id' 
senderId = 'Votre SenderId'
mobileNumber = 'Numéro du destinataire' 
unicode = '&is_Unicode=false&is_Flash=false_blank'
message='Votre message'
	def
envoie_sms():
urlComplete = (API+
	'?apiKey=' + APIkey +
	'&clientId=' + clientId +
	'&senderId=' + senderId +
	'&message=' + str(message) +
	'&MobileNumbers='+ mobileNumber + unicode) 
r = requests.get(urlComplete)
print (r.text)
if __name__ == '__main__': envoie_sms()     
    
 
$(function () {
	$.ajax({ type: "GET", url:
	"https://api.smszedekaa.com/api/v2/SendSMS?ApiKey={ApiKey}&ClientId=
	{ClientId}&SenderId={SenderId}&Message={Message}&MobileNumbers={MobileNumbers}",
	contentType: "application/json", dataType: 'json',
	success: function(response) {
	}
	});
});