واجهة برمجة تطبيقات إدارة المستخدم باللغة C Sharp

إدارة معلومات المستخدم ، ومعرفة الرصيد لديك في حسابك وإدارة عناوينك.

الحصول على رصيد الحساب باستخدام C Sharp

String afilnet_class="user";
String afilnet_method="getbalance";
String afilnet_user="user";
String afilnet_password="password";

// 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);
	
// 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"] = "user";
data["method"] = "getbalance";
data["user"] = "user";
data["password"] = "password";

// 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"] = "user";
data["method"] = "getbalance";

// 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="user";
String afilnet_method="getbalance";
String afilnet_user="user";
String afilnet_password="password";
	
// 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, "{}");
معامل وصف إجباري / اختياري
class=user الفئة المطلوبة: الفئة التي تم تقديم الطلب إليها إلزامي
method=getbalance طريقة الفصل المطلوبة: طريقة الفصل الذي تم تقديم الطلب إليه إلزامي
user المستخدم والبريد الإلكتروني لحساب Afilnet الخاص بك إلزامي
password كلمة المرور لحساب Afilnet الخاص بك إلزامي
إجابه:
  • الحالة
  • النتيجة (إذا كانت الحالة = النجاح) ، سوف تتلقى هنا القيم التالية:
    • لن يتم إرسال قيم إضافية إليك
  • خطأ (إذا كانت الحالة = خطأ) ، هنا ستتلقى رمز الخطأ

رموز الخطأ:
الشفرة وصف
MISSING_USER المستخدم أو البريد الإلكتروني غير المدرجة
MISSING_PASSWORD كلمة المرور غير المدرجة
MISSING_CLASS الطبقة غير المدرجة
MISSING_METHOD طريقة غير المدرجة
MISSING_COMPULSORY_PARAM المعلمة الإجبارية غير المدرجة
INCORRECT_USER_PASSWORD مستخدم غير صحيح أو كلمة المرور
INCORRECT_CLASS فئة غير صحيحة
INCORRECT_METHOD طريقة غير صحيحة

أضف العنوان الجديد باستخدام C Sharp

String afilnet_class="user";
String afilnet_method="getbalance";
String afilnet_user="user";
String afilnet_password="password";
	
// 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, "{}");String afilnet_class="user";
String afilnet_method="addaddress";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_namelastname="name+lastname";
String afilnet_iscompany="1";
String afilnet_companyname="mycompany";
String afilnet_documentid="123456789A";
String afilnet_countrycode="us";
String afilnet_cityid="1";
String afilnet_cityname="town";
String afilnet_zipcode="123456";
String afilnet_address="address";

// Create an URL request
WebRequest request = WebRequest.Create("https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&namelastname="+afilnet_namelastname+"&iscompany="+afilnet_iscompany+"&companyname="+afilnet_companyname+"&documentid="+afilnet_documentid+"&countrycode="+afilnet_countrycode+"&cityid="+afilnet_cityid+"&cityname="+afilnet_cityname+"&zipcode="+afilnet_zipcode+"&address="+afilnet_address);
	
// 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"] = "user";
data["method"] = "addaddress";
data["user"] = "user";
data["password"] = "password";
data["namelastname"] = "name+lastname";
data["iscompany"] = "1";
data["companyname"] = "mycompany";
data["documentid"] = "123456789A";
data["countrycode"] = "us";
data["cityid"] = "1";
data["cityname"] = "town";
data["zipcode"] = "123456";
data["address"] = "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"] = "user";
data["method"] = "addaddress";
data["namelastname"] = "name+lastname";
data["iscompany"] = "1";
data["companyname"] = "mycompany";
data["documentid"] = "123456789A";
data["countrycode"] = "us";
data["cityid"] = "1";
data["cityname"] = "town";
data["zipcode"] = "123456";
data["address"] = "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="user";
String afilnet_method="addaddress";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_namelastname="name+lastname";
String afilnet_iscompany="1";
String afilnet_companyname="mycompany";
String afilnet_documentid="123456789A";
String afilnet_countrycode="us";
String afilnet_cityid="1";
String afilnet_cityname="town";
String afilnet_zipcode="123456";
String afilnet_address="address";
	
// 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, "{\"namelastname\":\""+afilnet_namelastname+"\",\"iscompany\":\""+afilnet_iscompany+"\",\"companyname\":\""+afilnet_companyname+"\",\"documentid\":\""+afilnet_documentid+"\",\"countrycode\":\""+afilnet_countrycode+"\",\"cityid\":\""+afilnet_cityid+"\",\"cityname\":\""+afilnet_cityname+"\",\"zipcode\":\""+afilnet_zipcode+"\",\"address\":\""+afilnet_address+"\"}");
معامل وصف إجباري / اختياري
class=user الفئة المطلوبة: الفئة التي تم تقديم الطلب إليها إلزامي
method=addaddress طريقة الفصل المطلوبة: طريقة الفصل الذي تم تقديم الطلب إليه إلزامي
user المستخدم والبريد الإلكتروني لحساب Afilnet الخاص بك إلزامي
password كلمة المرور لحساب Afilnet الخاص بك إلزامي
namelastname اسم ولقب الشخص المسؤول إلزامي
iscompany (0) إذا كان شخصًا طبيعيًا أو (1) إذا كانت شركة إلزامي
companyname اسم الشركة (في حال كانت شركة) اختياري
documentid كود وثيقة تعريف الشركة إلزامي
countrycode رمز البلد ISO بتنسيق ISO-3166-1 ALPHA-2 إلزامي
cityid معرف المدينة إلزامي
cityname اسم المدينة أو البلدة التي تنتمي إليها إلزامي
zipcode رمز بريدي إلزامي
address العنوان الفعلي إلزامي
إجابه:
  • الحالة
  • النتيجة (إذا كانت الحالة = النجاح) ، سوف تتلقى هنا القيم التالية:
    • لن يتم إرسال قيم إضافية إليك
  • خطأ (إذا كانت الحالة = خطأ) ، هنا ستتلقى رمز الخطأ

رموز الخطأ:
الشفرة وصف
MISSING_USER المستخدم أو البريد الإلكتروني غير المدرجة
MISSING_PASSWORD كلمة المرور غير المدرجة
MISSING_CLASS الطبقة غير المدرجة
MISSING_METHOD طريقة غير المدرجة
MISSING_COMPULSORY_PARAM المعلمة الإجبارية غير المدرجة
INCORRECT_USER_PASSWORD مستخدم غير صحيح أو كلمة المرور
INCORRECT_CLASS فئة غير صحيحة
INCORRECT_METHOD طريقة غير صحيحة
EMPTY_COUNTRYCODE رمز البلد فارغ
COUNTRY_NOT_FOUND لا توجد دولة مع الرمز المشار إليه
EMPTY_CITY لم تحدد المدينة
CITY_NOT_FOUND المدينة المشار إليها غير موجودة

إزالة عنوان بـ C Sharp

String afilnet_class="user";
String afilnet_method="addaddress";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_namelastname="name+lastname";
String afilnet_iscompany="1";
String afilnet_companyname="mycompany";
String afilnet_documentid="123456789A";
String afilnet_countrycode="us";
String afilnet_cityid="1";
String afilnet_cityname="town";
String afilnet_zipcode="123456";
String afilnet_address="address";
	
// 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, "{\"namelastname\":\""+afilnet_namelastname+"\",\"iscompany\":\""+afilnet_iscompany+"\",\"companyname\":\""+afilnet_companyname+"\",\"documentid\":\""+afilnet_documentid+"\",\"countrycode\":\""+afilnet_countrycode+"\",\"cityid\":\""+afilnet_cityid+"\",\"cityname\":\""+afilnet_cityname+"\",\"zipcode\":\""+afilnet_zipcode+"\",\"address\":\""+afilnet_address+"\"}");String afilnet_class="user";
String afilnet_method="deleteaddress";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idaddress="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+"&idaddress="+afilnet_idaddress);
	
// 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"] = "user";
data["method"] = "deleteaddress";
data["user"] = "user";
data["password"] = "password";
data["idaddress"] = "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"] = "user";
data["method"] = "deleteaddress";
data["idaddress"] = "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="user";
String afilnet_method="deleteaddress";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idaddress="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, "{\"idaddress\":\""+afilnet_idaddress+"\"}");
معامل وصف إجباري / اختياري
class=user الفئة المطلوبة: الفئة التي تم تقديم الطلب إليها إلزامي
method=deleteaddress طريقة الفصل المطلوبة: طريقة الفصل الذي تم تقديم الطلب إليه إلزامي
user المستخدم والبريد الإلكتروني لحساب Afilnet الخاص بك إلزامي
password كلمة المرور لحساب Afilnet الخاص بك إلزامي
idaddress معرف عنوان حساب المستخدم إلزامي
إجابه:
  • الحالة
  • النتيجة (إذا كانت الحالة = النجاح) ، سوف تتلقى هنا القيم التالية:
    • لن يتم إرسال قيم إضافية إليك
  • خطأ (إذا كانت الحالة = خطأ) ، هنا ستتلقى رمز الخطأ

رموز الخطأ:
الشفرة وصف
MISSING_USER المستخدم أو البريد الإلكتروني غير المدرجة
MISSING_PASSWORD كلمة المرور غير المدرجة
MISSING_CLASS الطبقة غير المدرجة
MISSING_METHOD طريقة غير المدرجة
MISSING_COMPULSORY_PARAM المعلمة الإجبارية غير المدرجة
INCORRECT_USER_PASSWORD مستخدم غير صحيح أو كلمة المرور
INCORRECT_CLASS فئة غير صحيحة
INCORRECT_METHOD طريقة غير صحيحة

احصل على قائمة العناوين باستخدام C Sharp

String afilnet_class="user";
String afilnet_method="deleteaddress";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_idaddress="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, "{\"idaddress\":\""+afilnet_idaddress+"\"}");String afilnet_class="user";
String afilnet_method="getaddresses";
String afilnet_user="user";
String afilnet_password="password";

// 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);
	
// 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"] = "user";
data["method"] = "getaddresses";
data["user"] = "user";
data["password"] = "password";

// 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"] = "user";
data["method"] = "getaddresses";

// 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="user";
String afilnet_method="getaddresses";
String afilnet_user="user";
String afilnet_password="password";
	
// 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, "{}");
معامل وصف إجباري / اختياري
class=user الفئة المطلوبة: الفئة التي تم تقديم الطلب إليها إلزامي
method=getaddresses طريقة الفصل المطلوبة: طريقة الفصل الذي تم تقديم الطلب إليه إلزامي
user المستخدم والبريد الإلكتروني لحساب Afilnet الخاص بك إلزامي
password كلمة المرور لحساب Afilnet الخاص بك إلزامي
إجابه:
  • الحالة
  • النتيجة (إذا كانت الحالة = النجاح) ، سوف تتلقى هنا القيم التالية:
    • list
      • id
      • namelastname
      • iscompany
      • companyname
      • documentid
      • countrycode
      • cityid
      • cityname
      • zipcode
      • address
      • verified
      • addressverified
  • خطأ (إذا كانت الحالة = خطأ) ، هنا ستتلقى رمز الخطأ

رموز الخطأ:
الشفرة وصف
MISSING_USER المستخدم أو البريد الإلكتروني غير المدرجة
MISSING_PASSWORD كلمة المرور غير المدرجة
MISSING_CLASS الطبقة غير المدرجة
MISSING_METHOD طريقة غير المدرجة
MISSING_COMPULSORY_PARAM المعلمة الإجبارية غير المدرجة
INCORRECT_USER_PASSWORD مستخدم غير صحيح أو كلمة المرور
INCORRECT_CLASS فئة غير صحيحة
INCORRECT_METHOD طريقة غير صحيحة

الحصول على قائمة القنوات باللغة C Sharp

String afilnet_class="user";
String afilnet_method="getaddresses";
String afilnet_user="user";
String afilnet_password="password";
	
// 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, "{}");String afilnet_class="user";
String afilnet_method="getchannels";
String afilnet_user="user";
String afilnet_password="password";

// 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);
	
// 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"] = "user";
data["method"] = "getchannels";
data["user"] = "user";
data["password"] = "password";

// 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"] = "user";
data["method"] = "getchannels";

// 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="user";
String afilnet_method="getchannels";
String afilnet_user="user";
String afilnet_password="password";
	
// 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, "{}");
معامل وصف إجباري / اختياري
class=user الفئة المطلوبة: الفئة التي تم تقديم الطلب إليها إلزامي
method=getchannels طريقة الفصل المطلوبة: طريقة الفصل الذي تم تقديم الطلب إليه إلزامي
user المستخدم والبريد الإلكتروني لحساب Afilnet الخاص بك إلزامي
password كلمة المرور لحساب Afilnet الخاص بك إلزامي
إجابه:
  • الحالة
  • النتيجة (إذا كانت الحالة = النجاح) ، سوف تتلقى هنا القيم التالية:
    • list
      • channeltype
      • channelname
      • active
  • خطأ (إذا كانت الحالة = خطأ) ، هنا ستتلقى رمز الخطأ

رموز الخطأ:
الشفرة وصف
MISSING_USER المستخدم أو البريد الإلكتروني غير المدرجة
MISSING_PASSWORD كلمة المرور غير المدرجة
MISSING_CLASS الطبقة غير المدرجة
MISSING_METHOD طريقة غير المدرجة
MISSING_COMPULSORY_PARAM المعلمة الإجبارية غير المدرجة
INCORRECT_USER_PASSWORD مستخدم غير صحيح أو كلمة المرور
INCORRECT_CLASS فئة غير صحيحة
INCORRECT_METHOD طريقة غير صحيحة

تعديل حالة القناة بـ C Sharp

String afilnet_class="user";
String afilnet_method="getchannels";
String afilnet_user="user";
String afilnet_password="password";
	
// 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, "{}");String afilnet_class="user";
String afilnet_method="modifychannel";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_channelname="sms";
String afilnet_active="1";

// Create an URL request
WebRequest request = WebRequest.Create("https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&channelname="+afilnet_channelname+"&active="+afilnet_active);
	
// 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"] = "user";
data["method"] = "modifychannel";
data["user"] = "user";
data["password"] = "password";
data["channelname"] = "sms";
data["active"] = "1";

// 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"] = "user";
data["method"] = "modifychannel";
data["channelname"] = "sms";
data["active"] = "1";

// 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="user";
String afilnet_method="modifychannel";
String afilnet_user="user";
String afilnet_password="password";
String afilnet_channelname="sms";
String afilnet_active="1";
	
// 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, "{\"channelname\":\""+afilnet_channelname+"\",\"active\":\""+afilnet_active+"\"}");
معامل وصف إجباري / اختياري
class=user الفئة المطلوبة: الفئة التي تم تقديم الطلب إليها إلزامي
method=modifychannel طريقة الفصل المطلوبة: طريقة الفصل الذي تم تقديم الطلب إليه إلزامي
user المستخدم والبريد الإلكتروني لحساب Afilnet الخاص بك إلزامي
password كلمة المرور لحساب Afilnet الخاص بك إلزامي
channelname اسم القناة إلزامي
active (1) تمكين أو (0) تعطيل إلزامي
إجابه:
  • الحالة
  • النتيجة (إذا كانت الحالة = النجاح) ، سوف تتلقى هنا القيم التالية:
    • لن يتم إرسال قيم إضافية إليك
  • خطأ (إذا كانت الحالة = خطأ) ، هنا ستتلقى رمز الخطأ

رموز الخطأ:
الشفرة وصف
MISSING_USER المستخدم أو البريد الإلكتروني غير المدرجة
MISSING_PASSWORD كلمة المرور غير المدرجة
MISSING_CLASS الطبقة غير المدرجة
MISSING_METHOD طريقة غير المدرجة
MISSING_COMPULSORY_PARAM المعلمة الإجبارية غير المدرجة
INCORRECT_USER_PASSWORD مستخدم غير صحيح أو كلمة المرور
INCORRECT_CLASS فئة غير صحيحة
INCORRECT_METHOD طريقة غير صحيحة

إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ PHP إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Java إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ C Sharp إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Unix إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ ruby on rails إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ python إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Android إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Objective C / iPhone إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ SQL Server إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Oracle إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Node JS إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Go إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Scala إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Swift إرجاع حالة تسليم الرسائل القصيرة المعتمدة بـ Delphi

تقدم لك Afilnet طرقًا لتحسين الأمان عند استخدام واجهة برمجة التطبيقات الخاصة بنا مع {اللغة} ، وذلك بفضل إمكانية إنشاء عمليات الوصول وإمكانية تنشيط التصفية بواسطة IP.

أي واجهة برمجة تطبيقات للغة {اللغة} يجب أن أستخدمها؟

اكتشف مزايا وعيوب كل من واجهات برمجة التطبيقات الخاصة بنا. اكتشف واجهة برمجة التطبيقات الأفضل لبرنامجك في {اللغة}.

تتيح لك واجهة برمجة التطبيقات هذه الاتصال بنا من C Sharp لإرسال الطلبات عبر طلبات HTTP GET. يرسل هذا الطلب المعلمات في نفس عنوان URL مثل الطلب.

  • HTTP GET سهل التنفيذ للغاية
  • يتم إرسال المعلومات بدون تشفير (يمكن استخراج كلمات المرور من السجلات أو ذاكرة التخزين المؤقت)
  • الحد الأقصى للطلب حوالي 4000 حرف

تسمح لك واجهة برمجة تطبيقات طلب POST بالاتصال بواجهة برمجة التطبيقات الخاصة بنا من C Sharp عن طريق إرسال معلمات الطلب عبر معلمات HTTP POST. يتم إرسال المعلومات بشكل مستقل عن URL.

  • HTTP POST سهل التنفيذ
  • يتم إرسال المعلومات مشفرة
  • لا يوجد حد لحجم الطلب
  • أمان متوسط

تسمح واجهة برمجة تطبيقات المصادقة الأساسية باستخدام طلبات GET و POST باللغة C Sharp مع طبقة أمان إضافية ، لأنه في هذه الحالة يتم إرسال اسم المستخدم وكلمة المرور في رأس الطلب.

  • المصادقة الأساسية سهلة التنفيذ
  • يتم إرسال بيانات الوصول مشفرة
  • يعتمد حد الحجم على استخدام GET أو POST
  • أمان متوسط

يتيح لك SOAP إرسال طلبات بتنسيق XML مع C Sharp ، ويضيف SOAP طبقة أمان إضافية لطلبات API.

  • يعتبر تكامل SOAP أكثر تعقيدًا
  • يتم إرسال المعلومات مشفرة
  • لا يوجد حد لحجم الطلب
  • متوسطة / عالية الأمان

تتيح لك واجهة برمجة تطبيقات JSON الخاصة بنا إرسال الطلبات بتنسيق JSON مع {اللغة} ، بالإضافة إلى أن واجهة برمجة التطبيقات هذه تضيف بروتوكول oAuth 2.0 في المصادقة التي تتيح لك إضافة طبقة أمان إضافية.

  • يعتبر تكامل JSON oAuth 2.0 أكثر تعقيدًا
  • يتم إرسال المعلومات مشفرة
  • لا يوجد حد لحجم الطلب
  • حماية عالية

ربط C Sharp بواجهة برمجة التطبيقات المستعمل الخاصة بنا

01

سجل كعميل

من أجل الوصول إلى API ، يجب أن تكون عميل Afilnet. سيستغرق التسجيل بضع دقائق.

02

طلب نسخة تجريبية مجانية

ستقدم لك شركتنا رصيدًا تجريبيًا يتيح لك الاختبار باستخدام واجهة برمجة التطبيقات التي تحتاجها.

03

دمج API

قم بإجراء تكامل API باستخدام لغة البرمجة التي تختارها. إذا كان لديك أي أسئلة أو اقتراحات حول API ، فاتصل بنا

04

مرحبا بكم في Afilnet!

كل شيء جاهز! ، تمكن من تحسين اتصالاته مع Afilnet. نحن هنا لدعم API لدينا عند الحاجة إليها


تواصل مع فريقنا لطرح أي أسئلة من خلال طرق الاتصال التي نقدمها. سيحاول فريقنا أن يقدم لك حلاً فوريًا وسيساعدك في دمج API الخاص بنا في برنامجك.

جرب Afilnet مجانًا!

سجل مجانا وجرب Afilnet! نحن نقدم لك نسخة تجريبية مجانية من خدماتنا. *



(*) الترويج صالح فقط للشركات التي لم تستخدم خدمة Afilnet من قبل. عند طلب الرصيد المجاني ، قد تطلب Afilnet التحقق من معلومات شركتك


الرسائل القصيرة بالجملة · التسويق عبر البريد الإلكتروني · شبكة اجتماعية · رسالة فورية · شهادة · وأكثر بكثير
استمر معلومات مهمة حول ملفات تعريف الارتباط: إذا واصلت استخدام هذا الويب ، فسنفترض أنك تقبل شروط الاستخدام. ستجد المزيد من المعلومات في سياسة ملفات تعريف الارتباط الخاصة بنا.
طرق الدفع
تحويلة كهربية بالسلك
بطاقة إئتمان
Paypal
Western Union
Skrill
Crypto
Afilnet بلغتك

Copyright © 2023 Afilnet · كل الحقوق محفوظة