قم بعمل حملات جماعية عبر الرسائل النصية القصيرة ، وأرسل التنبيهات والمواعيد والإشعارات عبر الرسائل القصيرة
أرسل الرسائل عبر المكالمات الصوتية الرقمية الآلية إلى أي رقم هاتف في العالم.
إرسال رسائل SMS بمحتوى معتمد ، وصالحة كدليل موثوق.
أرسل رسائل قصيرة من حساب بريدك الإلكتروني ، بنفس الطريقة التي ترسل بها بريدًا إلكترونيًا
قم بتشغيل حملات التسويق عبر البريد الإلكتروني وأتمتة الحملات والاتصال بالبريد الإلكتروني بطريقة متقدمة
أرسل اتصالات معتمدة باستخدام بريد إلكتروني معتمد من حساب بريدك الإلكتروني
خادم SMTP لإرسال رسائل البريد الإلكتروني المحسّنة لتحسين حملات التسويق عبر البريد الإلكتروني
إنشاء صفحات مقصودة لحملات البريد الإلكتروني الخاصة بك وجذب عملاء جدد
إنشاء العقود وإرسالها من خلال أي قناة ، توقيع العقود بخط اليد
قم بإنشاء وإرسال كلمات مرور تستخدم مرة واحدة عبر أي قناة
قم بزيادة أمان تطبيقاتك من خلال تنفيذ مصادقة مزدوجة للمستخدم
ربط عملك مع WhatsAPP. أرسل إشعارات وتحدث إلى عملائك
أتمتة محادثات الدردشة مع عملائك باستخدام روبوتات الدردشة.
تواصل مع عملاء جدد بفضل خدمة الدردشة عبر الإنترنت
قم بإجراء مسح الجودة وتعرف على رأي عملائك
ولاء عملائك عن طريق إرسال كوبونات خصم شخصية.
قم بأتمتة حملات التسويق واكتسب الولاء تلقائيًا
قم بإنشاء رموز QR مجانًا تمامًا من أي عنوان URL.
يمكنك إنشاء الصفحات المقصودة بفضل محرر الهبوط لدينا وإرسالها عبر الرسائل القصيرة أو البريد الإلكتروني أو استخدامها كما يحلو لك.
قم بإنشاء دردشة ويب WhatsAPP لموقعك الإلكتروني المتوافق مع جميع الأنظمة الأساسية
قم بإنشاء نماذج مخصصة رائعة وإنشاء قواعد بيانات بشكل قانوني لحملاتك التسويقية
أرسل رسالة نصية قصيرة من برنامجك باستخدام API الخاص بنا
إرسال رسائل نصية قصيرة معتمدة ، والتحقق من حالة التسليم وتنزيل الشهادات باستخدام واجهة برمجة التطبيقات الخاصة بنا.
قم بإجراء مكالمات تلقائيًا من برنامجك
إرسال وأتمتة إرسال رسائل البريد الإلكتروني من خلال واجهة برمجة التطبيقات ، وربط البرنامج الخاص بك مع التسويق عبر البريد الإلكتروني
تواصل مع عملائك باستخدام WhatsAPP من خلال API
إدارة نظام الدردشة من API. الوصول أو الرد على المحادثات من API لدينا.
أرسل رسائل WhatsAPP من خلال واجهة برمجة التطبيقات الخاصة بنا لـ Android بسهولة وأمان. جرب API الخاص بنا لـ Android مجانًا. سيساعدك فريقنا على دمج الإرسال التلقائي لـ WhatsAPP في تطبيقك في Android.
String afilnet_class="whatsapp"; String afilnet_method="sendmessage"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_message="test+message"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&message="+afilnet_message; 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="whatsapp"; String afilnet_method="sendmessage"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_message="test+message"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&message="+afilnet_message; // 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="whatsapp"; String afilnet_method="sendmessage"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_message="test+message"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&message="+afilnet_message; // 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="whatsapp"; String afilnet_method="sendmessage"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_message="test+message"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&message="+afilnet_message; // 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="whatsapp"; String afilnet_method="sendfile"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_type="image"; String afilnet_fileurl="https://www.example.com/image.jpg"; String afilnet_thumburl="https://www.example.com/thumb.jpg"; String afilnet_message="test+message"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&type="+afilnet_type+"&fileurl="+afilnet_fileurl+"&thumburl="+afilnet_thumburl+"&message="+afilnet_message; 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="whatsapp"; String afilnet_method="sendfile"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_type="image"; String afilnet_fileurl="https://www.example.com/image.jpg"; String afilnet_thumburl="https://www.example.com/thumb.jpg"; String afilnet_message="test+message"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&type="+afilnet_type+"&fileurl="+afilnet_fileurl+"&thumburl="+afilnet_thumburl+"&message="+afilnet_message; // 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="whatsapp"; String afilnet_method="sendfile"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_type="image"; String afilnet_fileurl="https://www.example.com/image.jpg"; String afilnet_thumburl="https://www.example.com/thumb.jpg"; String afilnet_message="test+message"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&type="+afilnet_type+"&fileurl="+afilnet_fileurl+"&thumburl="+afilnet_thumburl+"&message="+afilnet_message; // 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="whatsapp"; String afilnet_method="sendfile"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="3460000000"; String afilnet_type="image"; String afilnet_fileurl="https://www.example.com/image.jpg"; String afilnet_thumburl="https://www.example.com/thumb.jpg"; String afilnet_message="test+message"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination+"&type="+afilnet_type+"&fileurl="+afilnet_fileurl+"&thumburl="+afilnet_thumburl+"&message="+afilnet_message; // 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="whatsapp"; String afilnet_method="getchats"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid; 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="whatsapp"; String afilnet_method="getchats"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid; // 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="whatsapp"; String afilnet_method="getchats"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid; // 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="whatsapp"; String afilnet_method="getchats"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid; // 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="whatsapp"; String afilnet_method="getmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; 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="whatsapp"; String afilnet_method="getmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; // 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="whatsapp"; String afilnet_method="getmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; // 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="whatsapp"; String afilnet_method="getmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; // 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="whatsapp"; String afilnet_method="getunreadmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; 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="whatsapp"; String afilnet_method="getunreadmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; // 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="whatsapp"; String afilnet_method="getunreadmessages"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_platformid="100"; String afilnet_destination="34600000000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&platformid="+afilnet_platformid+"&destination="+afilnet_destination; // 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()); }
اكتشف مزايا وعيوب كل من واجهات برمجة التطبيقات الخاصة بنا. اكتشف واجهة برمجة التطبيقات الأفضل لبرنامجك في {اللغة}.
تتيح لك واجهة برمجة التطبيقات هذه الاتصال بنا من Android لإرسال الطلبات عبر طلبات HTTP GET. يرسل هذا الطلب المعلمات في نفس عنوان URL مثل الطلب.
تسمح لك واجهة برمجة تطبيقات طلب POST بالاتصال بواجهة برمجة التطبيقات الخاصة بنا من Android عن طريق إرسال معلمات الطلب عبر معلمات HTTP POST. يتم إرسال المعلومات بشكل مستقل عن URL.
تسمح واجهة برمجة تطبيقات المصادقة الأساسية باستخدام طلبات GET و POST باللغة Android مع طبقة أمان إضافية ، لأنه في هذه الحالة يتم إرسال اسم المستخدم وكلمة المرور في رأس الطلب.
يتيح لك SOAP إرسال طلبات بتنسيق XML مع Android ، ويضيف SOAP طبقة أمان إضافية لطلبات API.
تتيح لك واجهة برمجة تطبيقات JSON الخاصة بنا إرسال الطلبات بتنسيق JSON مع {اللغة} ، بالإضافة إلى أن واجهة برمجة التطبيقات هذه تضيف بروتوكول oAuth 2.0 في المصادقة التي تتيح لك إضافة طبقة أمان إضافية.
من أجل الوصول إلى API ، يجب أن تكون عميل Afilnet. سيستغرق التسجيل بضع دقائق.
ستقدم لك شركتنا رصيدًا تجريبيًا يتيح لك الاختبار باستخدام واجهة برمجة التطبيقات التي تحتاجها.
قم بإجراء تكامل API باستخدام لغة البرمجة التي تختارها. إذا كان لديك أي أسئلة أو اقتراحات حول API ، فاتصل بنا
كل شيء جاهز! ، تمكن من تحسين اتصالاته مع Afilnet. نحن هنا لدعم API لدينا عند الحاجة إليها
تواصل مع فريقنا لطرح أي أسئلة من خلال طرق الاتصال التي نقدمها. سيحاول فريقنا أن يقدم لك حلاً فوريًا وسيساعدك في دمج API الخاص بنا في برنامجك.
سجل مجانا وجرب Afilnet! نحن نقدم لك نسخة تجريبية مجانية من خدماتنا. *
شركة *
اسم *
البريد الإلكتروني *
رقم الهاتف *
(*) الترويج صالح فقط للشركات التي لم تستخدم خدمة Afilnet من قبل. عند طلب الرصيد المجاني ، قد تطلب Afilnet التحقق من معلومات شركتك