`
haohappy2
  • 浏览: 315725 次
  • 性别: 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. ...

    Building APIs with Node.js(Apress,2016)

    Developing systems for the wide range of devices available in the modern world requires the construction of APIs designed to work only with data in a centralized manner, allowing client-side ...

    Irresistible.APIs.Designing.web.APIs.that.developers.will.love

    Irresistible APIspresents a process to create APIs that succeed for all members of the team. In it, you'll learn how to capture an application's core business value and extend it with an API that will...

    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...

    [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 ...

    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 ...

    An Introduction To APIs

    In this course, we walk you through what it takes for companies to link their systems together. We start off easy, defining some of the tech lingo you may have heard before, but didn’t fully ...

    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 ...

    Advanced BlackBerry Development

    Once you are comfortable with writing apps, this book will show you how to take them to the next level. You’ll learn how to move from running on one phone to running on all phones, and from one ...

    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 ...

    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删除 本资源转载自...

    word apis word apis

    word apis word apis word apis word apis word apis word apis

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

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

    Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

    * Covers all the new HTML5 APIs to get you up to speed quickly with HTML5 What you’ll learn * How the HTML5 specification has evolved * How to develop cutting-edge web applications using new ...

Global site tag (gtag.js) - Google Analytics