iono Documentation - Other Integration Methods

When adding a new version via the admin control panel, you can specify which one if the latest release. The idea is that you keep that version number up to date and you can then integrate your product into iono to show the latest version to your users.

Integration

Code

You must first generate the code to insert into your product.

  1. Click on the Integration button from the iono admin control panel main menu and select Version Integration
  2. Select the product to get the latest version for from the drop menu

You will be shown the integration code in a text field to allow you to copy and paste into your own product. The code contacts your iono installation, obtains the value you entered into the product version field and then stores the version number in a variable called $version. You can then use the following code to display the version number anywhere in your code:

echo $version;

Developer Reference

The code generated by iono is a quick way of integrating your product into the iono system. However, it is possible to develop your own remote calling code.

The Remote Request

The remote call to iono is made using an HTTP GET request to remote.php. This then calls the versions remote function file at sources/remote/version.php. This file dissects the query string to obtain the product version and then displays the value for the product.

The query string sent in the GET request is built up as follows:

remote.php?remote=version
&product_id=1

The product ID is the ID of the product in iono. This can be viewed on the Products index page. After you have sent the remote request to iono, it will respond with a plain text version string representing the latest version.