Kontakte-API

Verwalten Sie Ihre Gruppen (Gruppen erstellen, ändern oder löschen) und Kontakte mit unserer API für Kontakte.

Gruppe anlegen mit C Sharp

String afilnet_class="group";
String afilnet_method="creategroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_name="test name";
String afilnet_type="mobile";
String afilnet_fields="mobile,name,address";

// 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+"&name="+afilnet_name+"&type="+afilnet_type+"&fields="+afilnet_fields);
	
// 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"] = "group";
data["method"] = "creategroup";
data["user"] = "user";
data["password"] = "password";
data["name"] = "test name";
data["type"] = "mobile";
data["fields"] = "mobile,name,address";

// 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"] = "group";
data["method"] = "creategroup";
data["name"] = "test name";
data["type"] = "mobile";
data["fields"] = "mobile,name,address";

// 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="group";
String afilnet_method="creategroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_name="test name";
String afilnet_type="mobile";
String afilnet_fields="mobile,name,address";
	
// 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, "{\"name\":\""+afilnet_name+"\",\"type\":\""+afilnet_type+"\",\"fields\":\""+afilnet_fields+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=creategroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
name Gruppenname Zwigend
type Gruppentyp (email oder mobile) Zwigend
fields Felderauflistung per Kommas separat, obligatorisch zu enthalten einem Handyfeld Typ = mobile und einem Emailfelder ohne Typ = Email Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
INCORRECT_TYPE Inkorrekt Type, es must mobile oder Email zu sein
MISSING_MAIN_FIELD Es mangelt der Hauptfeld (mobile ob Type = mobile oder email ob Type = email)

Felder aus einer Gruppe abfragen mit C Sharp

String afilnet_class="group";
String afilnet_method="creategroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_name="test name";
String afilnet_type="mobile";
String afilnet_fields="mobile,name,address";
	
// 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, "{\"name\":\""+afilnet_name+"\",\"type\":\""+afilnet_type+"\",\"fields\":\""+afilnet_fields+"\"}");String afilnet_class="group";
String afilnet_method="getgroupcolumns";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";

// 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+"&idgroup="+afilnet_idgroup);
	
// 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"] = "group";
data["method"] = "getgroupcolumns";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";

// 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"] = "group";
data["method"] = "getgroupcolumns";
data["idgroup"] = "1000";

// 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="group";
String afilnet_method="getgroupcolumns";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=getgroupcolumns Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Feld zu einer Gruppe hinzufügen mit C Sharp

String afilnet_class="group";
String afilnet_method="getgroupcolumns";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\"}");String afilnet_class="group";
String afilnet_method="addcolumntogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_field="name";

// 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+"&idgroup="+afilnet_idgroup+"&field="+afilnet_field);
	
// 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"] = "group";
data["method"] = "addcolumntogroup";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["field"] = "name";

// 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"] = "group";
data["method"] = "addcolumntogroup";
data["idgroup"] = "1000";
data["field"] = "name";

// 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="group";
String afilnet_method="addcolumntogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_field="name";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=addcolumntogroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
field Gruppenfelder Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Feld aus einer Gruppe entfernen mit C Sharp

String afilnet_class="group";
String afilnet_method="addcolumntogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_field="name";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}");String afilnet_class="group";
String afilnet_method="deletecolumnfromgroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_field="name";

// 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+"&idgroup="+afilnet_idgroup+"&field="+afilnet_field);
	
// 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"] = "group";
data["method"] = "deletecolumnfromgroup";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["field"] = "name";

// 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"] = "group";
data["method"] = "deletecolumnfromgroup";
data["idgroup"] = "1000";
data["field"] = "name";

// 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="group";
String afilnet_method="deletecolumnfromgroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_field="name";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=deletecolumnfromgroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
field Gruppenfeler Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Löschen eines Gruppenkontakts mit C Sharp

String afilnet_class="group";
String afilnet_method="deletecolumnfromgroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_field="name";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}");String afilnet_class="group";
String afilnet_method="deletegroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";

// 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+"&idgroup="+afilnet_idgroup);
	
// 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"] = "group";
data["method"] = "deletegroup";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";

// 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"] = "group";
data["method"] = "deletegroup";
data["idgroup"] = "1000";

// 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="group";
String afilnet_method="deletegroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=deletegroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Land einer Gruppe zuordnen mit C Sharp

String afilnet_class="group";
String afilnet_method="deletegroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\"}");String afilnet_class="group";
String afilnet_method="assigncountrytogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_countryiso3="esp";

// 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+"&idgroup="+afilnet_idgroup+"&countryiso3="+afilnet_countryiso3);
	
// 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"] = "group";
data["method"] = "assigncountrytogroup";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["countryiso3"] = "esp";

// 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"] = "group";
data["method"] = "assigncountrytogroup";
data["idgroup"] = "1000";
data["countryiso3"] = "esp";

// 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="group";
String afilnet_method="assigncountrytogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_countryiso3="esp";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"countryiso3\":\""+afilnet_countryiso3+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=assigncountrytogroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
countryiso3 ISO Code auf das Land Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe
COUNTRY_NOT_FOUND Es gibt kein Land mit dem angegebenen Code

Gruppenkontakte abrufen mit C Sharp

String afilnet_class="group";
String afilnet_method="assigncountrytogroup";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_countryiso3="esp";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"countryiso3\":\""+afilnet_countryiso3+"\"}");String afilnet_class="group";
String afilnet_method="getcontacts";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";

// 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+"&idgroup="+afilnet_idgroup);
	
// 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"] = "group";
data["method"] = "getcontacts";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";

// 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"] = "group";
data["method"] = "getcontacts";
data["idgroup"] = "1000";

// 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="group";
String afilnet_method="getcontacts";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=getcontacts Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Holen Sie sich einen Kontakt aus einer Gruppe mit C Sharp

String afilnet_class="group";
String afilnet_method="getcontacts";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\"}");String afilnet_class="group";
String afilnet_method="getcontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";

// 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+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact);
	
// 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"] = "group";
data["method"] = "getcontact";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["idcontact"] = "1000";

// 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"] = "group";
data["method"] = "getcontact";
data["idgroup"] = "1000";
data["idcontact"] = "1000";

// 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="group";
String afilnet_method="getcontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=getcontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppen-ID Zwigend
idcontact Kontakt-ID Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe
NOT_ACCESS_TO_CONTACT ERROR_NOT_ACCESS_TO_CONTACT

Kontakt zur Gruppe hinzufügen mit C Sharp

String afilnet_class="group";
String afilnet_method="getcontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\"}");String afilnet_class="group";
String afilnet_method="addcontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_contact="mobile:123456789,name:testname";

// 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+"&idgroup="+afilnet_idgroup+"&contact="+afilnet_contact);
	
// 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"] = "group";
data["method"] = "addcontact";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["contact"] = "mobile:123456789,name:testname";

// 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"] = "group";
data["method"] = "addcontact";
data["idgroup"] = "1000";
data["contact"] = "mobile:123456789,name:testname";

// 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="group";
String afilnet_method="addcontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_contact="mobile:123456789,name:testname";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"contact\":\""+afilnet_contact+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=addcontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
contact Kontakt beizulegen mit die Felder bei Kommas getrennt, Beispiel versehen Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
CONTACT_EXISTS Kontakt existiert jetzt in der Gruppe
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Kontaktliste zu einer Gruppe mit C Sharp hinzufügen

String afilnet_class="group";
String afilnet_method="addcontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_contact="mobile:123456789,name:testname";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"contact\":\""+afilnet_contact+"\"}");String afilnet_class="group";
String afilnet_method="addcontactlist";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

// 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+"&idgroup="+afilnet_idgroup+"&contacts="+afilnet_contacts);
	
// 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"] = "group";
data["method"] = "addcontactlist";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["contacts"] = "[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

// 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"] = "group";
data["method"] = "addcontactlist";
data["idgroup"] = "1000";
data["contacts"] = "[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

// 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="group";
String afilnet_method="addcontactlist";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"contacts\":\""+afilnet_contacts+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=addcontactlist Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppen-ID Zwigend
contacts Kontaktliste im JSON-Format Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Kontakt der Gruppe ändern mit C Sharp

String afilnet_class="group";
String afilnet_method="addcontactlist";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"contacts\":\""+afilnet_contacts+"\"}");String afilnet_class="group";
String afilnet_method="modifycontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";
String afilnet_contact="mobile:123456789,name:testname";

// 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+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact+"&contact="+afilnet_contact);
	
// 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"] = "group";
data["method"] = "modifycontact";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["idcontact"] = "1000";
data["contact"] = "mobile:123456789,name:testname";

// 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"] = "group";
data["method"] = "modifycontact";
data["idgroup"] = "1000";
data["idcontact"] = "1000";
data["contact"] = "mobile:123456789,name:testname";

// 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="group";
String afilnet_method="modifycontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";
String afilnet_contact="mobile:123456789,name:testname";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\",\"contact\":\""+afilnet_contact+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=modifycontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
idcontact Kontaktekennung Zwigend
contact Kontakt hinzufügen mit die Felder per Kommas getrennt, Beispiel versehen Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Kontakt aus der Gruppe entfernen mit C Sharp

String afilnet_class="group";
String afilnet_method="modifycontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";
String afilnet_contact="mobile:123456789,name:testname";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\",\"contact\":\""+afilnet_contact+"\"}");String afilnet_class="group";
String afilnet_method="deletecontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";

// 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+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact);
	
// 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"] = "group";
data["method"] = "deletecontact";
data["user"] = "user";
data["password"] = "password";
data["idgroup"] = "1000";
data["idcontact"] = "1000";

// 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"] = "group";
data["method"] = "deletecontact";
data["idgroup"] = "1000";
data["idcontact"] = "1000";

// 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="group";
String afilnet_method="deletecontact";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idgroup="1000";
String afilnet_idcontact="1000";
	
// 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, "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\"}");
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=deletecontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
idcontact Kontaktekennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

Fehlercodes:
Code Beschreibung
MISSING_USER User / email nicht beiliegend
MISSING_PASSWORD Password nicht beiliegend
MISSING_CLASS Sorten nicht beiliegend
MISSING_METHOD Methode nicht beiliegend
MISSING_COMPULSORY_PARAM Parameterversicherung nicht beiliegend
INCORRECT_USER_PASSWORD User oder Passwort inkorrekt
INCORRECT_CLASS Inkorrekt Sorte
INCORRECT_METHOD Inkorrekt Methode
NOT_ACCESS_TO_GROUP Sie verfügt nicht auf die Erlaubnis für die geeignet Gruppe

Gibt den Zustellstatus von zertifizierten SMS mit PHP zurück Gibt den Zustellstatus von zertifizierten SMS mit Java zurück Gibt den Zustellstatus von zertifizierten SMS mit C Sharp zurück Gibt den Zustellstatus von zertifizierten SMS mit Unix zurück Gibt den Zustellstatus von zertifizierten SMS mit Ruby on rails zurück Gibt den Zustellstatus von zertifizierten SMS mit Python zurück Gibt den Zustellstatus von zertifizierten SMS mit Android zurück Gibt den Zustellstatus von zertifizierten SMS mit Objective C / iPhone zurück Gibt den Zustellstatus von zertifizierten SMS mit SQL Server zurück Gibt den Zustellstatus von zertifizierten SMS mit Oracle zurück Gibt den Zustellstatus von zertifizierten SMS mit Node JS zurück Gibt den Zustellstatus von zertifizierten SMS mit Go lang zurück Gibt den Zustellstatus von zertifizierten SMS mit Scala lang zurück Gibt den Zustellstatus von zertifizierten SMS mit Swift zurück Gibt den Zustellstatus von zertifizierten SMS mit Delphi zurück

Afilnet bietet Ihnen Methoden zur Verbesserung der Sicherheit bei der Verwendung unserer API mit C Sharp, dank der Möglichkeit, Zugriffe zu erstellen und die Möglichkeit, die Filterung nach IP zu aktivieren.

Welche API für C Sharp soll ich verwenden?

Entdecken Sie die Vor- und Nachteile jeder unserer APIs. Finden Sie heraus, welche API für Ihre Software in C Sharp am besten geeignet ist.

Mit dieser API können Sie von C Sharp aus eine Verbindung zu uns herstellen, um Anfragen über HTTP GET-Anfragen zu senden. Diese Anfrage sendet die Parameter in derselben URL wie die Anfrage.

  • HTTP GET ist extrem einfach zu implementieren
  • Informationen werden unverschlüsselt gesendet (Passwörter können aus Protokollen oder Cache extrahiert werden)
  • Maximale Anfrage von ~4000 Zeichen

Mit der POST-Anfrage-API können Sie von C Sharp aus eine Verbindung zu unserer API herstellen, indem Sie Anfrageparameter über HTTP-POST-Parameter senden. Die Informationen werden unabhängig von der URL gesendet.

  • HTTP POST ist einfach zu implementieren
  • Informationen werden verschlüsselt gesendet
  • Die Größe der Anfrage ist unbegrenzt
  • Mittlere Sicherheit

Die grundlegende Authentifizierungs-API ermöglicht die Verwendung von GET- und POST-Anfragen in C Sharp mit einer zusätzlichen Sicherheitsschicht, da in diesem Fall der Benutzername und das Passwort im Header der Anfrage gesendet werden.

  • Die Basisauthentifizierung ist einfach zu implementieren
  • Zugangsdaten werden verschlüsselt gesendet
  • Die Größenbeschränkung hängt von der Verwendung von GET oder POST ab
  • Mittlere Sicherheit

SOAP ermöglicht es Ihnen, Anfragen im XML-Format mit C Sharp zu senden, SOAP fügt API-Anfragen eine zusätzliche Sicherheitsebene hinzu.

  • Die SOAP-Integration ist komplexer
  • Informationen werden verschlüsselt gesendet
  • Die Größe der Anfrage ist unbegrenzt
  • Mittlere/hohe Sicherheit

Unsere JSON-API ermöglicht es Ihnen, Anfragen im JSON-Format mit C Sharp zu senden, zusätzlich fügt diese API das oAuth 2.0-Protokoll zur Authentifizierung hinzu, mit dem Sie eine zusätzliche Sicherheitsebene hinzufügen können.

  • Die JSON oAuth 2.0-Integration ist komplexer
  • Informationen werden verschlüsselt gesendet
  • Die Größe der Anfrage ist unbegrenzt
  • Hohe Sicherheit

Verbinden Sie C Sharp mit unserer KONTAKTE API

01

Registrieren Sie sich als Kunde

Um Zugriff auf die API zu haben, müssen Sie ein Afilnet-Kunde sein. Die Registrierung dauert einige Minuten.

02

Fordern Sie Ihre kostenlose Testversion an

Unser Unternehmen bietet Ihnen ein Testguthaben an, mit dem Sie mit der von Ihnen benötigten API testen können.

03

Integrieren Sie die API

Führen Sie die API-Integration mit der Programmiersprache Ihrer Wahl durch. Wenn Sie Fragen oder Anregungen zur API haben, kontaktieren Sie uns

04

Willkommen bei Afilnet!

Alles bereit! Hat es geschafft, seine Kommunikation mit Afilnet zu verbessern. Wir sind hier, um unsere API zu unterstützen, wenn Sie sie benötigen


Wenden Sie sich bei Fragen über die von uns angebotenen Kontaktmethoden an unser Team. Unser Team wird versuchen, Ihnen eine sofortige Lösung anzubieten und Ihnen bei der Integration unserer API in Ihre Software helfen.

Probieren Sie Afilnet kostenlos aus!

Melden Sie sich kostenlos an und testen Sie Afilnet! Wir bieten Ihnen eine kostenlose Testversion unserer Dienstleistungen an. *



(*) Die Aktion gilt nur für Unternehmen, die den Afilnet-Dienst noch nie zuvor genutzt haben. Wenn Sie das kostenlose Guthaben anfordern, kann Afilnet Sie auffordern, Ihre Unternehmensinformationen zu überprüfen


Massen-SMS · Email Marketing · Soziales Netzwerke · Instant Messaging · Zertifizierung · und vieles mehr
Weitergehen SEHR WICHTIGE INFORMATION ÜBER COOKIES: Diese Website gebraucht eigene cookies für einen beste Dienste opfern. Wenn Sie gehen gesurft weiter, denn bedenken wir dass Sie Ihre Gebrauch übernahmen. Sie wird mehr Information gefunden im unsere Cookiespolitik.
Zahlungsarten
Banküberweisung
Kreditkarte
Paypal
Western Union
Skrill
Crypto
Afilnet in Ihrer Sprache

Copyright © 2024 Afilnet · Alle Rechte vorbehalten