Add-ons
All (53)
Admin Tools (6)
Boxes (0)
Buttons and Graphics (0)
Core Features (15)
Credit Modules (0)
Dashboard Tools (1)
Language Packs (1)
Order Total Modules (3)
Other (8)
Payment Modules (8)
Reports and Statistics (0)
SEO and Marketing (3)
Shipping Modules (7)
Themes and Templates (0)
Zones (1)

Submit New Add-on

Account
Login
Register

API Functions

API Functions

Addon Version

Get the latest add-on revision name or version number.

Target URL:
http://www.oscommerce-addons.com/api/addon_version.php

HTTP GET Parameters:

Name Type Description
AddonID Integrer The ID number of the add-on to be retrieved.
Platform (optional) String A valid platform version: 2.2 MS1, 2.2 MS2, 2.2 RC2a, 2.3.1, 2.3.3

Return:

Type Description
String The latetst add-on version for the given platform. "Error" on failure.

PHP Example:

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, http://www.oscommerce-addons.com/api/addon_version.php?AddonID=xxx&Platform='. PROJECT_VERSION);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$version = curl_exec($ch);
curl_close($ch);

print_r($version);
?>