Faça campanhas de SMS em massa, envie alertas, compromissos ou notificações por SMS.
Envie mensagens por meio de chamadas de voz digital automatizadas para qualquer número de telefone no mundo.
Envie SMS com conteúdo certificado, válido como evidência confiável.
Envie SMS da sua conta de e-mail, da mesma forma que envia um e-mail
Execute campanhas de email marketing, automatize campanhas e conecte-se com email de forma avançada
Envie comunicações certificadas com e- mail certificado de sua conta de e-mail
Servidor SMTP para enviar e-mails otimizado para aprimorar suas campanhas de marketing por e-mail
Crie páginas de destino para suas campanhas de e-mail e atraia novos clientes
Crie contratos e envie-os através de qualquer canal, assine contratos escrevendo à mão
Gere e envie senhas de uso único por meio de qualquer canal
Aumente a segurança de seus aplicativos implementando autenticação dupla de usuário
Conecte sua empresa com o WhatsAPP. Envie notificações e converse com seus clientes
Automatize conversas de chat com seus clientes usando bots de chat.
Conecte-se a novos clientes graças ao nosso serviço de bate-papo na Web
Realize uma pesquisa de qualidade e conheça a opinião de seus clientes
Fidelize seus clientes enviando cupons de desconto personalizados.
Automatize campanhas de marketing e ganhe fidelidade automaticamente
códigos QR totalmente gratuitos em qualquer URL.
Crie páginas de destino graças ao nosso editor de desembarques e envie-as por SMS, e-mail ou use como desejar.
Gere um chat na web WhatsAPP para o seu site compatível com todas as plataformas
Crie lindos formulários personalizados e crie bancos de dados legalmente para suas campanhas de marketing
Envie SMS do seu Software com nossa API
Envie SMS Certificados, verifique o status de entrega e baixe certificados usando nossa API.
Faça chamadas automaticamente a partir do seu software
Envie e automatize o envio de emails através da API, conecte seu software ao Email Marketing
Conecte-se com seus clientes usando WhatsAPP por meio de API
Gerencie o sistema de bate-papo da API. Acesse ou responda a conversas de nossa API.
Envie chamadas de voz automatizadas com nossa API para Android com facilidade e segurança. Experimente nossa API para Android gratuitamente. Nossa equipe ajudará você a integrar a entrega de voz automatizada em seu aplicativo em Android.
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()); }
Descubra as vantagens e desvantagens de cada uma das nossas APIs. Descubra qual API é melhor para o seu Software em Android.
Essa API permite que você se conecte a nós de Android para enviar solicitações por meio de solicitações HTTP GET. Essa solicitação envia os parâmetros na mesma URL da solicitação.
A API de solicitação POST permite que você se conecte à nossa API de Android enviando parâmetros de solicitação por meio de parâmetros HTTP POST. As informações são enviadas independentemente da URL.
A API de autenticação básica permite o uso de solicitações GET e POST em Android com uma camada de segurança adicional, pois neste caso o nome de usuário e a senha são enviados no cabeçalho da solicitação.
SOAP permite enviar solicitações em formato XML com Android, SOAP adiciona uma camada extra de segurança às solicitações de API.
Nossa API JSON permite enviar solicitações em formato JSON com Android, além disso, essa API adiciona o protocolo oAuth 2.0 na autenticação que permite adicionar uma camada adicional de segurança.
Para ter acesso à API você deve ser um cliente Afilnet. O registro levará alguns minutos.
Nossa empresa lhe oferecerá um balancete que lhe permitirá testar com a API que você precisa.
Realize a integração da API usando a linguagem de programação de sua escolha. Se você tiver dúvidas ou sugestões sobre a API, entre em contato conosco
Tudo pronto!, conseguiu melhorar as suas comunicações com a Afilnet. Estamos aqui para dar suporte à nossa API quando você precisar
Em caso de dúvidas, entre em contato com nossa equipe através dos meios de contato que oferecemos. Nossa equipe tentará lhe oferecer uma solução imediata e lhe ajudará na integração de nossa API em seu Software.
Cadastre-se gratuitamente e experimente Afilnet! Oferecemos a você uma avaliação gratuita de nossos serviços. *
Empresa *
Nome *
Email *
Número de telefone *
(*) Promoção válida apenas para empresas que nunca utilizaram o serviço Afilnet. Ao solicitar o saldo gratuito, a Afilnet pode solicitar a verificação das informações da sua empresa