You are here:

Softonic API

Api testEcho

We do all use the Hello World when we start programming! The testEcho function will print the text you pass inside the response body.

http://api2.softonic.com/<inst>/api_testEcho/<text>.<format>?key=YOUR_API_KEY

Parameters

  • <inst>: Softonic instance (en, es, it, pt ...)
  • <format>: XML, JSON or PHP
  • <text>: The word that will be displayed

XML response sample

http://api2.softonic.com/en/api_testEcho/hello-world.xml?key=API_KEY

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok" total_items="1">
  <value>hello-world</value>
</response>

JSON response sample

http://api2.softonic.com/en/api_testEcho/hello-world.json?key=API_KEY

{
	"status":"ok",
	"total_items":1,
	"value":"hello-world"
}