You are here:

Softonic API

PHP library

The PHP library is an example on how you can access the API using PHP as a programming language. It is provided as reference only, you are free to extend it and improve it for your needs.

This is an example of usage (click on the methods to see their documentation):

<?php
	include( 'softonic.api.php' );
	$apikey = ' your_api_key';

	// Basic API settings.
	$api = new SoftonicApiClient();
	$api->setApiKey( $apikey );
	$api->setLanguage('en' );
	$api->setResponseFormat( 'php' );

	// Get all children section for Windows programs.
	$api->getSectionChildren( 2 );
?>

Download: This code and other examples are packed with the Toolbox.