You are here:

Softonic API

Response format

The result will come in different formats (XML,JSON & PHP)

XML block example:

<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
	<value>hello world Softonic</value>
</response>

If any error the response would be:

<?xml version="1.0" encoding="utf-8" ?>
<response status="fail">
	<err code="[error-code]" msg="[error-message]" />
</response>

Error codes

Error code Error string HTTP response code
InvalidApiKey No API key provided 404 - Not Found
InvalidApiKey Invalid API key 404 - Not Found
InvalidRequest This is not a valid function 404 - Not Found
InvalidRequest This is not a valid instance 404 - Not Found
InvalidParameterValue Response format must be xml,json or php 404 - Not Found
InvalidParameterValue Invalid User ID 404 - Not Found
ServerError Internal server Error 500 - Internal Server Error