794_The.Definitive.Guide.to.Magento.pdf

Load local package if you want to review your created

Info icon This preview shows pages 199–203. Sign up to view the full content.

Load Local Package If you want to review your created package(s), you can click the last section labeled Load Local Package. You newly created extension will be displayed on the first row. Click the row and it will reload all your information for viewing.
Image of page 199

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

CHAPTER 10 MAGENTO EXTENSIONS 178 Summary This chapter showed you how to browse and install extensions through Magento Connect, build your own module, and package it into an extension. There still many more options to explore. Browsing through the documentation and looking at all the core modules ( ) can make your head spin. But that also means that there are endless possibilities of how to extract and create your own module. Magento Connect is filled with enthusiasts who have built wonderful extensions for the open community. We encourage you to install a handful and look at their source code. That will give you an idea of how others are building their extensions and maybe foster new ideas. What’s Next? Check out the next chapter to learn how to configure and set up Magento’s API to allow external web apps to communicate with your store.
Image of page 200
C H A P T E R 1 1 ■ ■ ■ 179 API What is an application programming interface (API) ? It is a component that allows execution of system methods through a standard protocol. In the case of Magento, it is often referred to as a web API or as web services . The power of web services is not in the technology, but in the third-party innovation that evolves by accessing and extracting the application’s core services. Successful companies such as IBM, Google, Yahoo, Twitter, and Facebook have APIs in their applications. APIs enable your applications to use services such as Google Maps, and allow users to sign in through their Facebook login. API access opens up the door to an array of third-party applications, fostering innovation and behavior that extends your current features. Magento allows access into its API through two standard protocols: XML-RPC and SOAP. This chapter discusses numerous examples of each available API method, switching from both protocols. Magento is still in its infancy stage, so there are existing bugs. This chapter provides solutions and workarounds so that your first journey into Magento’s API will be less of a headache. XML-RPC RPC stands for remote procedure call . Prepend the word “XML” and you have a remote procedure call through XML syntax. XML-RPC has a very simple design. Within <methodCall> and <params>, it has enough structure to communicate with the server and process the request. XML-RPC has been around since 1998, so nearly all programming languages have libraries to construct an XML-RPC call. We won’t dive into too many details because this is a book about Magento, not XML-RPC. For more information, please visit .
Image of page 201

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

CHAPTER 11 API 180 SOAP SOAP stands for simple object access protocol . It also uses XML syntax, very similar to XML-RPC, but more advanced and complex. It is the predecessor to XML-RPC, allowing developers to extend and customize data types. But these types of features increase the overhead, which deters most performance
Image of page 202
Image of page 203
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern