Kontaktide API

Hallake oma gruppe (looge, muutke või kustutage rühmi) ja kontakte meie kontaktide API-ga.

Looge grupp C sharp abil

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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=creategroup Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
name Rühma nimi Kohustuslik
type Grupi tüüp (e-post või mobiiltelefon) Kohustuslik
fields Komadega eraldatud väljade loetelu. Kohustuslik on lisada mobiilne väli, kui tüüp = mobiil ja e-posti väli, kui tüüp = email Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
INCORRECT_TYPE Vale tüüp. Tüüp peab olema mobiiltelefon või e-post
MISSING_MAIN_FIELD Põhiväli puudub (mobiil, kui tüüp = mobiil või e-post, kui tüüp = email)

Hankige grupi väli C sharp abil

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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=getgroupcolumns Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Lisage väli rühmale, kus on 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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=addcolumntogroup Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
field Rühmaväli Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Kustuta väli grupist 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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=deletecolumnfromgroup Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
field Rühmaväli Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Kontakti kustutamine grupist 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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=deletegroup Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Riigi määramine rühmale, kus on 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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=assigncountrytogroup Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
countryiso3 Riigi ISO-kood Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma
COUNTRY_NOT_FOUND Nimetatud koodiga riiki pole

Hankige grupi kontakte saidiga 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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=getcontacts Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Hankige kontakt C sharp grupist

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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=getcontact Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup rühma id Kohustuslik
idcontact Kontakt ID Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma
NOT_ACCESS_TO_CONTACT ERROR_NOT_ACCESS_TO_CONTACT

Lisage kontakt keelega C sharp asuvasse rühma

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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=addcontact Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
contact Lisatav kontakt, mille väljad eraldatakse komadega, vt näidet Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
CONTACT_EXISTS Kontakt on grupis juba olemas
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Lisage kontaktiloend rühmale, mille keel on C sharp

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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=addcontactlist Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup rühma id Kohustuslik
contacts Kontaktide loend JSON-vormingus Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Muutke rühma kontakti C sharp abil

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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=modifycontact Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
idcontact Kontaktisiku ID Kohustuslik
contact Lisatav kontakt, mille väljad eraldatakse komadega, vt näidet Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Kontakti kustutamine grupist 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/http/", "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+"\"}");
Parameeter Kirjeldus Kohustuslik / valikuline
class=group Taotletud klass: klass, millele taotlus esitatakse Kohustuslik
method=deletecontact Taotletud klassimeetod: selle klassi meetod, millele taotlus esitatakse Kohustuslik
user Teie Afilneti konto kasutaja ja e-post Kohustuslik
password Teie Afilneti konto parool Kohustuslik
idgroup Grupi ID Kohustuslik
idcontact Kontaktisiku ID Kohustuslik
Vastus:
  • olek
  • tulemus (kui olek = edu), saate siin järgmised väärtused:
    • Täiendavaid väärtusi teile ei saadeta
  • tõrge (kui olek = tõrge), saate siin veakoodi

Veakoodid:
Kood Kirjeldus
MISSING_USER Kasutajat või e-posti pole lisatud
MISSING_PASSWORD Parool ei kuulu komplekti
MISSING_CLASS Klassi ei kuulu
MISSING_METHOD Meetod ei kuulu komplekti
MISSING_COMPULSORY_PARAM Kohustuslik parameeter ei kuulu komplekti
INCORRECT_USER_PASSWORD Vale kasutaja või parool
INCORRECT_CLASS Vale klass
INCORRECT_METHOD Vale meetod
NOT_ACCESS_TO_GROUP Teile ei lubata määratud rühma

Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega PHP Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Java Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega C sharp Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Unix Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Ruby on rails Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Python Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Android Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Objective C / iPhone Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega SQL Server Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Oracle Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Node JS Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Mine lang Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Scala lang Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Swift Tagastab sertifitseeritud SMS-i kohaletoimetamise oleku keelega Delphi

Tänu juurdepääsude loomise võimalusele ja IP-põhise filtreerimise aktiveerimise võimalusele pakub Afilnet teile meetodeid turvalisuse parandamiseks, kui kasutate meie API-t keelega C sharp.

Millist API keele C sharp jaoks peaksin kasutama?

Avastage iga meie API eelised ja puudused. Uurige välja, milline API on teie tarkvara jaoks parim keeles C sharp.

See API võimaldab teil meiega ühenduse luua keelest C sharp, et saata päringuid HTTP GET-päringute kaudu. See päring saadab parameetrid päringuga samas URL-is.

  • HTTP GET-i on äärmiselt lihtne rakendada
  • Teave saadetakse krüptimata (paroole saab logidest või vahemälust ekstraktida)
  • Maksimaalne taotlus ~4000 tähemärki

POST-i päringu API võimaldab teil luua ühenduse meie API-ga keelest C sharp, saates päringu parameetrid HTTP POST-i parameetrite kaudu. Teave saadetakse URL-ist sõltumatult.

  • HTTP POST-i on lihtne rakendada
  • Teave saadetakse krüpteeritult
  • Taotluse suurus ei ole piiratud
  • Keskmine turvalisus

Põhiline autentimise API võimaldab kasutada GET- ja POST-päringuid keeles C sharp koos täiendava turvakihiga, kuna sel juhul saadetakse kasutajanimi ja parool päringu päisesse.

  • Põhiautentimist on lihtne rakendada
  • Juurdepääsuandmed saadetakse krüpteeritult
  • Suuruse piirang sõltub GET või POST kasutamisest
  • Keskmine turvalisus

SOAP võimaldab saata päringuid XML-vormingus keelega C sharp, SOAP lisab API päringutele täiendava turvakihi.

  • SOAP-i integreerimine on keerulisem
  • Teave saadetakse krüpteeritult
  • Taotluse suurus ei ole piiratud
  • Keskmine / kõrge turvalisus

Meie JSON API võimaldab teil saata taotlusi JSON-vormingus keelega C sharp, lisaks lisab see API autentimisse oAuth 2.0 protokolli, mis võimaldab teil lisada täiendava turvakihi.

  • JSON oAuth 2.0 integreerimine on keerulisem
  • Teave saadetakse krüpteeritult
  • Taotluse suurus ei ole piiratud
  • Kõrge turvalisus

Ühendage {keel} meie KONTAKT API-ga

01

Registreeri end kliendiks

API-le juurdepääsu saamiseks peate olema Afilneti klient. Registreerimine võtab paar minutit.

02

Taotlege tasuta prooviversiooni

Meie ettevõte pakub teile proovibilanssi, mis võimaldab teil testida vajaliku API-ga.

03

Integreerige API

Tehke API integreerimine teie valitud programmeerimiskeelega. Kui teil on API kohta küsimusi või ettepanekuid, võtke meiega ühendust

04

Tere tulemast Afilneti!

Kõik, mis on valmis!, Suudetakse parandada oma suhtlust Afilnetiga. Oleme siin, et toetada meie API-d, kui seda vajate


Kui teil on küsimusi, pöörduge meie meeskonna poole meie pakutavate kontaktmeetodite kaudu. Meie meeskond püüab pakkuda teile kohest lahendust ja aitab teil meie API teie tarkvarasse integreerida.

Proovige Afilneti tasuta!

Registreeruge tasuta ja proovige Afilnetit! Pakume teile meie teenuste tasuta prooviversiooni. *



(*) Kampaania kehtib ainult ettevõtetele, kes pole varem Afilneti teenust kasutanud. Tasuta saldo taotlemisel võib Afilnet nõuda teie ettevõtte teabe kinnitamist


Hulg-SMS · E-posti turundus · Suhtlusvõrgustik · Kiirsõnumid · Sertifitseerimine · ja palju muud
Jätkake TÄHTIS TEAVE KOKKUDE KOHTA: Kui jätkate selle saidi kasutamist, eeldame, et nõustute kasutustingimustega. Lisateavet leiate meie küpsisteeskirjadest.
Makseviisid
Pangaülekanne
Krediitkaart
Paypal
Western Union
Skrill
Crypto
Afilnet teie keeles

Copyright © 2023 Afilnet · Kõik õigused kaitstud