Provádějte hromadné SMS kampaně, zasílejte upozornění, schůzky nebo oznámení prostřednictvím SMS.
Odesílejte zprávy prostřednictvím automatizovaných digitálních hlasových hovorů na jakékoli telefonní číslo na světě.
Posílejte SMS s certifikovaným obsahem, platné jako spolehlivý důkaz.
Posílejte SMS ze svého e-mailového účtu stejným způsobem, jakým posíláte e-mail
Spouštějte e-mailové marketingové kampaně, automatizujte kampaně a propojte se s e-mailem pokročilým způsobem
Odesílejte certifikovanou komunikaci s certifikovaným e-mailem ze svého e-mailového účtu
Server SMTP pro odesílání e-mailů optimalizovaný pro vylepšení vašich e-mailových marketingových kampaní
Vytvořte vstupní stránky pro své e-mailové kampaně a přilákejte nové zákazníky
Vytvářejte smlouvy a odesílejte je jakýmkoli kanálem, podepisujte smlouvy ručně
Generujte a odesílejte hesla pro jedno použití prostřednictvím libovolného kanálu
Zvyšte zabezpečení svých aplikací implementací dvojitého ověřování uživatelů
Propojte své podnikání s WhatsAPP. Posílejte oznámení a mluvte se svými zákazníky
Automatizujte chatové konverzace se svými zákazníky pomocí chatovacích robotů.
Spojte se s novými klienty díky naší službě Web Chat
Proveďte průzkum kvality a znáte názor svých zákazníků
Věřte svým zákazníkům zasíláním přizpůsobených slevových kupónů.
Automatizujte marketingové kampaně a automaticky získejte věrnost
Generujte QR kódy zcela zdarma z jakékoli adresy URL.
Vytvořte vstupní stránky díky našemu editoru přistání a posílejte je pomocí SMS, e-mailu nebo použijte, jak si přejete.
Vytvořte pro svůj web webový chat WhatsAPP kompatibilní se všemi platformami
Vytvářejte nádherné vlastní formuláře a legálně sestavujte databáze pro své marketingové kampaně
Odesílejte SMS ze svého softwaru pomocí našeho API
Odesílejte certifikované SMS, kontrolujte stav doručení a stahujte certifikáty pomocí našeho API.
Volejte automaticky ze svého softwaru
Odesílejte a automatizujte odesílání e-mailů přes API, propojte svůj software s e-mailovým marketingem
Spojte se se svými zákazníky pomocí WhatsAPP prostřednictvím API
Spravujte chatovací systém z API. Přístup nebo odpověď na konverzace z našeho API.
Odesílejte automatické hlasové hovory pomocí našeho API pro Java snadno a bezpečně. Vyzkoušejte zdarma naše rozhraní API pro jazyk Java. Náš tým vám pomůže integrovat automatické doručování hlasu do vaší aplikace v Java.
String afilnet_class="voice"; String afilnet_method="sendvoice"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_from="34900000000"; String afilnet_message="voice+test"; String afilnet_scheduledatetime=""; String afilnet_language="en"; String afilnet_voice="Joanna"; 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+"&from="+afilnet_from+"&message="+afilnet_message+"&scheduledatetime="+afilnet_scheduledatetime+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoice"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_from="34900000000"; String afilnet_message="voice+test"; String afilnet_scheduledatetime=""; String afilnet_language="en"; String afilnet_voice="Joanna"; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&to="+afilnet_to+"&from="+afilnet_from+"&message="+afilnet_message+"&scheduledatetime="+afilnet_scheduledatetime+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoice"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_from="34900000000"; String afilnet_message="voice+test"; String afilnet_scheduledatetime=""; String afilnet_language="en"; String afilnet_voice="Joanna"; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&to="+afilnet_to+"&from="+afilnet_from+"&message="+afilnet_message+"&scheduledatetime="+afilnet_scheduledatetime+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoice"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_to="34600000000"; String afilnet_from="34900000000"; String afilnet_message="voice+test"; String afilnet_scheduledatetime=""; String afilnet_language="en"; String afilnet_voice="Joanna"; String afilnet_output=""; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&to="+afilnet_to+"&from="+afilnet_from+"&message="+afilnet_message+"&scheduledatetime="+afilnet_scheduledatetime+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicefromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicefromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicefromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicefromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="34900000000"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_message="sms+test"; String afilnet_language="en"; String afilnet_voice="Joanna"; 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+"&message="+afilnet_message+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="34900000000"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_message="sms+test"; String afilnet_language="en"; String afilnet_voice="Joanna"; 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+"&message="+afilnet_message+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="34900000000"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_message="sms+test"; String afilnet_language="en"; String afilnet_voice="Joanna"; 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+"&message="+afilnet_message+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroup"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_from="34900000000"; String afilnet_countrycode="34"; String afilnet_idgroup="1"; String afilnet_message="sms+test"; String afilnet_language="en"; String afilnet_voice="Joanna"; 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+"&message="+afilnet_message+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroupfromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroupfromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroupfromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; String afilnet_method="sendvoicetogroupfromtemplate"; 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_language="en"; String afilnet_voice="Joanna"; 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+"&language="+afilnet_language+"&voice="+afilnet_voice+"&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="voice"; 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="voice"; 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="voice"; 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()); }
String afilnet_class="voice"; 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()); }String afilnet_class="voice"; String afilnet_method="getdeliverystatus"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_lang="en"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&lang="+afilnet_lang; 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="voice"; String afilnet_method="getdeliverystatus"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_lang="en"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&lang="+afilnet_lang; // 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="voice"; String afilnet_method="getdeliverystatus"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_lang="en"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&lang="+afilnet_lang; // 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()); }
Objevte výhody a nevýhody každého z našich API. Zjistěte, které API je pro váš software nejlepší v jazyce Java.
Toto rozhraní API vám umožňuje připojit se k nám z Java a odesílat požadavky prostřednictvím požadavků HTTP GET. Tento požadavek odešle parametry ve stejné adrese URL jako požadavek.
Rozhraní API požadavku POST vám umožňuje připojit se k našemu rozhraní API z Java odesláním parametrů požadavku prostřednictvím parametrů HTTP POST. Informace jsou odesílány nezávisle na URL.
Základní autentizační API umožňuje použití požadavků GET a POST v Java s další vrstvou zabezpečení, protože v tomto případě se uživatelské jméno a heslo zasílají v záhlaví požadavku.
SOAP umožňuje posílat požadavky ve formátu XML s Java, SOAP přidává další vrstvu zabezpečení žádostem API.
Naše JSON API vám umožňuje odesílat požadavky ve formátu JSON s Java, navíc toto API přidává do ověřování protokol oAuth 2.0, který vám umožňuje přidat další vrstvu zabezpečení.
Abyste měli přístup k API, musíte být klientem Afilnetu. Registrace zabere několik minut.
Naše společnost vám nabídne zkušební zůstatek, který vám umožní testovat s API, které potřebujete.
Proveďte integraci API pomocí programovacího jazyka dle vašeho výběru. Pokud máte nějaké dotazy nebo návrhy ohledně API, kontaktujte nás
Vše připraveno !, se podařilo zlepšit komunikaci s Afilnet. Jsme tu, abychom podporovali naše API, když to potřebujete
V případě dotazů kontaktujte náš tým prostřednictvím kontaktních metod, které nabízíme. Náš tým se vám pokusí nabídnout okamžité řešení a pomůže vám s integrací našeho API do vašeho softwaru.
Zaregistrujte se zdarma a vyzkoušejte Afilnet! Nabízíme vám bezplatnou zkušební verzi našich služeb. *
Společnost *
název *
E-mailem *
Telefonní číslo *
(*) Akce platí pouze pro společnosti, které nikdy předtím službu Afilnet nevyužívaly. Při žádosti o bezplatný zůstatek může Afilnet požádat o ověření informací o vaší společnosti