How to show all APIs in Magento

阅读更多
 



获得全部的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 '
'; } ?>

 

你可能感兴趣的:(How to show all APIs in Magento)