API de SMS para C Sharp

Envie SMS com nossa API para C Sharp com facilidade e segurança. Experimente nossa API para C Sharp gratuitamente. Nossa equipe ajudará você a integrar o envio de SMS em seu aplicativo em C Sharp.

Funcionalidade da API de SMS

Envie SMS com C Sharp

Este método le permite enviar SMS a un destinatario utilizando C Sharp. Enviar un SMS con C Sharp es tan sencillo como enviar el origin, destino y el mensaje a enviar a través de una petición a nuestra API.
String afilnet_class="sms";
String afilnet_method="sendsms";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_from="Afilnet";
String afilnet_to="34600000000";
String afilnet_sms="sms+test";
String afilnet_scheduledatetime="";
String afilnet_output="";

// Create an URL request
WebRequest request = WebRequest.Create("https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&from="+afilnet_from+"&to="+afilnet_to+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output);
	
// Get the response
WebResponse response = request.GetResponse ();

// Get the stream returned by the server
Stream dataStream = response.GetResponseStream();

// Open the stream
StreamReader reader = new StreamReader (dataStream);

// Read the Response
String result = reader.ReadToEnd ();

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsms";
data["user"] = "user";
data["password"] = "password";
data["from"] = "Afilnet";
data["to"] = "34600000000";
data["sms"] = "sms+test";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient();

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/http/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsms";
data["from"] = "Afilnet";
data["to"] = "34600000000";
data["sms"] = "sms+test";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient { Credentials = new NetworkCredential("user", "password") };

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/basic/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);
String afilnet_class="sms";
String afilnet_method="sendsms";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_from="Afilnet";
String afilnet_to="34600000000";
String afilnet_sms="sms+test";
String afilnet_scheduledatetime="";
String afilnet_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"from\":\""+afilnet_from+"\",\"to\":\""+afilnet_to+"\",\"sms\":\""+afilnet_sms+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");
Parâmetro Descrição Mandatório / Opcional
class=sms Classe pedida: Classe à qual o pedido é requisitado Mandatório
method=sendsms Método de classe requisitado: Método da classe à qual o pedido é requisitado Mandatório
user Utilizador e email da sua conta Afilnet Mandatório
password Password da sua conta Afilnet Mandatório
from Remetente Mandatório
to Número de telemóvel do destinatário Mandatório
sms Mensagem SMS a enviar Mandatório
scheduledatetime Data e hora do envio no formato aaaa-mm-dd hh:mm:ss Opcional
output Formato de output do resultado Opcional
Responda:
  • status
  • result (if status=success), aqui receberá os seguintes valores:
    • messageid
    • credits
  • error (if status=error), aqui receberá o código de erro

Códigos de erro:
Código Descrição
MISSING_USER Utilizador ou email não incluído
MISSING_PASSWORD Password não incluída
MISSING_CLASS Classe não incluída
MISSING_METHOD Método não incluído
MISSING_COMPULSORY_PARAM Parâmetro obrigatório não incluído
INCORRECT_USER_PASSWORD Utilizador ou password incorretos
INCORRECT_CLASS Classe incorreta
INCORRECT_METHOD Método incorreto
NO_ROUTE_AVAILABLE Não há caminhos disponíveis para o destino indicado
NO_CREDITS O seu saldo é insuficiente

Enviar SMS a partir de template com C Sharp

String afilnet_class="sms";
String afilnet_method="sendsms";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_from="Afilnet";
String afilnet_to="34600000000";
String afilnet_sms="sms+test";
String afilnet_scheduledatetime="";
String afilnet_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"from\":\""+afilnet_from+"\",\"to\":\""+afilnet_to+"\",\"sms\":\""+afilnet_sms+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");String afilnet_class="sms";
String afilnet_method="sendsmsfromtemplate";
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_output="";

// Create an URL request
WebRequest request = WebRequest.Create("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+"&output="+afilnet_output);
	
// Get the response
WebResponse response = request.GetResponse ();

// Get the stream returned by the server
Stream dataStream = response.GetResponseStream();

// Open the stream
StreamReader reader = new StreamReader (dataStream);

// Read the Response
String result = reader.ReadToEnd ();

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsmsfromtemplate";
data["user"] = "user";
data["password"] = "password";
data["to"] = "34600000000";
data["idtemplate"] = "1000";
data["params"] = "mobile:123456789,name:test+name";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient();

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/http/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsmsfromtemplate";
data["to"] = "34600000000";
data["idtemplate"] = "1000";
data["params"] = "mobile:123456789,name:test+name";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient { Credentials = new NetworkCredential("user", "password") };

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/basic/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);
String afilnet_class="sms";
String afilnet_method="sendsmsfromtemplate";
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_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"to\":\""+afilnet_to+"\",\"idtemplate\":\""+afilnet_idtemplate+"\",\"params\":\""+afilnet_params+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");
Parâmetro Descrição Mandatório / Opcional
class=sms Classe pedida: Classe à qual o pedido é requisitado Mandatório
method=sendsmsfromtemplate Método de classe requisitado: Método da classe à qual o pedido é requisitado Mandatório
user Utilizador e email da sua conta Afilnet Mandatório
password Password da sua conta Afilnet Mandatório
to Número de telemóvel do destino Mandatório
idtemplate Identificador do template Mandatório
params Parâmetros a serem substituídos no template para customização (<>), separados por , (vírgulas) Opcional
scheduledatetime Data e hora do envio no formato aaaa-mm-dd hh:mm:ss Opcional
output Formato de output do resultado Opcional
Responda:
  • status
  • result (if status=success), aqui receberá os seguintes valores:
    • messageid
    • credits
  • error (if status=error), aqui receberá o código de erro

Códigos de erro:
Código Descrição
MISSING_USER Utilizador ou email não incluído
MISSING_PASSWORD Password não incluída
MISSING_CLASS Classe não incluída
MISSING_METHOD Método não incluído
MISSING_COMPULSORY_PARAM Parâmetro obrigatório não incluído
INCORRECT_USER_PASSWORD Utilizador ou password incorretos
INCORRECT_CLASS Classe incorreta
INCORRECT_METHOD Método incorreto
NO_ROUTE_AVAILABLE Não há caminhos disponíveis para o destino indicado
NO_CREDITS O seu saldo é insuficiente
NOT_ACCESS_TO_TEMPLATE Não tem acesso ao template indicado

Envie SMS em massa com C Sharp

Con este método puede enviar con C Sharp campañas de SMS Masivo a grupos de contactos que haya creado. Incluya el grupo, el prefijo del país, el remitente, el SMS a enviar. Este método le permite enviar campañas de SMS Masivo sin limite de destinatarios con C Sharp.
String afilnet_class="sms";
String afilnet_method="sendsmsfromtemplate";
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_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"to\":\""+afilnet_to+"\",\"idtemplate\":\""+afilnet_idtemplate+"\",\"params\":\""+afilnet_params+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");String afilnet_class="sms";
String afilnet_method="sendsmstogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_from="Afilnet";
String afilnet_countrycode="34";
String afilnet_idgroup="1";
String afilnet_sms="sms+test";
String afilnet_scheduledatetime="";
String afilnet_output="";

// Create an URL request
WebRequest request = WebRequest.Create("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+"&sms="+afilnet_sms+"&scheduledatetime="+afilnet_scheduledatetime+"&output="+afilnet_output);
	
// Get the response
WebResponse response = request.GetResponse ();

// Get the stream returned by the server
Stream dataStream = response.GetResponseStream();

// Open the stream
StreamReader reader = new StreamReader (dataStream);

// Read the Response
String result = reader.ReadToEnd ();

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsmstogroup";
data["user"] = "user";
data["password"] = "password";
data["from"] = "Afilnet";
data["countrycode"] = "34";
data["idgroup"] = "1";
data["sms"] = "sms+test";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient();

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/http/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsmstogroup";
data["from"] = "Afilnet";
data["countrycode"] = "34";
data["idgroup"] = "1";
data["sms"] = "sms+test";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient { Credentials = new NetworkCredential("user", "password") };

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/basic/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);
String afilnet_class="sms";
String afilnet_method="sendsmstogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_from="Afilnet";
String afilnet_countrycode="34";
String afilnet_idgroup="1";
String afilnet_sms="sms+test";
String afilnet_scheduledatetime="";
String afilnet_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"from\":\""+afilnet_from+"\",\"countrycode\":\""+afilnet_countrycode+"\",\"idgroup\":\""+afilnet_idgroup+"\",\"sms\":\""+afilnet_sms+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");
Parâmetro Descrição Mandatório / Opcional
class=sms Classe pedida: Classe à qual o pedido é requisitado Mandatório
method=sendsmstogroup Método de classe requisitado: Método da classe à qual o pedido é requisitado Mandatório
user Utilizador e email da sua conta Afilnet Mandatório
password Password da sua conta Afilnet Mandatório
from Remetente Mandatório
countrycode Indicativo do país Mandatório
idgroup Identificador do grupo de destinatários Mandatório
sms Mensagem a enviar Mandatório
scheduledatetime Data e hora da entrega no formato aaaa-mm-dd hh:mm:ss Opcional
output Formato de output do resultado Opcional
Responda:
  • status
  • result (if status=success), aqui receberá os seguintes valores:
    • id
    • count
    • credits
    • destinations
      • messageid
      • destination
  • error (if status=error), aqui receberá o código de erro

Códigos de erro:
Código Descrição
MISSING_USER Utilizador ou email não incluído
MISSING_PASSWORD Password não incluída
MISSING_CLASS Classe não incluída
MISSING_METHOD Método não incluído
MISSING_COMPULSORY_PARAM Parâmetro obrigatório não incluído
INCORRECT_USER_PASSWORD Utilizador ou password incorretos
INCORRECT_CLASS Classe incorreta
INCORRECT_METHOD Método incorreto
NOT_ACCESS_TO_GROUP Não tem acesso ao grupo indicado
NO_CREDITS O seu saldo é insuficiente

Enviar SMS em massa a partir de template com C Sharp

String afilnet_class="sms";
String afilnet_method="sendsmstogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_from="Afilnet";
String afilnet_countrycode="34";
String afilnet_idgroup="1";
String afilnet_sms="sms+test";
String afilnet_scheduledatetime="";
String afilnet_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"from\":\""+afilnet_from+"\",\"countrycode\":\""+afilnet_countrycode+"\",\"idgroup\":\""+afilnet_idgroup+"\",\"sms\":\""+afilnet_sms+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");String afilnet_class="sms";
String afilnet_method="sendsmstogroupfromtemplate";
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_output="";

// Create an URL request
WebRequest request = WebRequest.Create("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+"&output="+afilnet_output);
	
// Get the response
WebResponse response = request.GetResponse ();

// Get the stream returned by the server
Stream dataStream = response.GetResponseStream();

// Open the stream
StreamReader reader = new StreamReader (dataStream);

// Read the Response
String result = reader.ReadToEnd ();

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsmstogroupfromtemplate";
data["user"] = "user";
data["password"] = "password";
data["countrycode"] = "34";
data["idgroup"] = "1";
data["idtemplate"] = "1000";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient();

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/http/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "sendsmstogroupfromtemplate";
data["countrycode"] = "34";
data["idgroup"] = "1";
data["idtemplate"] = "1000";
data["scheduledatetime"] = "";
data["output"] = "";

// Create Web client 
var wb = new WebClient { Credentials = new NetworkCredential("user", "password") };

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/basic/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);
String afilnet_class="sms";
String afilnet_method="sendsmstogroupfromtemplate";
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_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"countrycode\":\""+afilnet_countrycode+"\",\"idgroup\":\""+afilnet_idgroup+"\",\"idtemplate\":\""+afilnet_idtemplate+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");
Parâmetro Descrição Mandatório / Opcional
class=sms Classe pedida: Classe à qual o pedido é requisitado Mandatório
method=sendsmstogroupfromtemplate Método de classe requisitado: Método da classe à qual o pedido é requisitado Mandatório
user Utilizador e email da sua conta Afilnet Mandatório
password Password da sua conta Afilnet Mandatório
countrycode Indicativo do país Mandatório
idgroup Identificador do grupo de destino Mandatório
idtemplate Identificador do template Mandatório
scheduledatetime Data e hora do envio no formato aaaa-mm-dd hh:mm:ss Opcional
output Formato de output do resultado Opcional
Responda:
  • status
  • result (if status=success), aqui receberá os seguintes valores:
    • id
    • count
    • credits
    • destinations
      • messageid
      • destination
  • error (if status=error), aqui receberá o código de erro

Códigos de erro:
Código Descrição
MISSING_USER Utilizador ou email não incluído
MISSING_PASSWORD Password não incluída
MISSING_CLASS Classe não incluída
MISSING_METHOD Método não incluído
MISSING_COMPULSORY_PARAM Parâmetro obrigatório não incluído
INCORRECT_USER_PASSWORD Utilizador ou password incorretos
INCORRECT_CLASS Classe incorreta
INCORRECT_METHOD Método incorreto
NOT_ACCESS_TO_GROUP Não tem acesso ao grupo indicado
NO_CREDITS O seu saldo é insuficiente

Obter estado de entrega de SMS com C Sharp

String afilnet_class="sms";
String afilnet_method="sendsmstogroupfromtemplate";
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_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"countrycode\":\""+afilnet_countrycode+"\",\"idgroup\":\""+afilnet_idgroup+"\",\"idtemplate\":\""+afilnet_idtemplate+"\",\"scheduledatetime\":\""+afilnet_scheduledatetime+"\",\"output\":\""+afilnet_output+"\"}");String afilnet_class="sms";
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
WebRequest request = WebRequest.Create("https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&messages="+afilnet_messages+"&output="+afilnet_output);
	
// Get the response
WebResponse response = request.GetResponse ();

// Get the stream returned by the server
Stream dataStream = response.GetResponseStream();

// Open the stream
StreamReader reader = new StreamReader (dataStream);

// Read the Response
String result = reader.ReadToEnd ();

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "getdeliverystatus";
data["user"] = "user";
data["password"] = "password";
data["messages"] = "123456,123457,123458";
data["output"] = "";

// Create Web client 
var wb = new WebClient();

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/http/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);

// Asign vars
var data = new NameValueCollection();
data["class"] = "sms";
data["method"] = "getdeliverystatus";
data["messages"] = "123456,123457,123458";
data["output"] = "";

// Create Web client 
var wb = new WebClient { Credentials = new NetworkCredential("user", "password") };

// Execute POST petition
var response = wb.UploadValues("https://www.afilnet.com/api/basic/", "POST", data);

// Get response
string responseString = Encoding.UTF8.GetString(response);
String afilnet_class="sms";
String afilnet_method="getdeliverystatus";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_messages="123456,123457,123458";
String afilnet_output="";
	
// Allow SSL/TLS config
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// We create the webservice instance (Register Web Service first in project)
var service = new WebService.ApplicationServicesPortTypeClient();

// Call to WebService method
String response = service.call(afilnet_user, afilnet_password, afilnet_class, afilnet_method, "{\"messages\":\""+afilnet_messages+"\",\"output\":\""+afilnet_output+"\"}");
Parâmetro Descrição Mandatório / Opcional
class=sms Classe pedida: Classe à qual o pedido é requisitado Mandatório
method=getdeliverystatus Método de classe requisitado: Método da classe à qual o pedido é requisitado Mandatório
user Utilizador e email da sua conta Afilnet Mandatório
password Password da sua conta Afilnet Mandatório
messages Lista de identificadores de envio separados por vírgulas (,) Mandatório
output Formato de output do resultado Opcional
Responda:
  • status
  • result (if status=success), aqui receberá os seguintes valores:
    • messageid
    • sms
    • deliverydate
    • deliverystatus
  • error (if status=error), aqui receberá o código de erro

Códigos de erro:
Código Descrição
MISSING_USER Utilizador ou email não incluído
MISSING_PASSWORD Password não incluída
MISSING_CLASS Classe não incluída
MISSING_METHOD Método não incluído
MISSING_COMPULSORY_PARAM Parâmetro obrigatório não incluído
INCORRECT_USER_PASSWORD Utilizador ou password incorretos
INCORRECT_CLASS Classe incorreta
INCORRECT_METHOD Método incorreto

API de SMS para

Retorna o status de entrega do SMS certificado com PHP Retorna o status de entrega do SMS certificado com Java Retorna o status de entrega do SMS certificado com C Sharp Retorna o status de entrega do SMS certificado com Unix Retorna o status de entrega do SMS certificado com Ruby on rails Retorna o status de entrega do SMS certificado com Python Retorna o status de entrega do SMS certificado com Android Retorna o status de entrega do SMS certificado com Objective C / iPhone Retorna o status de entrega do SMS certificado com SQL Server Retorna o status de entrega do SMS certificado com Oracle Retorna o status de entrega do SMS certificado com Node JS Retorna o status de entrega do SMS certificado com Go lang Retorna o status de entrega do SMS certificado com Scala lang Retorna o status de entrega do SMS certificado com Swift Retorna o status de entrega do SMS certificado com Delphi

A Afilnet oferece-lhe métodos para melhorar a segurança ao utilizar a nossa API com C Sharp, graças à possibilidade de criar acessos e à possibilidade de ativar a filtragem por IP.

Qual API para C Sharp devo usar?

Descubra as vantagens e desvantagens de cada uma das nossas APIs. Descubra qual API é melhor para o seu Software em C Sharp.

Essa API permite que você se conecte a nós de C Sharp para enviar solicitações por meio de solicitações HTTP GET. Essa solicitação envia os parâmetros na mesma URL da solicitação.

  • HTTP GET é extremamente simples de implementar
  • As informações são enviadas sem criptografia (as senhas podem ser extraídas de logs ou cache)
  • Solicitação máxima de aproximadamente 4.000 caracteres

A API de solicitação POST permite que você se conecte à nossa API de C Sharp enviando parâmetros de solicitação por meio de parâmetros HTTP POST. As informações são enviadas independentemente da URL.

  • HTTP POST é simples de implementar
  • As informações são enviadas criptografadas
  • Não há limite para o tamanho da solicitação
  • Segurança média

A API de autenticação básica permite o uso de solicitações GET e POST em C Sharp 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.

  • A autenticação básica é fácil de implementar
  • Os dados de acesso são enviados criptografados
  • O limite de tamanho depende do uso de GET ou POST
  • Segurança média

SOAP permite enviar solicitações em formato XML com C Sharp, SOAP adiciona uma camada extra de segurança às solicitações de API.

  • A integração SOAP é mais complexa
  • As informações são enviadas criptografadas
  • Não há limite para o tamanho da solicitação
  • Segurança média/alta

Nossa API JSON permite enviar solicitações em formato JSON com C Sharp, além disso, essa API adiciona o protocolo oAuth 2.0 na autenticação que permite adicionar uma camada adicional de segurança.

  • A integração JSON oAuth 2.0 é mais complexa
  • As informações são enviadas criptografadas
  • Não há limite para o tamanho da solicitação
  • Alta seguranca

Conecte C Sharp com nossa API SMS

Nossa API de SMS permite enviar SMS ou executar campanhas de maneira fácil, rápida e eficiente. O processo que você precisa seguir para poder usar nossa API levará apenas alguns minutos. Nossa empresa oferecerá uma avaliação gratuita para que você possa enviar SMS com C Sharp.

01

Registre-se como um cliente

Para ter acesso à API você deve ser um cliente Afilnet. O registro levará alguns minutos.

02

Solicite sua avaliação gratuita

Nossa empresa lhe oferecerá um balancete que lhe permitirá testar com a API que você precisa.

03

Integrar a API

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

04

Bem vindo ao Afilnet!

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.

Experimente o Afilnet de graça!

Cadastre-se gratuitamente e experimente Afilnet! Oferecemos a você uma avaliação gratuita de nossos serviços. *



(*) 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


SMS em massa · Email marketing · Rede social · Mensagem instantânea · Certificação · e muito mais
Continuar INFORMAÇÃO IMPORTANTE SOBRE COOKIES: Se continuar a utilizar este website iremos assumir que aceita os termos de uso. Encontrará mais informação em Política de Cookies.
Métodos de Pagamento
Transferência bancária
Cartão de crédito
Paypal
Western Union
Skrill
Crypto
Afilnet no seu idioma

Copyright © 2024 Afilnet · Todos os direitos reservados