[insert_php]
/*
*
* Lennox.com Product API v1.0 Example
* PRODUCT CATEGORIES LISTING
*
* XML Source: https://lennox.com/api/v1/categories/
*
* 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.
*/
$APIKEY = ‘HYvgukj’;
?>
Error) {
echo “ERROR: “.$xml->Error;
exit();
}
foreach($xml->Category as $category) {
?>
CategoryName) ?>
Products) {
?>
Contains Products) ?> Products
Short: ShortDescription) ?>
Short: ShortDescription) ?>
Long: LongDescription) ?>
SubCategories) {
?>
Subcategories:
SubCategories->SubCategory as $subcat) {
?>
SubCategoryName) ?>
SubCategories->SubCategory as $subcat) {
?>
SubCategoryName) ?>
