Benutzerverwaltungs-API in Swift
Verwalten Sie Benutzerinformationen, kennen Sie das Guthaben auf Ihrem Konto und verwalten Sie Ihre Adressen.

Den Saldo ermitteln mit Swift
let aclass : String = "user";
let method : String = "getbalance";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/?class="+aclass+"&method="+method+"&user="+user+"&password="+password
let url: NSURL = NSURL(string: urlPath)!
let request1: NSURLRequest = NSURLRequest(url: url as URL)
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as NSError {
print(error.localizedDescription)
}
})
let aclass : String = "user";
let method : String = "getbalance";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}
Parameter | Beschreibung | Zwigend / optional |
---|---|---|
class=user | Sorte deren Antragen sich realisiert | Zwigend |
method=getbalance | Sortenmethode deren Antragen sich realisiert | Zwigend |
user | Der User / Email Ihres Afilnet Account | Zwigend |
password | Das password Ihres Afilnet Account | 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 |
Neue Adresse mit Swift hinzufügen
let aclass : String = "user";
let method : String = "getbalance";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}let aclass : String = "user";
let method : String = "addaddress";
let user : String = "user";
let password : String = "password";
let namelastname : String = "name+lastname";
let iscompany : String = "1";
let companyname : String = "mycompany";
let documentid : String = "123456789A";
let countrycode : String = "us";
let cityid : String = "1";
let cityname : String = "town";
let zipcode : String = "123456";
let address : String = "address";
let urlPath: String = "https://www.afilnet.com/api/http/?+"&class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&namelastname="+namelastname+"&iscompany="+iscompany+"&companyname="+companyname+"&documentid="+documentid+"&countrycode="+countrycode+"&cityid="+cityid+"&cityname="+cityname+"&zipcode="+zipcode+"&address="+address
let url: NSURL = NSURL(string: urlPath)!
let request1: NSURLRequest = NSURLRequest(url: url as URL)
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as NSError {
print(error.localizedDescription)
}
})
let aclass : String = "user";
let method : String = "addaddress";
let user : String = "user";
let password : String = "password";
let namelastname : String = "name+lastname";
let iscompany : String = "1";
let companyname : String = "mycompany";
let documentid : String = "123456789A";
let countrycode : String = "us";
let cityid : String = "1";
let cityname : String = "town";
let zipcode : String = "123456";
let address : String = "address";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&namelastname="+namelastname+"&iscompany="+iscompany+"&companyname="+companyname+"&documentid="+documentid+"&countrycode="+countrycode+"&cityid="+cityid+"&cityname="+cityname+"&zipcode="+zipcode+"&address="+address
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}
Parameter | Beschreibung | Zwigend / optional |
---|---|---|
class=user | Sorte deren Antragen sich realisiert | Zwigend |
method=addaddress | Sortenmethode deren Antragen sich realisiert | Zwigend |
user | Der User / Email Ihres Afilnet Account | Zwigend |
password | Das password Ihres Afilnet Account | Zwigend |
namelastname | Vor- und Nachname der Kontaktperson | Zwigend |
iscompany | (0) Wenn es sich um eine natürliche Person handelt oder (1) wenn es sich um ein Unternehmen handelt | Zwigend |
companyname | Name des Unternehmens (falls es sich um ein Unternehmen handelt) | Optional |
documentid | Code des Firmenidentifikationsdokuments | Zwigend |
countrycode | ISO-Ländercode im ALPHA-2-Format ISO-3166-1 | Zwigend |
cityid | Stadtkennung | Zwigend |
cityname | Name der Stadt, zu der sie gehört | Zwigend |
zipcode | Postleitzahl | Zwigend |
address | Physikalische Adresse | 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 |
EMPTY_COUNTRYCODE | Der Ländercode ist leer |
COUNTRY_NOT_FOUND | Es gibt kein Land mit dem angegebenen Code |
EMPTY_CITY | Sie haben die Stadt nicht angegeben |
CITY_NOT_FOUND | Die angegebene Stadt existiert nicht |
Entfernen Sie eine Adresse mit Swift
let aclass : String = "user";
let method : String = "addaddress";
let user : String = "user";
let password : String = "password";
let namelastname : String = "name+lastname";
let iscompany : String = "1";
let companyname : String = "mycompany";
let documentid : String = "123456789A";
let countrycode : String = "us";
let cityid : String = "1";
let cityname : String = "town";
let zipcode : String = "123456";
let address : String = "address";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&namelastname="+namelastname+"&iscompany="+iscompany+"&companyname="+companyname+"&documentid="+documentid+"&countrycode="+countrycode+"&cityid="+cityid+"&cityname="+cityname+"&zipcode="+zipcode+"&address="+address
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}let aclass : String = "user";
let method : String = "deleteaddress";
let user : String = "user";
let password : String = "password";
let idaddress : String = "1000";
let urlPath: String = "https://www.afilnet.com/api/http/?+"&class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&idaddress="+idaddress
let url: NSURL = NSURL(string: urlPath)!
let request1: NSURLRequest = NSURLRequest(url: url as URL)
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as NSError {
print(error.localizedDescription)
}
})
let aclass : String = "user";
let method : String = "deleteaddress";
let user : String = "user";
let password : String = "password";
let idaddress : String = "1000";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&idaddress="+idaddress
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}
Parameter | Beschreibung | Zwigend / optional |
---|---|---|
class=user | Sorte deren Antragen sich realisiert | Zwigend |
method=deleteaddress | Sortenmethode deren Antragen sich realisiert | Zwigend |
user | Der User / Email Ihres Afilnet Account | Zwigend |
password | Das password Ihres Afilnet Account | Zwigend |
idaddress | Adress-ID des Benutzerkontos | 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 |
Holen Sie sich die Adressliste mit Swift
let aclass : String = "user";
let method : String = "deleteaddress";
let user : String = "user";
let password : String = "password";
let idaddress : String = "1000";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&idaddress="+idaddress
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}let aclass : String = "user";
let method : String = "getaddresses";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/?+"&class="+aclass+"&method="+method+"&user="+user+"&password="+password
let url: NSURL = NSURL(string: urlPath)!
let request1: NSURLRequest = NSURLRequest(url: url as URL)
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as NSError {
print(error.localizedDescription)
}
})
let aclass : String = "user";
let method : String = "getaddresses";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}
Parameter | Beschreibung | Zwigend / optional |
---|---|---|
class=user | Sorte deren Antragen sich realisiert | Zwigend |
method=getaddresses | Sortenmethode deren Antragen sich realisiert | Zwigend |
user | Der User / Email Ihres Afilnet Account | Zwigend |
password | Das password Ihres Afilnet Account | Zwigend |
Antworten:
- Status
-
result (si status=success), Sie werden die nächsten Codes bekommen:
-
list
- id
- namelastname
- iscompany
- companyname
- documentid
- countrycode
- cityid
- cityname
- zipcode
- address
- verified
- addressverified
-
list
- 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 |
Kanalliste mit Swift abrufen
let aclass : String = "user";
let method : String = "getaddresses";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}let aclass : String = "user";
let method : String = "getchannels";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/?+"&class="+aclass+"&method="+method+"&user="+user+"&password="+password
let url: NSURL = NSURL(string: urlPath)!
let request1: NSURLRequest = NSURLRequest(url: url as URL)
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as NSError {
print(error.localizedDescription)
}
})
let aclass : String = "user";
let method : String = "getchannels";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}
Parameter | Beschreibung | Zwigend / optional |
---|---|---|
class=user | Sorte deren Antragen sich realisiert | Zwigend |
method=getchannels | Sortenmethode deren Antragen sich realisiert | Zwigend |
user | Der User / Email Ihres Afilnet Account | Zwigend |
password | Das password Ihres Afilnet Account | Zwigend |
Antworten:
- Status
-
result (si status=success), Sie werden die nächsten Codes bekommen:
-
list
- channeltype
- channelname
- active
-
list
- 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 |
Ändern Sie den Status eines Kanals mit Swift
let aclass : String = "user";
let method : String = "getchannels";
let user : String = "user";
let password : String = "password";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}let aclass : String = "user";
let method : String = "modifychannel";
let user : String = "user";
let password : String = "password";
let channelname : String = "sms";
let active : String = "1";
let urlPath: String = "https://www.afilnet.com/api/http/?+"&class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&channelname="+channelname+"&active="+active
let url: NSURL = NSURL(string: urlPath)!
let request1: NSURLRequest = NSURLRequest(url: url as URL)
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as NSError {
print(error.localizedDescription)
}
})
let aclass : String = "user";
let method : String = "modifychannel";
let user : String = "user";
let password : String = "password";
let channelname : String = "sms";
let active : String = "1";
let urlPath: String = "https://www.afilnet.com/api/http/"
let url: NSURL = NSURL(string: urlPath)!
let request1: NSMutableURLRequest = NSMutableURLRequest(url: url as URL)
request1.httpMethod = "POST"
let stringPost="class="+aclass+"&method="+method+"&user="+user+"&password="+password+"&channelname="+channelname+"&active="+active
let data = stringPost.data(using: String.Encoding.utf8)
request1.timeoutInterval = 60
request1.httpBody=data
request1.httpShouldHandleCookies=false
let queue:OperationQueue = OperationQueue()
NSURLConnection.sendAsynchronousRequest(request1 as URLRequest, queue: queue, completionHandler:{ (response: URLResponse?, data: Data?, error: Error?) -> Void in
do {
if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary {
// Do something with result
}
} catch let error as Error {
print(error.localizedDescription)
}
Parameter | Beschreibung | Zwigend / optional |
---|---|---|
class=user | Sorte deren Antragen sich realisiert | Zwigend |
method=modifychannel | Sortenmethode deren Antragen sich realisiert | Zwigend |
user | Der User / Email Ihres Afilnet Account | Zwigend |
password | Das password Ihres Afilnet Account | Zwigend |
channelname | Kanal Name | Zwigend |
active | (1) Aktivieren oder (0) Deaktivieren | 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 |

Welche API für Swift soll ich verwenden?
Entdecken Sie die Vor- und Nachteile jeder unserer APIs. Finden Sie heraus, welche API für Ihre Software in Swift am besten geeignet ist.
Mit dieser API können Sie von Swift 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 Swift 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 Swift 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 Swift 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 Swift 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 Swift mit unserer User API
Registrieren Sie sich als Kunde
Um Zugriff auf die API zu haben, müssen Sie ein Afilnet-Kunde sein. Die Registrierung dauert einige Minuten.
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.
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
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.