{"id":60,"date":"2010-08-22T01:01:12","date_gmt":"2010-08-22T01:01:12","guid":{"rendered":"https:\/\/greladesign.co\/blog\/?p=60"},"modified":"2010-08-22T15:32:12","modified_gmt":"2010-08-22T14:32:12","slug":"flash-xml-rpc-wordpress","status":"publish","type":"post","link":"https:\/\/greladesign.co\/blog\/2010\/08\/22\/flash-xml-rpc-wordpress\/","title":{"rendered":"Flash-XML-RPC->WordPress!"},"content":{"rendered":"<p>Hi,<br \/>\nif you had a chance to look at the <a href=\"https:\/\/greladesign.co\/blog\/2010\/08\/21\/flash-xml-rpc-magento\/\">Flash->XML-RPC->Magento<\/a> post then you have all you need to achieve similar with wordpress:) how cool is that? And I have lost so many years by not adding this (webservices) into my consideration.<br \/>\n<!--more--><br \/>\nSteps to update previous example to run with WordPress, order top down:) first take the final code from the previous post then:<\/p>\n<p>lines 22-24 requires update to include WordPress credentials and gateway (http:\/\/localhost\/wordpress\/xmlrpc.php)<\/p>\n<pre class=\"brush: as3; first-line: 22; title: ; notranslate\" title=\"\">\r\npublic static const API_USER:String = &quot;wordpressUser&quot;;\r\npublic static const API_KEY:String = &quot;wordpressUserPass&quot;;\r\npublic static const GATEWAY:String = &quot;http:\/\/example.com\/blog\/xmlrpc.php&quot;;\r\n<\/pre>\n<p>then we will modify command in login method to say:<\/p>\n<pre class=\"brush: as3; first-line: 69; title: ; notranslate\" title=\"\">\r\nm_sCurrentCommand = &quot;wp.getUsersBlogs&quot;;\r\n<\/pre>\n<p>and after clicking on green button you will get a lengthy output, which might look similar to this (incomplete):<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;methodResponse&gt;\r\n  &lt;params&gt;\r\n    &lt;param&gt;\r\n      &lt;value&gt;\r\n        &lt;array&gt;\r\n          &lt;data&gt;\r\n            &lt;value&gt;\r\n              &lt;struct&gt;\r\n                &lt;member&gt;\r\n                  &lt;name&gt;isAdmin&lt;\/name&gt;\r\n                  &lt;value&gt;\r\n                    &lt;boolean&gt;1&lt;\/boolean&gt;\r\n                  &lt;\/value&gt;\r\n...\r\n<\/pre>\n<p>\ud83d\ude42<br \/>\nhappy coding, and I mean it:)<\/p>\n<p><ins datetime=\"2010-08-22T14:29:01+00:00\">I Forgot to mention that you have to enable Remote Publishing in your WordPress settings, go to admin area Settings -> Writing -> Under &#8220;Remote Publishing&#8221; section you have <strong>XML-RPC<\/strong> checkbox &#8211; check it, and you&#8217;re done.<\/ins><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, if you had a chance to look at the Flash->XML-RPC->Magento post then you have all you need to achieve similar with wordpress:) how cool is that? And I have lost so many years by not adding this (webservices) into &hellip; <a href=\"https:\/\/greladesign.co\/blog\/2010\/08\/22\/flash-xml-rpc-wordpress\/\">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,8],"tags":[12,301,14,5],"_links":{"self":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/60"}],"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=60"}],"version-history":[{"count":7,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}