Test Magento API extensions
<?php
// bootstrap
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
require 'app/Mage.php';
require 'app/code/local/Blitz/Madjango/Model/Product/Api.php';
$app = Mage::app('default');
$api = new Blitz_Madjango_Model_Product_Api();
// args
$id = 337;
$attrs = array(
'additional_attributes' => array(
'device_type',
'device_model',
'color_category',
'color',
'product_style',
'product_type',
'is_universal',
'fs_flag',
'assoc_prod_display_order',
'__select_configurable',
'__select_custom_options',
)
);
// output
print_r(
$api->info($id,'default', $attrs, null)
);