VNP Output Webservices - Login/User Authentication
This webservice allows to retrive infos about a valid VirtualNewspaper user account.
When an user performs a login on the external platform, this system will ask VirtualNewspaper if the provided credentials are valid, VirtualNewspaper will eventually output a JSON reply providing all the details belonging to the user account.

External platform submits VirtualNewspaper username and password, as provided by the end user.
Warning:
This POST call needs to be url encoded
Webservice Mandatory Parameters
"username" and "password" are needed as mandatory parameters in this data workflow.
Example
Parameters are transmitted using this syntax:
?username=mariorossi%40gmail.com&password=fr34df56
A new webservice call is needed for each user account.
Parameters and their values, need to be separated by the "equal to" char ("=").
After each parameter/value an "&" char is required.
This VirtualNewspaper webservice is able to provide two different replies :
01) User account is valid on VirtualNewspaper.
Access is granted and a JSON reply reports current user informations.
In this scenario VirtualNewspaper JSON reply will look like this :
{
“login” : “1”,
“id” : “1502”,
“companyTown” : “...”,
“companyZip” : “...”,
“companyAddress” : “...”,
“company” : “...”,
“gender” : “...”,
“brithPlace” : “...”,
“born” : “...”,
“email” : “...”,
“custom3” : “...”,
“custom2” : “...”,
“custom1” : “...”,
“administrative_area_level_1” : “...”,
“administrative_area_level_2” : “...”,
“administrative_area_level_3” : “...”,
“formatted_address” : “...”,
“lat” : “...”,
“lng” : “...”,
“administrative_area_level_1_company” : “...”,
“administrative_area_level_2_company” : “...”,
“administrative_area_level_3_company” : “...”,
“formatted_address_company” : “...”,
“companyLat” : “...”,
“companyLng” : “...”,
“income” : “...”,
“mobile” : “...”,
“category” : “...”,
“type” : “...”,
“id” : “...”,
“code” : “...”,
“job” : “...”,
“password” : “...”,
“dateJoin” : “...”,
“username” : “...”,
“fax” : “...”,
“newsletter” : “...”,
“telephone” : “...”,
“nation” : “...”,
“city” : “...”,
“zip” : “...”,
“town” : “...”,
“address” : “...”,
“taxCode” : “...”,
“companyVAT” : “...”,
“companyTaxCode” : “...”,
“companyFax” : “...”,
“companyTelephone” : “...”,
“companyNation” : “...”,
“companyCity” : “...”,
“custom4” : “...”,
“custom5” : “...”,
“custom6” : “...”,
“custom7” : “...”,
“custom8” : “...”,
“custom9” : “...”,
“custom10” : “...”,
“citycode” : “...”,
“citycode_company” : “...”
}
02) User account is not available on VirtualNewspaper internal database.
Access denied.
In this scenario VirtualNewspaper JSON reply will look like this :
{
“login” : “0”
}
| PARAMETER NAME | VALUE FORMAT | DESCRIPTION | EXAMPLE |
|---|---|---|---|
| username | string | it's the username as typed by end user | |
| password | string | it's the password as typed by end user |