Contacts API

Spravujte své skupiny (vytvářejte, upravujte nebo mažte skupiny) a kontakty pomocí našeho rozhraní API pro kontakty.

Vytvořit skupinu pomocí Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=creategroup Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
name Název skupiny Povinný
type Typ skupiny (e-mail nebo mobilní) Povinný
fields Seznam polí oddělených čárkami. Je povinné zahrnout mobilní pole, pokud type = mobile, a e-mailové pole, pokud type = email Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
INCORRECT_TYPE Nesprávný typ. Typ musí být mobilní nebo e-mail
MISSING_MAIN_FIELD Chybí hlavní pole (mobile if type = mobile nebo email, pokud type = email)

Získejte pole skupiny s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=getgroupcolumns Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Přidejte pole do skupiny s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=addcolumntogroup Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
field Pole skupiny Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Odstranit pole ze skupiny s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=deletecolumnfromgroup Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
field Pole skupiny Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Smazání kontaktu ze skupiny s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=deletegroup Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Přiřaďte zemi ke skupině s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=assigncountrytogroup Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
countryiso3 Kód země země Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení
COUNTRY_NOT_FOUND Neexistuje žádná země s uvedeným kódem

Získejte skupinové kontakty s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontacts";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=getcontacts Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Získejte kontakt ze skupiny v jazyce Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontacts";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@", aclass, method, user, password, idgroup, idcontact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=getcontact Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup id skupiny Povinný
idcontact ID kontaktu Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení
NOT_ACCESS_TO_CONTACT ERROR_NOT_ACCESS_TO_CONTACT

Přidejte kontakt do skupiny s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontacts";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@", aclass, method, user, password, idgroup, idcontact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contact = @"mobile:123456789,name:testname";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contact=%@", aclass, method, user, password, idgroup, contact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=addcontact Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
contact Kontakt, který má být přidán a jeho pole oddělena čárkami, viz příklad Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
CONTACT_EXISTS Kontakt již ve skupině existuje
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Přidat seznam kontaktů do skupiny pomocí jazyka Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontacts";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@", aclass, method, user, password, idgroup, idcontact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contact = @"mobile:123456789,name:testname";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contact=%@", aclass, method, user, password, idgroup, contact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontactlist";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contacts = @"[{"name":"Test","mobile":"34600000000"},{"name":"Test","mobile":"34600000001"}]";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contacts=%@", aclass, method, user, password, idgroup, contacts]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=addcontactlist Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup id skupiny Povinný
contacts Seznam kontaktů ve formátu JSON Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Upravit kontakt skupiny pomocí Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontacts";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@", aclass, method, user, password, idgroup, idcontact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contact = @"mobile:123456789,name:testname";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contact=%@", aclass, method, user, password, idgroup, contact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontactlist";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contacts = @"[{"name":"Test","mobile":"34600000000"},{"name":"Test","mobile":"34600000001"}]";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contacts=%@", aclass, method, user, password, idgroup, contacts]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"modifycontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *contact = @"mobile:123456789,name:testname";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@&contact=%@", aclass, method, user, password, idgroup, idcontact, contact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=modifycontact Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
idcontact Kontaktní ID Povinný
contact Kontakt, který má být přidán a jeho pole oddělena čárkami, viz příklad Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Smazat kontakt ze skupiny s Objective C / iPhone

NSString *aclass = @"group";
NSString *method = @"creategroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *name = @"test name";
NSString *type = @"mobile";
NSString *fields = @"mobile,name,address";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?class=%@&method=%@&user=%@&password=%@&name=%@&type=%@&fields=%@", aclass, method, user, password, name, type, fields]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getgroupcolumns";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcolumntogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecolumnfromgroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *field = @"name";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&field=%@", aclass, method, user, password, idgroup, field]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletegroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"assigncountrytogroup";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *countryiso3 = @"esp";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&countryiso3=%@", aclass, method, user, password, idgroup, countryiso3]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontacts";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@", aclass, method, user, password, idgroup]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"getcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@", aclass, method, user, password, idgroup, idcontact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contact = @"mobile:123456789,name:testname";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contact=%@", aclass, method, user, password, idgroup, contact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"addcontactlist";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *contacts = @"[{"name":"Test","mobile":"34600000000"},{"name":"Test","mobile":"34600000001"}]";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&contacts=%@", aclass, method, user, password, idgroup, contacts]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"modifycontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *contact = @"mobile:123456789,name:testname";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@&contact=%@", aclass, method, user, password, idgroup, idcontact, contact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];NSString *aclass = @"group";
NSString *method = @"deletecontact";
NSString *user = @"user";
NSString *password = @"password";
NSString *idgroup = @"1000";
NSString *idcontact = @"1000";
NSString *targetUrl = [NSString stringWithFormat:@"https://www.afilnet.com/api/http/?&class=%@&method=%@&user=%@&password=%@&idgroup=%@&idcontact=%@", aclass, method, user, password, idgroup, idcontact]
	
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setHTTPMethod:@"GET"];
[request setURL:[NSURL URLWithString:targetUrl]];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:
	^(NSData * _Nullable data,NSURLResponse * _Nullable response,NSError * _Nullable error) {
		NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		NSLog(@"Data received: %@", myString);
}] resume];
Parametr Popis Povinné / Nepovinné
class=group Požadovaná třída: Třída, na kterou je žádost podána Povinný
method=deletecontact Požadovaná metoda třídy: Metoda třídy, které je žádost podána Povinný
user Uživatel a e-mail vašeho účtu Afilnet Povinný
password Heslo vašeho účtu Afilnet Povinný
idgroup ID skupiny Povinný
idcontact Kontaktní ID Povinný
Odpovědět:
  • postavení
  • výsledek (pokud status = úspěch), zde obdržíte následující hodnoty:
    • Nebudou vám zasílány žádné další hodnoty
  • chyba (pokud status = chyba), zde obdržíte kód chyby

Kódy chyb:
Kód Popis
MISSING_USER Uživatel nebo e-mail nejsou zahrnuty
MISSING_PASSWORD Heslo není zahrnuto
MISSING_CLASS Třída není zahrnuta
MISSING_METHOD Metoda není zahrnuta
MISSING_COMPULSORY_PARAM Povinný parametr není zahrnut
INCORRECT_USER_PASSWORD Nesprávný uživatel nebo heslo
INCORRECT_CLASS Nesprávná třída
INCORRECT_METHOD Nesprávná metoda
NOT_ACCESS_TO_GROUP Do uvedené skupiny nemáte povolení

Vrátí stav doručení certifikované SMS s PHP Vrátí stav doručení certifikované SMS s Java Vrátí stav doručení certifikované SMS s C Sharp Vrátí stav doručení certifikované SMS s Unix Vrátí stav doručení certifikované SMS s Ruby on Rails Vrátí stav doručení certifikované SMS s Python Vrátí stav doručení certifikované SMS s Android Vrátí stav doručení certifikované SMS s Objective C / iPhone Vrátí stav doručení certifikované SMS s SQL Server Vrátí stav doručení certifikované SMS s Oracle Vrátí stav doručení certifikované SMS s Node JS Vrátí stav doručení certifikované SMS s Go lang Vrátí stav doručení certifikované SMS s Scala lang Vrátí stav doručení certifikované SMS s Swift Vrátí stav doručení certifikované SMS s Delphi

Afilnet vám nabízí způsoby, jak zlepšit bezpečnost při používání našeho API s Objective C / iPhone, díky možnosti vytváření přístupů a možnosti aktivace filtrování podle IP.

Které rozhraní API pro jazyk Objective C / iPhone mám použít?

Objevte výhody a nevýhody každého z našich API. Zjistěte, které API je pro váš software nejlepší v jazyce Objective C / iPhone.

Toto rozhraní API vám umožňuje připojit se k nám z Objective C / iPhone a odesílat požadavky prostřednictvím požadavků HTTP GET. Tento požadavek odešle parametry ve stejné adrese URL jako požadavek.

  • HTTP GET se velmi jednoduše implementuje
  • Informace jsou odesílány nešifrované (hesla mohou být extrahována z protokolů nebo mezipaměti)
  • Maximální požadavek na ~4000 znaků

Rozhraní API požadavku POST vám umožňuje připojit se k našemu rozhraní API z Objective C / iPhone odesláním parametrů požadavku prostřednictvím parametrů HTTP POST. Informace jsou odesílány nezávisle na URL.

  • HTTP POST se snadno implementuje
  • Informace jsou odesílány šifrovaně
  • Velikost požadavku není nijak omezena
  • Střední zabezpečení

Základní autentizační API umožňuje použití požadavků GET a POST v Objective C / iPhone s další vrstvou zabezpečení, protože v tomto případě se uživatelské jméno a heslo zasílají v záhlaví požadavku.

  • Základní autentizace se snadno implementuje
  • Přístupová data jsou odesílána šifrovaná
  • Limit velikosti závisí na použití GET nebo POST
  • Střední zabezpečení

SOAP umožňuje posílat požadavky ve formátu XML s Objective C / iPhone, SOAP přidává další vrstvu zabezpečení žádostem API.

  • Integrace SOAP je složitější
  • Informace jsou odesílány šifrovaně
  • Velikost požadavku není nijak omezena
  • Střední / vysoká bezpečnost

Naše JSON API vám umožňuje odesílat požadavky ve formátu JSON s Objective C / iPhone, navíc toto API přidává do ověřování protokol oAuth 2.0, který vám umožňuje přidat další vrstvu zabezpečení.

  • Integrace JSON oAuth 2.0 je složitější
  • Informace jsou odesílány šifrovaně
  • Velikost požadavku není nijak omezena
  • Vysoká bezpečnost

Propojte Objective C / iPhone s naším KONTAKTY API

01

Zaregistrujte se jako klient

Abyste měli přístup k API, musíte být klientem Afilnetu. Registrace zabere několik minut.

02

Požádejte o bezplatnou zkušební verzi

Naše společnost vám nabídne zkušební zůstatek, který vám umožní testovat s API, které potřebujete.

03

Integrujte rozhraní API

Proveďte integraci API pomocí programovacího jazyka dle vašeho výběru. Pokud máte nějaké dotazy nebo návrhy ohledně API, kontaktujte nás

04

Vítejte v Afilnetu!

Vše připraveno !, se podařilo zlepšit komunikaci s Afilnet. Jsme tu, abychom podporovali naše API, když to potřebujete


V případě dotazů kontaktujte náš tým prostřednictvím kontaktních metod, které nabízíme. Náš tým se vám pokusí nabídnout okamžité řešení a pomůže vám s integrací našeho API do vašeho softwaru.

Vyzkoušejte Afilnet zdarma!

Zaregistrujte se zdarma a vyzkoušejte Afilnet! Nabízíme vám bezplatnou zkušební verzi našich služeb. *



(*) Akce platí pouze pro společnosti, které nikdy předtím službu Afilnet nevyužívaly. Při žádosti o bezplatný zůstatek může Afilnet požádat o ověření informací o vaší společnosti


Hromadná SMS · Emailový marketing · Sociální síť · Okamžité zprávy · Osvědčení · a mnohem víc
Pokračovat DŮLEŽITÉ INFORMACE O COOKIES: Pokud budete i nadále používat tento web, budeme předpokládat, že souhlasíte s podmínkami použití. Více informací naleznete v našich Zásadách používání cookies.
Platební metody
Drátový převod
Kreditní karta
Paypal
Western Union
Skrill
Crypto
Afilnet ve vašem jazyce

Copyright © 2022 Afilnet · Všechna práva vyhrazena