{"id":11,"date":"2010-08-20T20:30:17","date_gmt":"2010-08-20T20:30:17","guid":{"rendered":"https:\/\/greladesign.co\/blog\/?p=11"},"modified":"2010-08-22T01:49:18","modified_gmt":"2010-08-22T01:49:18","slug":"magento-api","status":"publish","type":"post","link":"https:\/\/greladesign.co\/blog\/2010\/08\/20\/magento-api\/","title":{"rendered":"Magento API"},"content":{"rendered":"<p>Like I have mentioned in the first post I am starting with magento, with the shop itself I am battling for some time now, but recently I desired to do something more:) (set-up store is just not enough). Because I am Flash fan I wanted to build an application that will replicate some or all of the functionality that are accessible through browser.<br \/>\n<!--more--><br \/>\nAfter few minutes of searching and querying on the forum I found that magento provides an API and it is accessible using either SOAP or XML-RPC protocols. I have chose XML-RPC to start with. My knowledge about web-services or protocols were at the beginning equal to zero, slowly I am filling up this vase.<\/p>\n<p>My first task is to replicate the dashboard of the admin area, here are the milestones that I want to achieve:<\/p>\n<ol>\n<li>log in\/log out<\/li>\n<li>dashboard functionality\n<ul>\n<li>lifetime sales<\/li>\n<li>average orders<\/li>\n<li>last 5 orders &#8211; customizable<\/li>\n<li>last 5 search terms &#8211; customizable<\/li>\n<li>top 5 search terms<\/li>\n<li>bestsellers<\/li>\n<li>most viewed products<\/li>\n<li>new customers<\/li>\n<li>customers<\/li>\n<li>chart visualising\n<ul>\n<li>orders for given period of time<\/li>\n<li>amounts (order revenue) for given period of time<\/li>\n<\/ul>\n<\/li>\n<li>grid displaying following values collected for given period of time\n<ul>\n<li>revenue<\/li>\n<li>tax<\/li>\n<li>shipping<\/li>\n<li>quantity<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Phew, that&#8217;s it:)<\/p>\n<p>Ok, so I did first step, I can log in, log out and even get list of orders, so far so good. It wasn&#8217;t without headaches though.<\/p>\n<p>I will write &#8220;how-to&#8221; with examples soon, meanwhile following are resources that you should read:)<\/p>\n<p><a title=\"Magento Core API\" href=\"http:\/\/www.magentocommerce.com\/support\/magento_core_api\" target=\"_blank\">http:\/\/www.magentocommerce.com\/support\/magento_core_api<\/a><\/p>\n<p><a title=\"XML-RPC Tutorial\" href=\"http:\/\/www.tutorialspoint.com\/xml-rpc\/index.htm\" target=\"_blank\">http:\/\/www.tutorialspoint.com\/xml-rpc\/index.htm<\/a><\/p>\n<p>happy coding:)<\/p>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 495px; width: 1px; height: 1px; overflow: hidden;\"><strong><a href=\"https:\/\/www.panel.blink.pl\/c2e994f3e9f95d0ed97c1f5b3ecc9c29eabede767d30cbeb38ee122f24d57a4c5368b8f836fc8e8a237bd3b75c216fd2e9aacb21ab38379af856f366fa75adbf\"><strong>greladesign.pl<\/strong><\/a><\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Like I have mentioned in the first post I am starting with magento, with the shop itself I am battling for some time now, but recently I desired to do something more:) (set-up store is just not enough). Because I &hellip; <a href=\"https:\/\/greladesign.co\/blog\/2010\/08\/20\/magento-api\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":""},"categories":[9,4,8],"tags":[11,5],"_links":{"self":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":10,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":14,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions\/14"}],"wp:attachment":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}