All calls to the Nios4 web services must start from this link.
https://web.nios4.com/ws/?action=
Access is allowed only with a valid D-One account and an active cloud database. The cloud database can be of any type, including the trial one.
After the word action, add the desired command, the access parameters and any other parameters specific to the requested command.
Parameters
token
User token used to authenticate the request, bypassing the web session. It is required when using the services as a stateless API.
db
Name of the database to work on. As with the token, it is optional only when working through a web session and not through a direct service call.
Example
https://web.nios4.com/ws/?action=user_login&email=xx@xx.xx&password=xxx
The server always responds with an error key in the JSON. If the key is false, the rest of the file contains the data or confirmations requested by the command specified in action.
If the server returns an error, the response will be a file in this form
Error response
{
"error": true,
"error_code": "invalid_request",
"error_message": "Request XXXX not expected"
}
Possible errors
invalid_request
Unexpected request.
validation
Input error.
not_logged
User login required.
syncone_X
Error from the synchronizer. X is the error number returned.
unknow_error
Unexpected error.
