How to show all APIs in Magento
1480 ワード
詳細
Magento Api www.hellokeykey.com
login('ApiUser', 'ApiKey');
$result = $client->resources($session);
foreach($result as $k1=>$v1)
{
echo '';
echo '- Title:
- '.$v1[title].'
';
echo '- Name:
- '.$v1[name].'
';
echo '- methods:
- ';
if(count($v1[methods])){
echo '
';
foreach($v1[methods] as $k2=>$v2)
{
echo '- Title:'.$v2[title].'
';
echo '- Name:'.$v2[name].'
';
echo '- Path:'.$v2[path].'
';
}
echo '
';
}
echo '
';
}
?>