قم بعمل حملات جماعية عبر الرسائل النصية القصيرة ، وأرسل التنبيهات والمواعيد والإشعارات عبر الرسائل القصيرة
أرسل الرسائل عبر المكالمات الصوتية الرقمية الآلية إلى أي رقم هاتف في العالم.
إرسال رسائل SMS بمحتوى معتمد ، وصالحة كدليل موثوق.
أرسل رسائل قصيرة من حساب بريدك الإلكتروني ، بنفس الطريقة التي ترسل بها بريدًا إلكترونيًا
قم بتشغيل حملات التسويق عبر البريد الإلكتروني وأتمتة الحملات والاتصال بالبريد الإلكتروني بطريقة متقدمة
أرسل اتصالات معتمدة باستخدام بريد إلكتروني معتمد من حساب بريدك الإلكتروني
خادم SMTP لإرسال رسائل البريد الإلكتروني المحسّنة لتحسين حملات التسويق عبر البريد الإلكتروني
إنشاء صفحات مقصودة لحملات البريد الإلكتروني الخاصة بك وجذب عملاء جدد
إنشاء العقود وإرسالها من خلال أي قناة ، توقيع العقود بخط اليد
قم بإنشاء وإرسال كلمات مرور تستخدم مرة واحدة عبر أي قناة
قم بزيادة أمان تطبيقاتك من خلال تنفيذ مصادقة مزدوجة للمستخدم
ربط عملك مع WhatsAPP. أرسل إشعارات وتحدث إلى عملائك
أتمتة محادثات الدردشة مع عملائك باستخدام روبوتات الدردشة.
تواصل مع عملاء جدد بفضل خدمة الدردشة عبر الإنترنت
قم بإجراء مسح الجودة وتعرف على رأي عملائك
ولاء عملائك عن طريق إرسال كوبونات خصم شخصية.
قم بأتمتة حملات التسويق واكتسب الولاء تلقائيًا
قم بإنشاء رموز QR مجانًا تمامًا من أي عنوان URL.
يمكنك إنشاء الصفحات المقصودة بفضل محرر الهبوط لدينا وإرسالها عبر الرسائل القصيرة أو البريد الإلكتروني أو استخدامها كما يحلو لك.
قم بإنشاء دردشة ويب WhatsAPP لموقعك الإلكتروني المتوافق مع جميع الأنظمة الأساسية
قم بإنشاء نماذج مخصصة رائعة وإنشاء قواعد بيانات بشكل قانوني لحملاتك التسويقية
أرسل رسالة نصية قصيرة من برنامجك باستخدام API الخاص بنا
إرسال رسائل نصية قصيرة معتمدة ، والتحقق من حالة التسليم وتنزيل الشهادات باستخدام واجهة برمجة التطبيقات الخاصة بنا.
قم بإجراء مكالمات تلقائيًا من برنامجك
إرسال وأتمتة إرسال رسائل البريد الإلكتروني من خلال واجهة برمجة التطبيقات ، وربط البرنامج الخاص بك مع التسويق عبر البريد الإلكتروني
تواصل مع عملائك باستخدام WhatsAPP من خلال API
إدارة نظام الدردشة من API. الوصول أو الرد على المحادثات من API لدينا.
أرسل رسائل SMS باستخدام واجهة برمجة التطبيقات الخاصة بنا لـ Java بسهولة وأمان. جرب API الخاص بنا لـ Java مجانًا. سيساعدك فريقنا على دمج إرسال الرسائل القصيرة في تطبيقك في Java.
String afilnet_class="sms"; String afilnet_method="sendsms"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_to="34600000000"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&from="+afilnet_from+"&to="+afilnet_to+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; URL url = new URL(sUrl); StringBuilder builder = new StringBuilder(); BufferedReader theJSONline = new BufferedReader(new InputStreamReader(url.openStream())); builder.append(theJSONline.readLine()); String content = builder.toString();
String afilnet_class="sms"; String afilnet_method="sendsms"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_to="34600000000"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&from="+afilnet_from+"&to="+afilnet_to+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/http/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsms"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_to="34600000000"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&from="+afilnet_from+"&to="+afilnet_to+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsms"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_to="34600000000"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&from="+afilnet_from+"&to="+afilnet_to+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }String afilnet_class="sms"; String afilnet_method="sendsmsfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_idtemplate="1000"; String afilnet_params="mobile:123456789,name:test+name"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&to="+afilnet_to+"&idtemplate="+afilnet_idtemplate+"¶ms="+afilnet_params+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; URL url = new URL(sUrl); StringBuilder builder = new StringBuilder(); BufferedReader theJSONline = new BufferedReader(new InputStreamReader(url.openStream())); builder.append(theJSONline.readLine()); String content = builder.toString();
String afilnet_class="sms"; String afilnet_method="sendsmsfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_idtemplate="1000"; String afilnet_params="mobile:123456789,name:test+name"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&to="+afilnet_to+"&idtemplate="+afilnet_idtemplate+"¶ms="+afilnet_params+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/http/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsmsfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_idtemplate="1000"; String afilnet_params="mobile:123456789,name:test+name"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&to="+afilnet_to+"&idtemplate="+afilnet_idtemplate+"¶ms="+afilnet_params+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsmsfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_idtemplate="1000"; String afilnet_params="mobile:123456789,name:test+name"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&to="+afilnet_to+"&idtemplate="+afilnet_idtemplate+"¶ms="+afilnet_params+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }String afilnet_class="sms"; String afilnet_method="sendsmstogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&from="+afilnet_from+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; URL url = new URL(sUrl); StringBuilder builder = new StringBuilder(); BufferedReader theJSONline = new BufferedReader(new InputStreamReader(url.openStream())); builder.append(theJSONline.readLine()); String content = builder.toString();
String afilnet_class="sms"; String afilnet_method="sendsmstogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&from="+afilnet_from+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/http/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsmstogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&from="+afilnet_from+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsmstogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="Afilnet"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_sms="sms+test"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&from="+afilnet_from+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }String afilnet_class="sms"; String afilnet_method="sendsmstogroupfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_idtemplate="1000"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&idtemplate="+afilnet_idtemplate+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; URL url = new URL(sUrl); StringBuilder builder = new StringBuilder(); BufferedReader theJSONline = new BufferedReader(new InputStreamReader(url.openStream())); builder.append(theJSONline.readLine()); String content = builder.toString();
String afilnet_class="sms"; String afilnet_method="sendsmstogroupfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_idtemplate="1000"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&idtemplate="+afilnet_idtemplate+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/http/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsmstogroupfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_idtemplate="1000"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&idtemplate="+afilnet_idtemplate+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="sendsmstogroupfromtemplate"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_idtemplate="1000"; String afilnet_scheduledatetime=""; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&countrycode="+afilnet_countrycode+"&idgroup="+afilnet_idgroup+"&idtemplate="+afilnet_idtemplate+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }String afilnet_class="sms"; String afilnet_method="getdeliverystatus"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_messages="123456,123457,123458"; String afilnet_output=""; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&messages="+afilnet_messages+"&output="+afilnet_output; URL url = new URL(sUrl); StringBuilder builder = new StringBuilder(); BufferedReader theJSONline = new BufferedReader(new InputStreamReader(url.openStream())); builder.append(theJSONline.readLine()); String content = builder.toString();
String afilnet_class="sms"; String afilnet_method="getdeliverystatus"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_messages="123456,123457,123458"; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&messages="+afilnet_messages+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/http/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
String afilnet_class="sms"; String afilnet_method="getdeliverystatus"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_messages="123456,123457,123458"; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&messages="+afilnet_messages+"&output="+afilnet_output; // We generate the URL URL myurl = new URL("https://www.afilnet.com/api/basic/"); // We create the connection HttpURLConnection con = (HttpURLConnection) myurl.openConnection(); String encoded = Base64.getEncoder().encodeToString((afilnet_user+":"+afilnet_password).getBytes(StandardCharsets.UTF_8)); con.setRequestProperty("Authorization", "Basic "+encoded); con.setDoOutput(true); con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); con.setRequestProperty("Content-Length", String.valueOf(post.length())); con.setRequestMethod("POST"); // We build the OutputStream os = con.getOutputStream(); os.write(post.getBytes()); os.close(); StringBuilder sb = new StringBuilder(); int HttpResult = con.getResponseCode(); if(HttpResult == HttpURLConnection.HTTP_OK) { BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); String line = null; while ((line = br.readLine()) != null) { sb.append(line + "\n"); } br.close(); System.out.println(""+sb.toString()); } else { System.out.println(con.getResponseCode()); System.out.println(con.getResponseMessage()); }
اكتشف مزايا وعيوب كل من واجهات برمجة التطبيقات الخاصة بنا. اكتشف واجهة برمجة التطبيقات الأفضل لبرنامجك في {اللغة}.
تتيح لك واجهة برمجة التطبيقات هذه الاتصال بنا من Java لإرسال الطلبات عبر طلبات HTTP GET. يرسل هذا الطلب المعلمات في نفس عنوان URL مثل الطلب.
تسمح لك واجهة برمجة تطبيقات طلب POST بالاتصال بواجهة برمجة التطبيقات الخاصة بنا من Java عن طريق إرسال معلمات الطلب عبر معلمات HTTP POST. يتم إرسال المعلومات بشكل مستقل عن URL.
تسمح واجهة برمجة تطبيقات المصادقة الأساسية باستخدام طلبات GET و POST باللغة Java مع طبقة أمان إضافية ، لأنه في هذه الحالة يتم إرسال اسم المستخدم وكلمة المرور في رأس الطلب.
يتيح لك SOAP إرسال طلبات بتنسيق XML مع Java ، ويضيف SOAP طبقة أمان إضافية لطلبات API.
تتيح لك واجهة برمجة تطبيقات JSON الخاصة بنا إرسال الطلبات بتنسيق JSON مع {اللغة} ، بالإضافة إلى أن واجهة برمجة التطبيقات هذه تضيف بروتوكول oAuth 2.0 في المصادقة التي تتيح لك إضافة طبقة أمان إضافية.
تتيح لك SMS API الخاصة بنا إرسال رسائل SMS أو تشغيل الحملات بسهولة وسرعة وكفاءة. لن تستغرق العملية التي يتعين عليك اتباعها لتتمكن من استخدام واجهة برمجة التطبيقات الخاصة بنا سوى بضع دقائق. ستقدم لك شركتنا إصدارًا تجريبيًا مجانيًا حتى تتمكن من إرسال الرسائل القصيرة باستخدام Java.
من أجل الوصول إلى API ، يجب أن تكون عميل Afilnet. سيستغرق التسجيل بضع دقائق.
ستقدم لك شركتنا رصيدًا تجريبيًا يتيح لك الاختبار باستخدام واجهة برمجة التطبيقات التي تحتاجها.
قم بإجراء تكامل API باستخدام لغة البرمجة التي تختارها. إذا كان لديك أي أسئلة أو اقتراحات حول API ، فاتصل بنا
كل شيء جاهز! ، تمكن من تحسين اتصالاته مع Afilnet. نحن هنا لدعم API لدينا عند الحاجة إليها
تواصل مع فريقنا لطرح أي أسئلة من خلال طرق الاتصال التي نقدمها. سيحاول فريقنا أن يقدم لك حلاً فوريًا وسيساعدك في دمج API الخاص بنا في برنامجك.
سجل مجانا وجرب Afilnet! نحن نقدم لك نسخة تجريبية مجانية من خدماتنا. *
شركة *
اسم *
البريد الإلكتروني *
رقم الهاتف *
(*) الترويج صالح فقط للشركات التي لم تستخدم خدمة Afilnet من قبل. عند طلب الرصيد المجاني ، قد تطلب Afilnet التحقق من معلومات شركتك