[insert_php]
/*
*
* Lennox.com Product API v1.0 Example
* PRODUCT DETAILS
*
* XML Source: https://lennox.com/api/v1/category//
*
* PHP 5 w/ XML transport
* Author: Ben Wilson (bwilson@powercreative.com)
* 2008/10/09
*
* Version 1.0 – Initial write
* Version 1.1 – Ratings and Reviews addition – 02/13/2013
*
* Note: the “allow_url_fopen” directive in your php.ini file must be
* set to “On” for this demo to work.
*/
/* Replace “YOUR-API-KEY” with your Lennox Webservices/API Key */
$APIKEY = ‘HYvgukj’;

//fetch MODEL from querystring ‘
if (!empty($_GET[‘product’])) { $product_id = $_GET[“product”]; }
else { echo “This script requires a valid model ID.”; exit(); }
?>



Product Details – PHP – Lennox.com API Prototype




Product) {
$product = $xml->Product; ?>