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.
Spravujte informace o uživatelích, zjistěte zůstatek na svém účtu a spravujte své adresy.
String afilnet_class="user"; String afilnet_method="getbalance"; String afilnet_user="user"; String afilnet_password="password"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password; 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="user"; String afilnet_method="getbalance"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password; // 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="user"; String afilnet_method="getbalance"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method; // 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="user"; String afilnet_method="getbalance"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method; // 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="user"; String afilnet_method="addaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_namelastname="name+lastname"; String afilnet_iscompany="1"; String afilnet_companyname="mycompany"; String afilnet_documentid="123456789A"; String afilnet_countrycode="us"; String afilnet_cityid="1"; String afilnet_cityname="town"; String afilnet_zipcode="123456"; String afilnet_address="address"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&namelastname="+afilnet_namelastname+"&iscompany="+afilnet_iscompany+"&companyname="+afilnet_companyname+"&documentid="+afilnet_documentid+"&countrycode="+afilnet_countrycode+"&cityid="+afilnet_cityid+"&cityname="+afilnet_cityname+"&zipcode="+afilnet_zipcode+"&address="+afilnet_address; 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="user"; String afilnet_method="addaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_namelastname="name+lastname"; String afilnet_iscompany="1"; String afilnet_companyname="mycompany"; String afilnet_documentid="123456789A"; String afilnet_countrycode="us"; String afilnet_cityid="1"; String afilnet_cityname="town"; String afilnet_zipcode="123456"; String afilnet_address="address"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&namelastname="+afilnet_namelastname+"&iscompany="+afilnet_iscompany+"&companyname="+afilnet_companyname+"&documentid="+afilnet_documentid+"&countrycode="+afilnet_countrycode+"&cityid="+afilnet_cityid+"&cityname="+afilnet_cityname+"&zipcode="+afilnet_zipcode+"&address="+afilnet_address; // 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="user"; String afilnet_method="addaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_namelastname="name+lastname"; String afilnet_iscompany="1"; String afilnet_companyname="mycompany"; String afilnet_documentid="123456789A"; String afilnet_countrycode="us"; String afilnet_cityid="1"; String afilnet_cityname="town"; String afilnet_zipcode="123456"; String afilnet_address="address"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&namelastname="+afilnet_namelastname+"&iscompany="+afilnet_iscompany+"&companyname="+afilnet_companyname+"&documentid="+afilnet_documentid+"&countrycode="+afilnet_countrycode+"&cityid="+afilnet_cityid+"&cityname="+afilnet_cityname+"&zipcode="+afilnet_zipcode+"&address="+afilnet_address; // 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="user"; String afilnet_method="addaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_namelastname="name+lastname"; String afilnet_iscompany="1"; String afilnet_companyname="mycompany"; String afilnet_documentid="123456789A"; String afilnet_countrycode="us"; String afilnet_cityid="1"; String afilnet_cityname="town"; String afilnet_zipcode="123456"; String afilnet_address="address"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&namelastname="+afilnet_namelastname+"&iscompany="+afilnet_iscompany+"&companyname="+afilnet_companyname+"&documentid="+afilnet_documentid+"&countrycode="+afilnet_countrycode+"&cityid="+afilnet_cityid+"&cityname="+afilnet_cityname+"&zipcode="+afilnet_zipcode+"&address="+afilnet_address; // 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="user"; String afilnet_method="deleteaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_idaddress="1000"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idaddress="+afilnet_idaddress; 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="user"; String afilnet_method="deleteaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_idaddress="1000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idaddress="+afilnet_idaddress; // 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="user"; String afilnet_method="deleteaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_idaddress="1000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&idaddress="+afilnet_idaddress; // 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="user"; String afilnet_method="deleteaddress"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_idaddress="1000"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&idaddress="+afilnet_idaddress; // 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="user"; String afilnet_method="getaddresses"; String afilnet_user="user"; String afilnet_password="password"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password; 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="user"; String afilnet_method="getaddresses"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password; // 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="user"; String afilnet_method="getaddresses"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method; // 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="user"; String afilnet_method="getaddresses"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method; // 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="user"; String afilnet_method="getchannels"; String afilnet_user="user"; String afilnet_password="password"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password; 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="user"; String afilnet_method="getchannels"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password; // 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="user"; String afilnet_method="getchannels"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method; // 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="user"; String afilnet_method="getchannels"; String afilnet_user="user"; String afilnet_password="password"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method; // 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="user"; String afilnet_method="modifychannel"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_channelname="sms"; String afilnet_active="1"; // Create an URL request String sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&channelname="+afilnet_channelname+"&active="+afilnet_active; 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="user"; String afilnet_method="modifychannel"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_channelname="sms"; String afilnet_active="1"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&channelname="+afilnet_channelname+"&active="+afilnet_active; // 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="user"; String afilnet_method="modifychannel"; String afilnet_user="user"; String afilnet_password="password"; String afilnet_channelname="sms"; String afilnet_active="1"; // Create the POST request String post = "class="+afilnet_class+"&method="+afilnet_method+"&channelname="+afilnet_channelname+"&active="+afilnet_active; // 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