Kontakte-API

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

Gruppe anlegen mit Ruby on rails

# net/http library is required
require 'net/http'

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

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&name="+afilnet_name+"&type="+afilnet_type+"&fields="+afilnet_fields;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

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

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "name" => afilnet_name, "type" => afilnet_type, "fields" => afilnet_fields)
	
puts response.body
# net/http library is required
require 'net/http'

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

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&name="+afilnet_name+"&type="+afilnet_type+"&fields="+afilnet_fields;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="creategroup";
afilnet_user="user";
afilnet_password="password";
afilnet_name="test name";
afilnet_type="mobile";
afilnet_fields="mobile,name,address";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"name\":\""+afilnet_name+"\",\"type\":\""+afilnet_type+"\",\"fields\":\""+afilnet_fields+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=creategroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
name Gruppenname Zwigend
type Gruppentyp (email oder mobile) Zwigend
fields Felderauflistung per Kommas separat, obligatorisch zu enthalten einem Handyfeld Typ = mobile und einem Emailfelder ohne Typ = Email Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Felder aus einer Gruppe abfragen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="creategroup";
afilnet_user="user";
afilnet_password="password";
afilnet_name="test name";
afilnet_type="mobile";
afilnet_fields="mobile,name,address";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"name\":\""+afilnet_name+"\",\"type\":\""+afilnet_type+"\",\"fields\":\""+afilnet_fields+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getgroupcolumns";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getgroupcolumns";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getgroupcolumns";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="getgroupcolumns";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=getgroupcolumns Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Feld zu einer Gruppe hinzufügen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="getgroupcolumns";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcolumntogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&field="+afilnet_field;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcolumntogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "field" => afilnet_field)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcolumntogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&field="+afilnet_field;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="addcolumntogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=addcolumntogroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
field Gruppenfelder Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Feld aus einer Gruppe entfernen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="addcolumntogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletecolumnfromgroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&field="+afilnet_field;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletecolumnfromgroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "field" => afilnet_field)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletecolumnfromgroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&field="+afilnet_field;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="deletecolumnfromgroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=deletecolumnfromgroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
field Gruppenfeler Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Löschen eines Gruppenkontakts mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="deletecolumnfromgroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_field="name";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"field\":\""+afilnet_field+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletegroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletegroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletegroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="deletegroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=deletegroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Land einer Gruppe zuordnen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="deletegroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="assigncountrytogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_countryiso3="esp";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&countryiso3="+afilnet_countryiso3;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="assigncountrytogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_countryiso3="esp";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "countryiso3" => afilnet_countryiso3)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="assigncountrytogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_countryiso3="esp";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&countryiso3="+afilnet_countryiso3;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="assigncountrytogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_countryiso3="esp";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"countryiso3\":\""+afilnet_countryiso3+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=assigncountrytogroup Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
countryiso3 ISO Code auf das Land Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Gruppenkontakte abrufen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="assigncountrytogroup";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_countryiso3="esp";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"countryiso3\":\""+afilnet_countryiso3+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getcontacts";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getcontacts";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getcontacts";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="getcontacts";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=getcontacts Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Holen Sie sich einen Kontakt aus einer Gruppe mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="getcontacts";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "idcontact" => afilnet_idcontact)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="getcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="getcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=getcontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppen-ID Zwigend
idcontact Kontakt-ID Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Kontakt zur Gruppe hinzufügen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="getcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contact="mobile:123456789,name:testname";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&contact="+afilnet_contact;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contact="mobile:123456789,name:testname";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "contact" => afilnet_contact)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contact="mobile:123456789,name:testname";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&contact="+afilnet_contact;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="addcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contact="mobile:123456789,name:testname";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"contact\":\""+afilnet_contact+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=addcontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
contact Kontakt beizulegen mit die Felder bei Kommas getrennt, Beispiel versehen Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Kontaktliste zu einer Gruppe mit Ruby on rails hinzufügen

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="addcontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contact="mobile:123456789,name:testname";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"contact\":\""+afilnet_contact+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcontactlist";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&contacts="+afilnet_contacts;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcontactlist";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "contacts" => afilnet_contacts)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="addcontactlist";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&contacts="+afilnet_contacts;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="addcontactlist";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"contacts\":\""+afilnet_contacts+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=addcontactlist Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppen-ID Zwigend
contacts Kontaktliste im JSON-Format Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Kontakt der Gruppe ändern mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="addcontactlist";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_contacts="[{\"name\":\"Test\",\"mobile\":\"34600000000\"},{\"name\":\"Test\",\"mobile\":\"34600000001\"}]";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"contacts\":\""+afilnet_contacts+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="modifycontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";
afilnet_contact="mobile:123456789,name:testname";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact+"&contact="+afilnet_contact;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="modifycontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";
afilnet_contact="mobile:123456789,name:testname";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "idcontact" => afilnet_idcontact, "contact" => afilnet_contact)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="modifycontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";
afilnet_contact="mobile:123456789,name:testname";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact+"&contact="+afilnet_contact;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="modifycontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";
afilnet_contact="mobile:123456789,name:testname";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\",\"contact\":\""+afilnet_contact+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=modifycontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
idcontact Kontaktekennung Zwigend
contact Kontakt hinzufügen mit die Felder per Kommas getrennt, Beispiel versehen Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

Kontakt aus der Gruppe entfernen mit Ruby on rails

# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="modifycontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";
afilnet_contact="mobile:123456789,name:testname";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\",\"contact\":\""+afilnet_contact+"\"}"
})

puts res.body# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletecontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/?class="+afilnet_class+"&method="+afilnet_method+"&user="+afilnet_user+"&password="+afilnet_password+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact;
	
uri = URI(sUrl) 
response = Net::HTTP.get(uri)
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletecontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/http/";

uri = URI(sUrl) 
response = Net::HTTP.post_form(uri, "class" => afilnet_class, "method" => afilnet_method, "user" => afilnet_user, "password" => afilnet_password, "idgroup" => afilnet_idgroup, "idcontact" => afilnet_idcontact)
	
puts response.body
# net/http library is required
require 'net/http'

afilnet_class="group";
afilnet_method="deletecontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# Create an URL request
sUrl = "https://www.afilnet.com/api/basic/?class="+afilnet_class+"&method="+afilnet_method+"&idgroup="+afilnet_idgroup+"&idcontact="+afilnet_idcontact;
	
uri = URI(sUrl) 

req = Net::HTTP::Get.new(uri)
req.basic_auth afilnet_user, afilnet_password

res = Net::HTTP.start(uri.hostname) {|http|
  http.request(req)
}

puts res.body
# Savon library is required
require 'savon'

# We define vars
afilnet_class="group";
afilnet_method="deletecontact";
afilnet_user="user";
afilnet_password="password";
afilnet_idgroup="1000";
afilnet_idcontact="1000";

# We create the client instance
client = Savon.client(wsdl: 'https://www.afilnet.com/api/soap/index.php?wsdl', ssl_verify_mode: :none)

# We call to the service
res = client.call(:call, message: {
  user: afilnet_user,
  password: afilnet_password,
  class: afilnet_class,
  method: afilnet_method,
  petition: "{\"idgroup\":\""+afilnet_idgroup+"\",\"idcontact\":\""+afilnet_idcontact+"\"}"
})

puts res.body
Parameter Beschreibung Zwigend / optional
class=group Sorte deren Antragen sich realisiert Zwigend
method=deletecontact Sortenmethode deren Antragen sich realisiert Zwigend
user Der User / Email Ihres Afilnet Account Zwigend
password Das password Ihres Afilnet Account Zwigend
idgroup Gruppenkennung Zwigend
idcontact Kontaktekennung Zwigend
Antworten:
  • Status
  • result (si status=success), Sie werden die nächsten Codes bekommen:
    • Sie werden kein Grenzkosten bekommen
  • Fehler (si status=Fehler), hier werden Sie der Fehlercode bekommen

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

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

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

Welche API für Ruby on rails soll ich verwenden?

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

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

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

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

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

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

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

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

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

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

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

Verbinden Sie Ruby on rails mit unserer KONTAKTE API

01

Registrieren Sie sich als Kunde

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

02

Fordern Sie Ihre kostenlose Testversion an

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

03

Integrieren Sie die API

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

04

Willkommen bei Afilnet!

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


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

Probieren Sie Afilnet kostenlos aus!

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



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


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

Copyright © 2024 Afilnet · Alle Rechte vorbehalten