Crea campagne SMS collettive, invia avvisi, appuntamenti o notifiche tramite SMS.
Invia messaggi tramite chiamate vocali digitali automatizzate a qualsiasi numero di telefono nel mondo.
Invia SMS con contenuto certificato, valido come prova affidabile.
Invia SMS dal tuo account di posta elettronica, nello stesso modo in cui invii un'email
Esegui campagne di email marketing, automatizza le campagne e connettiti con la posta elettronica in modo avanzato
Invia comunicazioni certificate con posta elettronica certificata dal tuo account di posta elettronica
Server SMTP per inviare email ottimizzato per migliorare le tue campagne di Email Marketing
Crea landing page per le tue campagne email e attira nuovi clienti
Crea contratti e inviali tramite qualsiasi canale, firma contratti con la scrittura a mano
Genera e invia password monouso attraverso qualsiasi canale
Aumenta la sicurezza delle tue applicazioni implementando la doppia autenticazione utente
Connetti la tua azienda con WhatsAPP. Invia notifiche e parla con i tuoi clienti
Automatizza le conversazioni di chat con i tuoi clienti utilizzando i chat bot.
Connettiti con nuovi clienti grazie al nostro servizio di chat Web
Effettua un sondaggio di qualità e conosci l'opinione dei tuoi clienti
Fidelizza i tuoi clienti inviando buoni sconto personalizzati.
Automatizza le campagne di marketing e ottieni automaticamente fedeltà
Genera codici QR completamente gratuiti da qualsiasi URL.
Crea landing page grazie al nostro editor di atterraggi e inviale tramite SMS, e-mail o usa come desideri.
Genera una chat web WhatsAPP per il tuo sito web compatibile con tutte le piattaforme
Crea splendidi moduli personalizzati e crea legalmente database per le tue campagne di marketing
Invia SMS dal tuo software con la nostra API
Invia SMS certificati, controlla lo stato di consegna e scarica i certificati utilizzando la nostra API.
Effettua chiamate automaticamente dal tuo software
Invia e automatizza l'invio di e-mail tramite API, collega il tuo software con l'Email Marketing
Connettiti con i tuoi clienti utilizzando WhatsAPP tramite API
Gestisci il sistema di chat dall'API. Accedi o rispondi alle conversazioni dalla nostra API.
Invia messaggi WhatsAPP con la nostra API per Java in modo facile e sicuro. Prova gratuitamente la nostra API per Java. Il nostro team ti aiuterà a integrare l'invio automatico di WhatsAPP nella tua applicazione in Java.
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()); }
Scopri i vantaggi e gli svantaggi di ciascuna delle nostre API. Scopri quale API è la migliore per il tuo software in Java.
Questa API ti consente di connetterti a noi da Java per inviare richieste tramite richieste HTTP GET. Questa richiesta invia i parametri nello stesso URL della richiesta.
L'API di richiesta POST ti consente di connetterti alla nostra API da Java inviando parametri di richiesta tramite parametri POST HTTP. Le informazioni vengono inviate indipendentemente dall'URL.
L'API di autenticazione di base consente l'utilizzo di richieste GET e POST in Java con un livello di sicurezza aggiuntivo, poiché in questo caso nome utente e password vengono inviati nell'intestazione della richiesta.
SOAP ti consente di inviare richieste in formato XML con Java, SOAP aggiunge un ulteriore livello di sicurezza alle richieste API.
La nostra API JSON ti consente di inviare richieste in formato JSON con Java, inoltre questa API aggiunge il protocollo oAuth 2.0 nell'autenticazione che ti consente di aggiungere un ulteriore livello di sicurezza.
Per poter accedere all'API devi essere un client Afilnet. La registrazione richiederà alcuni minuti.
La nostra azienda ti offrirà un saldo di prova che ti consentirà di testare con l'API di cui hai bisogno.
Esegui l'integrazione API utilizzando il linguaggio di programmazione di tua scelta. Se hai domande o suggerimenti sull'API, contattaci
Tutto pronto!, È riuscito a migliorare le sue comunicazioni con Afilnet. Siamo qui per supportare la nostra API quando ne hai bisogno
Contatta il nostro team per qualsiasi domanda tramite i metodi di contatto che offriamo. Il nostro team cercherà di offrirti una soluzione immediata e ti aiuterà nell'integrazione della nostra API nel tuo Software.
Registrati gratuitamente e prova Afilnet! Ti offriamo una prova gratuita dei nostri servizi. *
Azienda *
Nome *
Email *
Telefono *
(*) Promozione valida solo per le aziende che non hanno mai utilizzato prima il servizio Afilnet. Al momento della richiesta del saldo gratuito, Afilnet potrebbe richiedere di verificare le informazioni della tua azienda