`
haohappy2
  • 浏览: 325925 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

How to show all APIs in Magento

 
阅读更多
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>获得全部的Magento Api方法 www.hellokeykey.com</title>
<style type="text/css">
.box1{ border:2px solid #000; margin-bottom:10px; padding:10px;}
.box1 .path{ margin-bottom:10px; border-bottom-style:dashed; border-bottom-color:#000000; border-bottom-width:1px;}
</style>
</head>
<body>
    <?php
    $client = new SoapClient('http://youwebsite/api/soap/?wsdl');
    $session = $client->login('ApiUser', 'ApiKey');
    $result = $client->resources($session);
    foreach($result as $k1=>$v1)
    {
        echo '<div class="box1"><dl>';
        echo '<dt>Title:</dt><dd>'.$v1[title].'</dd>';
        echo '<dt>Name:</dt><dd>'.$v1[name].'</dd>';
        echo '<dt>methods:</dt><dd>';
        if(count($v1[methods])){
            echo '<ul>';
            foreach($v1[methods] as $k2=>$v2)
            {
                echo '<li>Title:'.$v2[title].'</li>';
                echo '<li>Name:'.$v2[name].'</li>';
                echo '<li class="path">Path:'.$v2[path].'</li>';
            }
            echo '</ul></dd>';
        }
        echo '</dl></div>';
    }
    ?>
</body>
</html>

 

分享到:
评论

相关推荐

    Craft GraphQL APIs in Elixir with Absinthe

    Along the way, discover how Elixir makes all the difference for a high performance, fault-tolerant API. Use asynchronous and batching execution, or write your own custom add-ons to extend Absinthe. ...

    Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs.pdf

    on approach, based on their wealth of experience and expertise, by giving examples to illustrate each concept of the API and showing how it is used in practice. The examples use a common model from an...

    Programming.APIs.With.The.Spark.Web.Framework.B017OLT37I

    Read to to learn how to use Spark to build APIs for speed, productivity, purpose, and cloud readiness. Table of Contents Chapter 1. Introduction Chapter 2. Using Spark to Create APIs in Java Chapter...

    Web.Service.APIs.and.Libraries.083891182X

    Uses real-world examples to show how APIs can be used to promote library materials and events, visualize data, educate patrons, and mobilize library services Demonstrates how to create and manage ...

    [RESTful Web] RESTful Web APIs 英文版

    The popularity of REST in recent years has led to tremendous growth in almost RESTful APIs that don’t include many of the architecture’s benefits With this practical guide you’ll learn what it ...

    Learning Microsoft Cognitive Services

    This book will introduce you to all 21 APIs released as part of Cognitive Services platform and show you how to leverage their capabilities. More importantly, you'll see how the power of these APIs ...

    RESTful Web APIs.pdf

    The popularity of REST in recent years has led to tremendous growth in almost-RESTful APIs that don’t include many of the architecture’s benefits. With this practical guide, you’ll learn what it ...

    Reusable Firmware Development A Practical Approach to APIs, HALs and epub

    Reusable Firmware Development A Practical Approach to APIs, HALs and Drivers 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    Restlet in Action Developing RESTful web APIs in Java 无水印pdf

    Restlet in Action Developing RESTful web APIs in Java 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自...

    C++.Concurrency.in.Action

    HIGHLIGHT C++ Concurrency in Action is the first book to market to show how to take advantage of the new C++ Standard and how to write robust multi-threaded applications in C++. DESCRIPTION With the ...

Global site tag (gtag.js) - Google Analytics