Module of authenticationÂ
This chapter describes an API that makes it possible to request subscribersâ profiles, including their data and their password, by using external applications. It works like a small authentication server with basic functionalities.Â
Because BACKCLICK is able to administer a mandator, it is necessary to hand over the mandatorâs ID with every call on the authentication module. If no mandatory ID is handed over, BACKCLICK will assign the call to the mandatory with the ID=0.Â
! PLEASE NOTE !Â
This interface may be called without any restrictions by servers as well as clients. To restrict these calls, you may enter IP addresses that are exclusively allowed to start a call (System Administration -> Basic Settings -> WebInterface). Therefore you need to mark the check box in front of the âHTTP subscriber APIâ to activate the text area on the righthand side. You may then enter the IP addresses.Â
The following functions are supported by this API:Â
- Check if entered e-mail address is subscribed on the BACKCLICK system
- Check if entered e-mail address is subscribed on to a newsletter additionally entered on the BACKCLICK system
- Check if entered e-mail address and password (combined) are subscribed on the BACKCLICK system and if the password is the same as the one saved in the system
BasicsÂ
Every function is called by the http record. BACKCLICK will return a status code on every call. The URL for the communication is built up as described in the following:Â
http://domain.customer.de/bc/servlet/web.auth?.............................Â
The following values are accepted parameters:Â
- EMAIL
- NEWSLETTER (ID der Verteilerliste/n)
- PASSWORD
Default parameters are always EMAIL and NEWSLETTER.Â
Checking if a handed-over e-mail address is subscribed in the system
Example:
Error codes:
ERRORCODE: 0 -> the variable EMAIL has not been defined or is emptyÂ
ERRORCODE: 1 -> e-mail address & password are OKÂ
ERRORCODE: 2 -> the entered e-mail address is syntactically wrong#Â
ERRORCODE: 3 -> the variable PASSWORD has not been definedÂ
ERRORCODE: 4 -> the entered e-mail address is valid but the password is wrongÂ
ERRORCODE: 5 -> the entered e-mail address cannot be found in the systemÂ
ERRORCODE: -100 -> Authentication function is deactivated in the system settings; please activateÂ
ERRORCODE: -101 -> Check configuration, no connection to the API server possibleÂ
Deactivate authentication module in the system settingsÂ
Checking if a handed over e-mail address is subscribed to a specially defined newsletter (mailing list) in BACKCLICKÂ
Example:
http://domain.customer.de/bc/servlet/[email protected]&PASSWORD=password&NEWSLETTER=1,2,33&MID=0
Status codes:
All of the status codes from 6 to 9 will be in use here. The result will be displayed for every mailing list as followed (default setting):Â
LIST-ID: STATUSCODE, there will be a row for every mailing list ID.Â
The ERRORCODES 0, 2, 3, and 5 (see Part 1) are in use for syntactical errors here:Â
The result may look like this for the example described above (Part 2):Â
1: 6Â
2: 6Â
33: 7Â
Meaning of status codes 6â9:Â
6 -> E-mail address & password OK, subscriber is subscribed to the mailing listÂ
7 -> E-mail address & password OK, subscriber is NOT subscribed to the mailing listÂ
8 -> the entered password is wrong, the e-mail address is correct â the subscriber is subscribed to the mailing listÂ
9 -> -> the entered password is wrong, the e-mail address is incorrect â the subscriber is NOT subscribed to the mailing listÂ
10 -> E-mail address & password OK, âdouble opt inâ is not yet confirmedÂ
12 -> E-mail address & password WRONG, âdouble opt inâ is not yet confirmed